Inserimento richiesta riparazioneβ
[baseUrl]/api/sync/v1/Repair/Update
Descrizioneβ
Questa API consente l'inserimento di una richiesta di riparazione
Parametri richiestaβ
Modelloβ
| Field | Type | Required | Default | Description | Notes |
|---|---|---|---|---|---|
ExternalKey | string | null | ID ordine sulla piattaforma esterna | ||
DocumentDate | DateTime | null | Data ordine | ||
Number | string | null | Numero ordine | Se non inserito viene generato da XOX | |
Rows | Row[] | null | Elenco righe |
Rowβ
| Field | Type | Required | Default | Description | Notes |
|---|---|---|---|---|---|
ExternalKey | string | null | ID della righe sulla piattaforma esterna | ||
RowType | int | null | Tipo riga. Un valore tra: 1 - Prodotto | ||
FIDBOP | int | null | ID della distinta | ||
Qty1 | decimal | null | QuantitΓ | ||
Description | string | null | Descrizione | ||
RepairDescription | string | null | Descrizione riparazione |
Esempio richiestaβ
sh
curl --location '[baseUrl]/api/sync/v1/repair/update?debug=true' \
--header 'AccessToken: {{token}}' \
--data '[
{
"Number": "APP-001",
"DocumentDate": "2024-09-03 10:03:00",
"Rows": [
{
"RowType": 1,
"FIDBOP": 252144,
"Qty1": 1,
"Description": "DESCRIZIONE",
"RepairDescription": "DESCRIZIONE RIPARAZIONE"
}
]
}
]'
Rispostaβ
JSON
{
"statusCode": 200,
"errorCode": null,
"message": null,
"result": {
"totalCount": 1,
"totalPages": 1,
"page": 1,
"count": 1,
"records": [
{
"Item1": 255165,
"Item2": null,
"Item3": true,
"Item4": null,
"Item5": [
{
"Item1": 9429945,
"Item2": null
}
]
}
],
"record": null
},
"debug": {
"requestTime": "2024-10-17T07:21:18.3175129+02:00",
"responseTime": "2024-10-17T07:21:24.3779265+02:00",
"duration": "00:00:06.0604136",
"clientIP": "::1"
}
}
Modelloβ
| Field | Type | Description |
|---|---|---|
Item1 | int | ID del documento 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) |
Item5 | Row[] | Esito delle righe |
Rowβ
| Field | Type | Description |
|---|---|---|
Item1 | int | ID della riga sul DB XOX |
Item2 | string | Chiave della piattaforma esterna. Valore passato in ExternalKey |
Item3 | string | Sottomatricola - SubOrderRowCode |
Item4 | int? | ID della distinta - FIDBOP |