Skip to main content

Get Shipping QR Code

Retrieve the shipping QR code for a confirmed order in base64 format.

Endpoint

GET /v1/order/qrcode

Request

Header Parameters


ParameterTypeRequiredExampleDescription
AuthorizationstringYesBearer YOUR_ACCESS_TOKENBearer access token used for authentication.
Content-TypestringYesapplication/jsonRequest body content type.

Query Parameters

ParameterTypeRequiredDescription
order_idstringYesOrder ID.

Example request

curl -X GET "${API_URL}/v1/order/qrcode?order_id=3593560" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json"

Responses

200 Success

200 Success

Response schema: application/json
data
json-string
QR code response wrapper.
Expand for fields.
order_id
string
Unique order identifier.
Example: 3593560
tracking_number
string
Tracking number for the order.
Example: JDV028152767184
qr_code
json-string
QR code image data.
Expand for fields.
format
string
Image format.
Example: jpg
encoding
string
Encoding type.
Always base64.
Example: base64
content
string
Base64-encoded QR code image content.
Example: /9j/4AAQSkZJRg... (truncated)
message
string
Status message.
Example: OK

Response sample

{
"data": {
"order_id": "3593560",
"tracking_number": "JDV028152767184",
"qr_code": {
"format": "jpg",
"encoding": "base64",
"content": "/9j/4AAQSkZJRg... (truncated)"
},
"message": "OK"
}
}

400 Bad Request

400 Bad Request

Response schema: application/json
error.code
string
Error code.
Example: 400000
error.code_reason
string
Error reason.
Example: BAD_REQUEST
error.message
string
Human-readable message.
Example: Bad Request
error.error_trace
array
List of validation errors.
Expand for fields.
field
string
Request field that failed.
Example: order_id
message
string
Human-readable message.
Example: order_id is required

Response sample

{
"error": {
"code": "400000",
"code_reason": "BAD_REQUEST",
"message": "Bad Request",
"error_trace": [
{
"field": "order_id",
"message": "order_id is required"
}
]
}
}

Other 400 business errors:

CodeReasonDescription
400214NO_TRACKING_NUMBEROrder has no tracking number yet
{
"error": {
"code": "400214",
"code_reason": "NO_TRACKING_NUMBER",
"message": "Order has no tracking number yet"
}
}

401 Unauthorized

401 Unauthorized

Response schema: application/json
code
string
Error code.
Example: 401000
code_reason
string
Error reason.
Example: UNAUTHORIZED
message
string
Human-readable message.
Example: Unauthorized
{
"error": {
"code": "401000",
"code_reason": "UNAUTHORIZED",
"message": "Unauthorized"
}
}

403 Forbidden

403 Forbidden

Response schema: application/json
error
json-string
Access forbidden for this resource.

404 Not Found

404 Not Found

Response schema: application/json
code
string
Error code.
Example: 400201
code_reason
string
Error reason.
Example: ORDER_NOT_FOUND
message
string
Human-readable message.
Example: Order not found
{
"error": {
"code": "400201",
"code_reason": "ORDER_NOT_FOUND",
"message": "Order not found"
}
}

500 Failure

500 Failure

Response schema: application/json
code
string
Error code.
Example: 500999
code_reason
string
Error reason.
Example: API_ERROR
message
string
Human-readable message.
Example: Api Error, please contact customer service
{
"error": {
"code": "500999",
"code_reason": "API_ERROR",
"message": "Api Error, please contact customer service"
}
}