Skip to main content

Get Order

GET {{baseUrl}}/orders/{id}

Parameters

  • id (string, path, required): The ID of the order.
  • tenantId (string, header, required): The ID of the tenant.
  • userId (string, header, required): The ID of the user.

Responses

200 OK

  • Media Type: application/json

Example Value

{
"message": "string",
"data": {
"id": "string",
"merchantId": "string",
"reference": "string",
"totalAmount": 0,
"status": "PROCESSING",
"purchaseDate": "2024-07-18",
"extra": {
"processedCount": 0,
"errors": [
"string"
]
},
"createdAt": "2024-07-18T17:02:59.634Z",
"updatedAt": "2024-07-18T17:02:59.634Z",
"orderDetails": [
{
"id": "string",
"product": {
"id": "string",
"name": "string",
"description": "string",
"sku": "string",
"category": "string",
"subCategories": [
"string"
],
"brand": "string",
"productPublicId": "string",
"costPrice": {
"price": 0,
"unitQuantity": 0,
"unitPrice": 0
},
"sellingPrice": {
"price": 0,
"unitQuantity": 0,
"unitPrice": 0
},
"priceMargin": {
"type": "FIXED",
"source": "BUSINESS",
"value": 0,
"enabled": true
},
"quantityOnHand": 0,
"minimumOrderQuantity": 0,
"reorderLevel": 0,
"stockLevel": "OUT_OF_STOCK",
"unit": "string",
"weight": 0,
"visibility": true,
"images": [
"string"
],
"businessId": "string",
"merchantId": "string",
"vatRatio": 0,
"createdAt": "2024-07-18T17:02:59.635Z",
"updatedAt": "2024-07-18T17:02:59.635Z",
"clusters": [
"string"
],
"business": {
"get_id": "string",
"name": "string",
"email": "string",
"photo": "string",
"wallet": {
"userId": "string",
"virtualBankCode": "string",
"floatAccountId": "string",
"floatAccountUuid": "string",
"floatAccountNumber": "string",
"commissionAccountId": "string"
},
"address": {
"country": "string",
"latitude": 0,
"lga": "string",
"name": "string",
"state": "string",
"longitude": 0
},
"location": {
"coordinates": [
0
],
"type": "string"
},
"user": "string",
"owner": {
"profileTenant": "string",
"city": {
"code": "string",
"name": "string"
},
"country": {
"code": "string",
"name": "string",
"currency": "string"
},
"firstName": "string",
"lastName": "string",
"phone": "string",
"photo": "string",
"state": {
"code": "string",
"name": "string"
},
"username": "string",
"wallet": {
"userId": "string",
"virtualBankCode": "string",
"floatAccountId": "string",
"floatAccountUuid": "string",
"floatAccountNumber": "string",
"commissionAccountId": "string"
},
"id": "string",
"fullName": "string"
},
"businessHandle": "string",
"shippingFee": 0,
"phone": "string",
"category": "string",
"active": true,
"acceptingOrder": true,
"isDistributor": true,
"isManufacturer": true,
"isHead": true,
"extraLocationPrice": 0,
"distance": 0,
"kycDetails": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"pickUpAddresses": [
{
"country": "string",
"latitude": 0,
"lga": "string",
"name": "string",
"state": "string",
"longitude": 0,
"location": {
"coordinates": [
0
],
"type": "string"
}
}
],
"priceMargin": {
"type": "FIXED",
"source": "BUSINESS",
"value": 0,
"enabled": true
}
}
},
"productPublicId": "string",
"quantity": 0,
"amount": 0,
"extra": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"createdAt": "2024-07-18T17:02:59.635Z",
"updatedAt": "2024-07-18T17:02:59.635Z"
}
]
},
"meta": {
"currentPage": 0,
"from": 0,
"to": 0,
"perPage": 0,
"total": 0,
"lastPage": 0
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /orders/ \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!