---
agentTools:
  projectIndex: https://store360.readme.io/llms.txt
---

# Aggiornamento stato ordini

Aggiorna stato e dati di spedizione per uno o più ordini.
Il body è un array di aggiornamenti (Ordini[]).
OrdineId è l'id dell'ordine sul canale di origine (ecommerce o marketplace, campo
external_orderid del GET /orders), non l'id interno Store360 (OrdineId del GET).

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "API Store360",
    "version": "1.0.0",
    "description": "API Store360 per la gestione di ordini, prodotti e stock.\n\n## Autenticazione\nTutte le API richiedono Bearer Token:\nAuthorization: Bearer {{token}}\n"
  },
  "servers": [
    {
      "url": "{{url}}",
      "description": "Store360 API base URL"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/store360_api/orders": {
      "put": {
        "tags": [
          "Orders"
        ],
        "summary": "Aggiornamento stato ordini",
        "description": "Aggiorna stato e dati di spedizione per uno o più ordini.\nIl body è un array di aggiornamenti (Ordini[]).\nOrdineId è l'id dell'ordine sul canale di origine (ecommerce o marketplace, campo\nexternal_orderid del GET /orders), non l'id interno Store360 (OrdineId del GET).\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdersStatusUpdateRequest"
              },
              "examples": {
                "aggiornamentoStati": {
                  "summary": "OrdersStatus - esempio completo",
                  "value": {
                    "Ordini": [
                      {
                        "OrdineId": "171-4434732-5614727",
                        "Stato": "PAGATOESPEDITO",
                        "Data": "2025-12-11T19:12:27.000Z",
                        "TrackingNumber": "G4660635509",
                        "CarrierUsed": "GLS",
                        "ShippingMethod": "National Express"
                      },
                      {
                        "OrdineId": "43460",
                        "Stato": "PAGATOESPEDITO",
                        "Data": "2025-12-11T19:15:30.000Z",
                        "TrackingNumber": "G4660635510",
                        "CarrierUsed": "GLS",
                        "ShippingMethod": "National Express"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Aggiornamento completato",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AckResponse"
                },
                "examples": {
                  "ackOk": {
                    "summary": "ACK OK",
                    "value": {
                      "ResponseTo": "OrdersStatus",
                      "Timestamp": "1765638000",
                      "Ack": "OK",
                      "MessaggioErrore": "",
                      "CodiceErrore": "0",
                      "Output": "Ordine 43460 aggiornato a stato=PAGATOESPEDITO \nOrdine 43460 : Dati Tracking e Corriere memorizzati correttamente \n"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "BaseResponse": {
        "type": "object",
        "properties": {
          "ResponseTo": {
            "type": "string"
          },
          "Timestamp": {
            "type": "string"
          },
          "Ack": {
            "type": "string"
          },
          "MessaggioErrore": {
            "type": "string"
          },
          "CodiceErrore": {
            "type": "string"
          }
        }
      },
      "AckResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponse"
          },
          {
            "type": "object",
            "properties": {
              "Output": {
                "type": "string"
              }
            }
          }
        ]
      },
      "OrdersStatusUpdateRequest": {
        "type": "object",
        "required": [
          "Ordini"
        ],
        "properties": {
          "Ordini": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "OrdineId",
                "Stato"
              ],
              "properties": {
                "OrdineId": {
                  "type": "string",
                  "description": "Id dell'ordine sul canale di origine (ecommerce o marketplace), cioè il campo\nexternal_orderid restituito dal GET /orders. Non è l'id interno Store360.\n"
                },
                "Stato": {
                  "type": "string",
                  "enum": [
                    "NUOVO",
                    "PAGATO",
                    "SPEDITO",
                    "PAGATOESPEDITO"
                  ]
                },
                "Data": {
                  "type": "string",
                  "description": "Facoltativa. Data dell'aggiornamento (es. data di spedizione)."
                },
                "TrackingNumber": {
                  "type": "string",
                  "description": "Opzionale. Salvato solo se anche CarrierUsed è presente."
                },
                "CarrierUsed": {
                  "type": "string",
                  "description": "Opzionale. Salvato solo se anche TrackingNumber è presente."
                },
                "ShippingMethod": {
                  "type": "string"
                },
                "OrdineInt": {
                  "type": "string",
                  "description": "Facoltativo. Vostro riferimento interno all'ordine (es. numero del vostro gestionale), salvato sull'ordine in Store360."
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 62,
      "2": 195,
      "3": 110,
      "4": 30,
      "5": 25,
      "6": 164,
      "7": 24,
      "8": 87,
      "9": 41,
      "10": 87,
      "11": 148
    }
  }
}
```