Appearance
Get Order File
Request Method
http
POST /api/order/get-order-file
NOTE
This API allows user to request for a file in PDF Format(After obtaining the data, base64 needs to be converted to PDF). Authentication is required for this API
Header
Field | Description |
---|---|
Content-Type | application/json |
Authorization | Bearer <token> |
Parameter
Field | Mandatory | Type | Description | Length |
---|---|---|---|---|
job_no | Y | String | CN38 No. | |
type | Y | String | eg: CN35, CN38, CP84, CP87, ExportControlForm, CN31, StatementOfLodgment, CN33, ReceptacleManifest |
Request
json
{
"job_no": "xxxxxxx",
"type": "CN35"
}
Response(Success)
json
{
"Code": 0,
"Message": "Success",
"Data": {
"Base64": "dwc45KHGVYDv8AkAesV5Z4WUad8WdWsrQDyJlud6rwq5KTdBkDDcV0mq/FDwnp9o81rdC+n2ny4IQ+WbtlioVR6nr6A1kfC7RNRmvL7xnq6bJdS3iBSNpZZH8ySQDspIAX2z2xQB6PXmfxu/5B+l/9fE3/AKCtemV5n8bv+Qfpf/XxN/6CtACQ+MPibFbRiPw6jRrGoVhFOxIAGDxLzVDwHfR6h48udQ8Ts8GuSBltb"
}
}
Response(Fail)
json
{
"Code": 1,
"Message": "Order not found!",
"Data": []
}