Price Pushing
If you are not using one of the 3rd party platforms we have an integration with you will need to provide a custom API for us to push prices into your system.
This is important so prices can be pushed automatically when price plans are approved. Without an API integration, you will need to download each price plan and upload price changes manually into your system.
Note that you will want to add API authorization to support pushing prices.
API Reference
To push prices, we will need an API which accepts product and price
information. The product should be identified using the product’s
sku_primary
identifier, which is provided in the product
table.
The API should accept POST
requests with a list of products to push prices
for. If there are a lot of products (e.g. 100s), we will probably batch the
requests into batches of 50 or 100. If you want to limit the maximum number of
products the API will handle in one request, feel free to do so and share the
limit with us in your API documentation.
POST https://<your-company-api>.com/luca/v1/price-push
The payload body should be a list of objects of the following schema:
Payload Schema
Name | Required? | Type | Field Description | Example |
---|---|---|---|---|
sku_primary | required | string | This is the product identifier. This must match the SKU used in the Product Table. | "sku_178" |
price | required | number | The product price. | 10.51 |
store_id | optional | string | This is the store identifier to push the price to, which should match the store identifier for the product. This is required if you have multiple stores which price products differently. | "13523" |
Response Schema
We recommend the response data to include a matching list of products indicating if the price push was successful or not for each product.
Name | Required? | Type | Field Description | Example |
---|---|---|---|---|
sku_primary | required | string | This is the product identifier. This must match the SKU used in the Product Table. | "sku_178" |
success | required | boolean | Whether the price was pushed successfully or not. | true |
error_info | optional | string | Optional error information. | undefined |
Example Usage
Example request:
curl -X POST "https://<your-company-api>.com/luca/v1/price-push" \
-H "Authorization: Bearer <api-key>" \
-H "Content-Type: application/json" \
-d '[
{"price": 10.51, "sku_primary": "10245"},
{"price": 3.42, "sku_primary": "09861"},
{"price": 11.91, "sku_primary": "18274"}
]'
Which might return:
[
{"sku_primary": "10245", "success": true},
{"sku_primary": "09861", "success": true},
{"sku_primary": "18274", "success": true}
]