Decathlon - Create Product - In progress
The purpose of this page is to detailed describe the flow of creating a product on Decathlon.
API Call: POST /{partner_name}/products/add/
API Docs: https://omcdev.playstg.net/api-swagger-docs/
Partner name - TBD
Example Call:
{
"id": "string",
"name": "string",
"vat": "string",
"is_discontinued": true,
"cost_price": "string",
"selling_price": "string",
"shipping_price": "string"
}
Mapping:
Integration Field | Integration Notes | Integration required | Hemi Mapping | Hemi Notes |
---|---|---|---|---|
id |
string |
maxLength: 18
minLength: 1 | Yes | Product > SKU | |
| name
| maxLength: 500
minLength: 1 | Yes | Product > Title | |
| vat
| string($decimal) | Yes | Product Account > VAT | |
| is_discontinued
| boolean | No | TBD | As we are going to only create products “false“ value should be hardcoded?? To be confirmed |
| cost_price
| string($decimal | Yes | Product Account > Original Price | |
| selling_price
| string($decimal | Yes | Product Account > Price
or
Product Account > RRP | We will send Product Account > RRP If RRP is populated and is bigger than Price |
| shipping_price
| string($decimal | Yes | Product Account > Shipping Amount | |
Example response:
{
"status": "success",
"message": "Successfully added new product"
}
Error response:
{
"status": "error",
"message": "Could not create product"
}
TBDs:
1.what if we send 2 products for creation and one of them failed? How we can understand which product failed, as we do not receive the ID (our SKU) into the error response?
-
do we need to push qty? If so, what will be the API
-
Can we create a product with multiple variants?
-
If this call is going to be used for Price update, are we able to modify/change the title of the product for example?