Get Order
GET
/v1/order/{id}
Get an order by unique ID.
Headers
Response
{
"statusCode": 200,
"statusMessage": "OK",
"order": {
"id": "cdcf...",
"code": "4JA...",
"amount": "100",
"receivedAmount": "90",
"realAmount": "45",
"product": "PS", // Product Code
"status": "Issue", //
"createdAt": "2024-10-20T12:30:31.995Z",
"updatedAt": "2024-10-20T15:55:28.459Z"
}
}
{
"statusCode": 400,
"statusMessage": "Order ID is required"
}
{
"statusCode": 404,
"statusMessage": "Order not found or does not belong to you"
}
{
"statusCode": 500,
"statusMessage": "Internal Server Error",
"error": "Cannot destructure property 'id' of 'body' as it is null."
}