Skip to main content

Get Product

GET /products/{id}

Parameters

  • id (string, path, required): The ID of the product.
  • tenantId (string, header, required): The ID of the tenant.
  • merchantId (string, query, optional): The ID of the merchant.

Responses

  • 200 OK
    • Media type: Controls Accept header.
    • Example Value:
{
"productId": "string",
"productName": "string",
"description": "string",
"price": 0.0,
"category": "string"
}

Example values

{
"message": "string",
"data": {
"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-17T17:32:27.443Z",
"updatedAt": "2024-07-17T17:32:27.443Z",
"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
}
}
},
"meta": {
"currentPage": 0,
"from": 0,
"to": 0,
"perPage": 0,
"total": 0,
"lastPage": 0
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


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

RESPONSE


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