POST call, passing a JSON body as specified below.callbackUrl specified in the request body{
"success":true,
"message":"operation_equeued"
}
{
"success":false,
"message":"The period is invalid"
}
{
"success": true,
"message": "Prices correctly inserted",
"totalItems": 3,
"itemsInError": 1,
"itemsErrors": [
{
"itemPosition": 2,
"reason": "The item must have a valid price (higher than 0)"
}
]
}
{
"saleCode": "SALDI2023",
"period": 1,
"items": [
{
"itemCode": "00001-BODY",
"price": "20"
},
{
"itemCode": "0000LODO2",
"discount": "50"
}
],
"callbackUrl": "https://callback/c6dbd95b-8c9e-446e-bb73-bc42504ca414"
}
| Field | Description | Type | Mandatory |
|---|---|---|---|
| saleCode | Profile sale code | String | ✓ |
| period | Period number (1,2 or 3) | String | ✓ |
| items | Array of items prices to insert | array (max length 100) | ✓ |
| Field | Description | Type | Mandatory |
|---|---|---|---|
| itemCode | item code | String | ✓ |
| price | Price | number | ✓ (if discount is not set) |
| discount | Discount percentage | number | ✓ (if price is not set) |
callbackUrl is optional, and if specified, a request to that URL will be made after the prices import has finished.