Passa al contenuto principale

Inserimento richiesta riparazione​

[baseUrl]/api/sync/v1/Repair/Update

Descrizione​

Questa API consente l'inserimento di una richiesta di riparazione

Parametri richiesta​

Modello​

FieldTypeRequiredDefaultDescriptionNotes
ExternalKeystringnullID ordine sulla piattaforma esterna
DocumentDateDateTimenullData ordine
NumberstringnullNumero ordineSe non inserito viene generato da XOX
RowsRow[]nullElenco righe

Row​

FieldTypeRequiredDefaultDescriptionNotes
ExternalKeystringnullID della righe sulla piattaforma esterna
RowTypeintnullTipo riga. Un valore tra: 1 - Prodotto
FIDBOPintnullID della distinta
Qty1decimalnullQuantitΓ 
DescriptionstringnullDescrizione
RepairDescriptionstringnullDescrizione 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​

FieldTypeDescription
Item1intID del documento sul DB XOX
Item2stringChiave della piattaforma esterna. Valore passato in ExternalKey
Item3boolEsito richiesta
Item4stringMessaggio in caso di esito negativo (Item3 = false)
Item5Row[]Esito delle righe

Row​

FieldTypeDescription
Item1intID della riga sul DB XOX
Item2stringChiave della piattaforma esterna. Valore passato in ExternalKey
Item3stringSottomatricola - SubOrderRowCode
Item4int?ID della distinta - FIDBOP