Aggiornamento flag prodotti posseduti
[baseUrl]/api/sync/v1/bop/possession/update/{FIDBOP}
Descrizione
L'API permette l'aggiornamento dei flag IgnorePossession e HidePossession
Parametri richiesta
| Field | Type | Required | Default | Description | Notes |
|---|---|---|---|---|---|
IgnorePossession | bool | null | |||
HidePossession | bool | null | |||
Esempio richiesta
sh
curl --location '[baseUrl]/api/sync/v1/bop/possesion?debug=true' \
--header 'AccessToken: {{token}}' \
--header 'Content-Type: application/json' \
--data '[
{
"FIDGroup": 10,
"Brand": "My Brand",
"Line": "My Line",
"Series": "My Series",
"SubSeries": "My Subseries",
"SupplierSN": "123456",
"SupplierCode": "SUP.12345",
"BuyDate": "2021-06-09",
"LastRevisionDate": "2023-06-09",
"IsInWarranty": false,
"OriginalBox": true
}
]'
Risposta
JSON
{
"statusCode": 200,
"errorCode": null,
"message": null,
"result": {
"totalCount": 1,
"totalPages": 1,
"page": 1,
"count": 1,
"records": [
{
"Item1": 252143,
"Item2": null,
"Item3": true,
"Item4": null
}
],
"record": null
},
"debug": {
"requestTime": "2024-10-16T09:09:27.1872719+02:00",
"responseTime": "2024-10-16T09:09:42.7082929+02:00",
"duration": "00:00:15.5210210",
"clientIP": "::1"
}
}
| Field | Type | Description |
|---|---|---|
Item1 | int | ID del prodotto sul DB XOX |
Item2 | string | Chiave della piattaforma esterna. Valore passato in ExternalKey |
Item3 | bool | Esito richiesta |
Item4 | string | Messaggio in caso di esito negativo (Item3 = false) |