ProdCloud API - OrderStatus service

Le service OrderStatus permet de connaitre l'état d'une commande et de ses compoants. Si un colis a été expédié avec un numéro de suivi, ce dernier est renseigné avec ce service.

  • Resource URL : /order_status/{order_reference}
  • HTTP method : GET
  • Exemple retour :
    {
      "order_reference": "CBA567",
      "order_status": "Partially shipped",
      "deliveries": [
        {
          "delivery_reference": "DEL562BS",
          "production_unit": "ByKaZa",
          "delivery_status": "Partially shipped",
          "items": [
            {
              "item_reference": "ITEM49SM32",
              "item_status": "Batching"
            }
          ],
          "parcels": [
    
          ]
        },
        {
          "delivery_reference": "DEL572BS",
          "production_unit": "TonDesignTaDeco",
          "delivery_status": "Shipped",
          "items": [
            {
              "item_reference": "ITEM49SM33",
              "item_status": "Shipped"
            }
          ],
          "parcels": [
            {
              "shipping_category": "Economy",
              "shipping_reference": "LPCIEconomyZ1",
              "tracking": "8L123456FR",
              "tracking_url": "",
              "weight": 250,
              "evaluating_size": "0x0x0"
            }
          ]
        }
      ],
      "_links": {
        "self": {
          "href": "http:\/\/localhost:3007\/order-status\/CBA567"
        }
      }
    }
                
  • Exemple de tests unitaires sur demande.