Skip to main content

Update Bulk Product

POST {{baseUrl}}/businesses/:id/products/bulk

Description

Update multiple products for a business in bulk.

Request

  • Headers:
    • (Required) tenantId: <string>
    • (Required) userId: <string>
    • Content-Type: application/json
    • Accept: /
  • URL:
    • Raw URL: {{baseUrl}}/businesses/:id/products/bulk
    • Host: {{baseUrl}}
    • Path: /businesses/:id/products/bulk
  • Variables:
    • id

Response

  • Code: 200
  • Headers:
    • Content-Type: */*
  • Headers:
    • tenantId: <string> (Required)
    • userId: <string> (Required)
    • Content-Type: application/json
    • Accept: */*
  • Path Variables:
    • id: <string> (Required)

Sample Request

curl --location -g --request PUT '{{baseUrl}}/businesses/:id/products/bulk' \
--header 'tenantId: <string>' \
--header 'userId: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
"products": [
{
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"tenantId": "<string>",
"merchantId": "<string>",
"businessId": "<string>",
"name": "<string>",
"description": "<string>",
"sku": "<string>",
"category": "<string>",
"subCategories": "<string>",
"brand": "<string>",
"countryCode": "<string>",
"productPublicId": "<string>",
"minimumOrderQuantity": "<integer>",
"costPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"sellingPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"promotion": {
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"tenantId": "<string>",
"merchantId": "<string>",
"name": "<string>",
"description": "<string>",
"discountType": "FIXED",
"amount": "<double>",
"percentage": "<integer>",
"endDate": "<dateTime>",
"isActive": "<boolean>"
},
"quantityOnHand": "<integer>",
"reorderLevel": "<integer>",
"stockLevel": "OUT_OF_STOCK",
"unit": "<string>",
"weight": "<double>",
"visibility": "<boolean>",
"images": [
"<string>",
"<string>"
],
"clusters": [
"<long>",
"<long>"
]
},
{
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"tenantId": "<string>",
"merchantId": "<string>",
"businessId": "<string>",
"name": "<string>",
"description": "<string>",
"sku": "<string>",
"category": "<string>",
"subCategories": "<string>",
"brand": "<string>",
"countryCode": "<string>",
"productPublicId": "<string>",
"minimumOrderQuantity": "<integer>",
"costPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"sellingPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"promotion": {
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"tenantId": "<string>",
"merchantId": "<string>",
"name": "<string>",
"description": "<string>",
"discountType": "FIXED",
"amount": "<double>",
"percentage": "<integer>",
"endDate": "<dateTime>",
"isActive": "<boolean>"
},
"quantityOnHand": "<integer>",
"reorderLevel": "<integer>",
"stockLevel": "LOW",
"unit": "<string>",
"weight": "<double>",
"visibility": "<boolean>",
"images": [
"<string>",
"<string>"
],
"clusters": [
"<long>",
"<long>"
]
}
]
}'

Sample Response

{
"message": "<string>",
"data": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"sku": "<string>",
"category": "<string>",
"subCategories": [
"<string>",
"<string>"
],
"brand": "<string>",
"productPublicId": "<string>",
"costPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"sellingPrice": {
"price": "<double>",
"unitQuantity": "<integer>",
"unitPrice": "<double>"
},
"quantityOnHand": "<integer>",
"minimumOrderQuantity": "<integer>",
"reorderLevel": "<integer>",
"stockLevel": "OUT_OF_STOCK",
"unit": "<string>",
"weight": "<double>",
"visibility": "<boolean>",
"images": [
"<string>",
"<string>"
],
"businessId": "<string>",
"merchantId": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"clusters": [
{
"value": "<Circular reference to #/components/schemas/ProductDto detected>"
},
{
"value": "<Circular reference to #/components/schemas/ProductDto detected>"
}
],
"business": {
"get_id": "<string>",
"name": "<string>",
"photo": "<string>",
"wallet": {
"velit_6": {},
"irure70_": {}
},
"address": {
"country": "<string>",
"latitude": "<integer>",
"lga": "<string>",
"name": "<string>",
"state": "<string>",
"longitude": "<integer>"
},
"location": {
"coordinates": [
"<long>",
"<long>"
],
"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": {
"virtualBankCode": "<long>"
},
"id": "<string>",
"fullName": "<string>"
},
"businessHandle": "<string>",
"shippingFee": "<double>",
"phone": "<string>",
"category": "<string>",
"active": "<boolean>",
"acceptingOrder": "<boolean>",
"isDistributor": "<boolean>",
"isManufacturer": "<boolean>"
}
},
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /businesses/:id/products/bulk \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


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