Custom Development / Decathlon client integration / Decathlon - Update Price - In progress

Decathlon - Update Price - In progress

The purpose of this page is to describe in details the process of sending price updates on Decathlon.

Based on assumption, we will use the same API for update price, as API for create product. To be checked with Decathlon

In order to update price, we should have Update Price flag on “Pending“ status and following statuses of a product:

Product status = Product Published; Listing Status = Active; Update price - Pending

If update was successful, we will have following statuses:

Product status -Product Published ; Listing Status -Active ; Update Price - Not Needed

If we receive an error, we will have:

Product status -Product Published ; Listing Status -Active ; Update Price - Error

We must store the respectively error into the field “Update Price Error

TBD the case where we need to send price update BEFORE the order export!

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 | N/A | | | 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 | |

TBD:

  1. What if we send price update for 2 products and 1 of them failed?
  2. Maybe we need to set internal validation (if price update will be send with the API for product creation) in order to not send different title of the product for example, but only to send price updates.
  3. Limits
Is this article helpful?
0 0 0