Contents
By leveraging these RESTful web services, SAP users can generate high-resolution, industry-standard barcodes—such as GS1-128 and QR Codes—directly within their ERP workflows.
1
Authentication Strategy
The Barcodesoft Cloud Barcode RESTapi uses the OAuth 2.0 protocol. Before requesting an image, SAP must obtain a Bearer Token.
Step A: Obtaining the Token
Upon completing your order, you will receive an email containing a
Upon completing your order, you will receive an email containing a
User_id, Secret, and scope.
POST https://www.barcodesoft.com/api/auth/token
Payload: { "User_id": "...", "Secret": "...", "scope": "..." }
Payload: { "User_id": "...", "Secret": "...", "scope": "..." }
Step B: Token Management: Store the returned access_token and reuse it until expiry to optimize performance.
2
SAP Configuration (Transaction SM59)
- Execute Transaction SM59.
- Create a new Type G (HTTP Connection to External Server).
- Target Host:
www.barcodesoft.com| Service No:443 - Ensure SSL is active under Security Options.
3
Generating Barcodes
Linear Barcodes (e.g., GS1-128)
https://www.barcodesoft.com/barcode/v1/linear/gs1128?data=(02)1234(10)5678&width=3in&height=1in&imageformat=png&dpi=300
2D Barcodes (e.g., QR Code)
https://www.barcodesoft.com/barcode/v1/qrcode/?data=Testing&size=2in&imageformat=svg&dpi=300
4
Implementation Methods
SAPUI5 / Fiori
Bind the image source directly to the API URL. Recommended format: SVG for responsive crispness.
Adobe Forms (ADS)
Fetch binary stream via ABAP CL_HTTP_CLIENT and map to Graphic Content in LiveCycle Designer.
5
Key Parameter Reference
| Parameter | Options | Description |
|---|---|---|
data |
String | Content to encode (URL encoded) |
imageformat |
png, svg, webp | SVG for web, PNG for print |
dpi |
300, 600 | Resolution for raster images |
GS1 Note: Ensure Application Identifiers (AIs) are enclosed in parentheses for proper parsing by the Barcodesoft Cloud Barcode RESTapi.
Need technical assistance?
Our engineering team can help with SAP S/4 Hana integration problems.
← Back to Cloud Barcode API Main Page