PrintOrder¶
Use this api to print order.
POST /openapi/order/v1/print
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
orderId |
string |
true |
Order id in Ginee |
documentType |
string |
true |
which document type need to print, see Order Document Type |
Response Parameters¶
Name | Type | Description |
---|---|---|
orderId |
string |
Order id in Ginee |
pdfUrl |
string |
url |
Request Example¶
Example
curl -X POST \
-H "X-Advai-Country: ID" \
-H "Authorization: {Your Access Key} + ':' + signature" \
-H "Content-Type: application/json" \
-d '{
"orderId":"SO5F6BFC765908010001E1DD83",
"documentType":"PICKING"
}' \
"{Ginee Host}/openapi/order/v1/print"
Success
{
"code":"SUCCESS",
"message":"OK",
"data": "SO5F6BFC765908010001E1DD83",
"extra":null,
"transactionId":"f49f370af5805764"
}
Failure
{
"code": "BUSINESS_ERROR",
"message": "There is no printable order",
"data": {
"orderId": "SO5F6BFC765908010001E1DD83",
"pdfUrl": null
},
"extra": null,
"pricingStrategy": "FREE"
}
Note
You need to check the code
to see if the operation was successful. If failed, see message
for detail reason.