Divendo API 2.0

We’ve rebuilt our API from the ground up to be easier than ever to integrate our platform with your favourite software

Orders

The Orders endpoint contains all of the resources you need to retrieve and manage orders placed for your store.

Lookup an order

GET/orders/{id or ordernumber}

Retrieves an order from your store matching the specified criteria.

Parameters id or ordernumber The unique id/number of the order

Example response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "id": "5668f38d46fc510c6c0d4705",
  "ordernumber": "159949",
  "created": "2017-12-10T03:37:49.745+00:00",
  "modified": "2017-12-10T12:01:29.502+00:00",
  "success": true,
  "currency": "GBP",
  "status": {
    "id": "56409ed246fc580098b28604",
    "name": "Complete"
  },
  "customer": {
    "id": "5643eff487bb38127c11e324",
    "email": "[email protected]",
    "billto": {
      "name": {
        "title": "Mr",
        "firstname": "Test",
        "surname": "Customer"
      },
      "company": null,
      "address": {
        "addressline1": "20-22 Wenlock Road",
        "addressline2": "",
        "addressline3": "",
        "towncity": "London",
        "stateprovince": "London",
        "postalcode": "N1 7GU",
        "country": "GB"
      }
    },
    "shipto": {
      "name": {
        "title": "Mr",
        "firstname": "Test",
        "surname": "Customer"
      },
      "company": null,
      "address": {
        "addressline1": "20-22 Wenlock Road",
        "addressline2": "",
        "addressline3": "",
        "towncity": "London",
        "stateprovince": "London",
        "postalcode": "N1 7GU",
        "country": "GB"
      }
    },
    "numbers": [
      "02030869860"
    ],
    
  },
  "items": [
    {
      "id": "1668f38d46fc510c6c0d4706",
      "sku": "R24842344",
      "name": "Sylvanian Families Family Barbeque Set",
      "variation": null,
      "quantity": 1,
      "unitprice": 5,
      "unitsalediscount": 0,
      "unittax": 0,
      "subtotal": 5,
      "productid": "52f840e687bb3843cc26e704",
      "variantid": "53f840e687bb3843cc26e705",
      "cancellation": null
    }
  ],
  "subtotal": 5,
  "discounts": 0,
  "tax": 0,
  "total": 5,
  "promotions": [
    "FREEPOST"
  ],
  "fulfilmentmethod": "Home Delivery",
  "shipping": {
    "service": "Standard (3-5 working days)",
    "carriercode": null,
    "cost": 0,
    "nominateddate": null,
    "notes": "",
    "shippingdate": null,
    "consignmentnumber": null
  },
  "financeagreement": {
    "active": false,
    "agreementnumber": null,
    "status": null
  }
}