VERIFICA STOCK​
[baseUrl]/api/sync/v1/Stock
Parametri richiesta​
| Field | Type | Required | Default | Description | Notes |
|---|---|---|---|---|---|
Codes | Code[] | null | Codici delle distinte |
Modelli​
Code​
| Field | Type | Required | Default | Description | Notes |
|---|---|---|---|---|---|
| CodeType | string | null | Tipo codice | CODE - codice distinta specifico; CATALOGCODE - codice catalogo; | |
| Code | string | null | Codice | Codice a seconda del valore del CodeType. | |
| CustomFields | CustomFields[] | null | Campi custom associati al codice |
CustomFields​
| Field | Type | Description | Notes |
|---|---|---|---|
| FIDExtra | int | ID del campo custom | |
| FIDExtraValue | int | ID del valore del campo custom |
Esempi ricerca​
Interrogazione disponibilità per codice specifico​
sh
curl --location --request POST '[baseUrl]/api/sync/v1/stock?debug=true' \
--header 'SyncPublicKey: publickey' \
--header 'SyncSecretKey: secretkey' \
--header 'Content-Type: application/json' \
--data-raw '{
"Codes": [
{
"CodeType": "CODE",
"Code": "DBC4001RONDE00RAG",
"CustomFields": [
{
"FIDExtra": 4,
"FIDExtraValue":4076
}
]
}
]
}'
Interrogazione disponibilità per codice catalogo​
sh
curl --location --request POST '[baseUrl]/api/sync/v1/stock?debug=true' \
--header 'SyncPublicKey: publickey' \
--header 'SyncSecretKey: secretkey' \
--header 'Content-Type: application/json' \
--data-raw '{
"Codes": [
{
"CodeType": "CATALOGCODE",
"Code": "DBC4001RONDE00RAG",
"CustomFields": [
{
"FIDExtra": 4,
"FIDExtraValue":4076
}
]
}
]
}'