POST call, passing a JSON body as specified below.{
"success":true
}
{
"success":false,
"message":"missing_params"
}
{
"saleCode": "SALDI2023",
"period": 1,
"startDate": "2023-01-01",
"endDate": "2023-04-02"
}
| Field | Description | Type | Mandatory |
|---|---|---|---|
| saleCode | Profile sale code | String | ✓ |
| period | Period number (1, 2 or 3) | Int | ✓ |
| startDate | Start date of the period (format: yyyy-MM-dd) | String | ✓ |
| endDate | End date of the period (format: yyyy-MM-dd) | String | ✓ |
{
"saleCode": "SALDI2023",
"period": 1,
"startDate": "2023-01-01",
"endDate": "2023-04-02"
}curl --location --request POST '/api?cmd=insertSalePeriod_v4&appId=KEEPIT&applicationId=KEEPIT' \
--header 'username: {{USERNAME}}' \
--header 'password: {{PASSWORD}}' \
--header 'companyId: {{COMPANY_ID}}' \
--header 'siteId: {{SITE_ID}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"saleCode": "SALDI2023",
"period": 1,
"startDate": "2023-01-01",
"endDate": "2023-04-02"
}'{"success":true}