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

Retrieve all orders within a given date range

GET/orders/search/{start}/{end}

Gets all orders created within the specified date range.

Parameters start Timestamp of the start date in yyyy-MM-dd HHmm format
end Timestamp of the end date in yyyy-MM-dd HHmm format
Querystring count The number of records to return (maximum 25)
offset The number of records from a collection to skip

Example response

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

{
  "total": 317,
  "count": 1,
  "offset": 0,
  "results": [
    {
      "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
      }
    }
  ]
}