> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.zippd.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.zippd.com/_mcp/server.

# Create an Economy order

POST https://sandbox-api.deliveryapp.com/api/v1/orders-economy
Content-Type: application/json

Place an order for an Economy delivery. Provide one delivery location. Zippd selects the Economy hub that serves the delivery postcode and adds it as the collection location. Delivery is scheduled after all parcels have been scanned at the hub.

Reference: https://api-docs.zippd.com/orders-economy/post-orders-economy

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `payment_method` (enum, required) — Select the method the API should use to process payment for this order.
  - Allowed values: `da-credit`, `gocardless`
- `order_locations` (list of OrdersEconomyPostRequestBodyContentApplicationJsonSchemaOrderLocationsItems, required) — Provide exactly one delivery location. Zippd adds the collection location automatically.
- `items` (list of OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItems, required)
- `internal_ref` (string, optional, nullable) — An order reference provided by your systems.
- `additional_notes` (string, optional, nullable) — Additional information that will be seen by the delivery driver during order fulfilment.
- `barcode_generation` (OrdersEconomyPostRequestBodyContentApplicationJsonSchemaBarcodeGeneration, optional) — Use this to prompt the system to generate barcodes as soon as the order is placed.
- `branding` (OrdersEconomyPostRequestBodyContentApplicationJsonSchemaBranding, optional, nullable) — Provide basic branding details. If provided, these will be displayed on our delivery tracking screens.

## Response

### 201

Created. The order awaits scans at the Economy hub before delivery is scheduled.

- `data` (DeliveryRequest, required) — The details of a delivery request placed by a user that sends items using the platform.

## Errors

### 401 Unauthorized Error

No API token, an invalid token, or incorrect authentication credentials have been sent with the request so the client could not be authenticated.

- `message` (string, optional)

### 403 Forbidden Error

The authenticated user does not have API access.

- `any`

### 422 Unprocessable Entity Error

Invalid data was sent with the request

- `message` (string, optional) — An overview of the error response.
- `errors` (OrdersEconomyPostResponsesContentApplicationJsonSchemaErrors, optional) — A list of errors. Each item will represent a single field and contain a simple array of error messages.

## Types

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaOrderLocationsItems

- `address` (OrdersEconomyPostRequestBodyContentApplicationJsonSchemaOrderLocationsItemsAddress, required)
- `time_from` (string, optional) — The start of the requested delivery window in local time (HH:mm). If you provide a window, it must fit within the configured delivery shift.
- `time_to` (string, optional) — The end of the requested delivery window in local time (HH:mm). If you provide a window, it must fit within the configured delivery shift.

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItems

- `dimension` (OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItemsDimension, required) — An object providing the dimensions of the item. All measurements are in centimetres.
- `weight` (OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItemsWeight, required) — An object outlining the weight of the item. All weights are in kilograms.
- `title` (string, optional, nullable) — A title for the item. Shown to users that manage the Zippd account.
- `description` (string, optional, nullable) — A description of the item.
- `quantity` (integer, optional, default: 1) — The quantity of this particular item that is to be delivered. This field __does not__ accept a `null` value.

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaBarcodeGeneration

Use this to prompt the system to generate barcodes as soon as the order is placed.

- `packages` (integer, required) — The number of labels to generate.

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaBranding

Provide basic branding details. If provided, these will be displayed on our delivery tracking screens.

- `name` (string, required) — The name of the sending party.
- `logo` (string, optional, nullable) — An absolute URL to an appropriate logo image. Invalid URLs or insecure (non-https) URLs will be rejected.

### DeliveryRequest

The details of a delivery request placed by a user that sends items using the platform.

- `id` (string, optional) — The ID of the order.
- `code` (string, optional) — Zippd's short ID code for the order. Unique, and always starts with two letter, e.g. "DA", "RE" etc.
- `type` (enum, optional) — The order type.
  - Allowed values: `request`
- `fulfilment_date` (date, optional) — The date on which the order will be fulfilled by the driver.
- `internal_ref` (string, optional, nullable) — An order reference provided by your systems.
- `status` (enum, optional) — The current status of the order.
  - Allowed values: `accepted`, `started`, `awaiting`, `in-progress`, `completed`, `canceled`, `expired`, `expecting`
- `sub_status` (enum, optional, nullable) — The current sub-status of the order. The va `sub_status` will always be relative to the value of the `status` field.
  - Allowed values: `on-my-way`, `arrived-on-site`, `on-way-to-drop-off`
- `total_items` (integer, optional) — The total number of items (or parcels) attributed to this delivery request.
- `started_at` (datetime, optional, nullable) — Date/time when the delivery driver began fulfilling the delivery.
- `completed_at` (datetime, optional, nullable) — Date/time when the delivery driver completed fulfilling the delivery.
- `canceled_at` (datetime, optional, nullable) — Date/time when the delivery was cancelled.
- `additional_notes` (string, optional) — Additional information that will be seen by the delivery driver before and during order fulfilment.
- `cost_of_goods` (integer, optional) — The total cost of goods being delivered. This will be in lowest unit of currency, e.g. in pence for GBP.
- `locations` (list of OrderLocation, optional) — All locations relating to this order's deliveries. The first item is always the location where the driver will pickup the parcels to be delivered.
- `barcodes` (list of Barcode, optional) — A list of barcodes (parcels) that are to be delivered on with this order.
- `printable_label_url` (string, optional, nullable) — An absolute URL to a PDF with all package labels for this order.
- `requires_ready_for_collection` (boolean, optional) — Present with value true when this non-dedicated order requires a separate ready-for-collection signal before route planning. Omitted when collection readiness is not required. This is a requirement flag, not the current readiness status.

### OrdersEconomyPostResponsesContentApplicationJsonSchemaErrors

A list of errors. Each item will represent a single field and contain a simple array of error messages.

- `field_key_1` (list of string, optional)
- `field_key_2` (list of string, optional)

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaOrderLocationsItemsAddress

- `address_line_1` (string, required) — The first line of the location's address.
- `city` (string, required) — The city of the location's address.
- `postcode` (string, required) — The postal code of the location's address.
- `contact_name` (string, required) — A contact name for the location.
- `phone_number` (string, required) — A contact number for this location that may be used by the delivery driver.
- `email` (string, required) — A contact email for the recipient. This may be used to provide delivery tracking updates to the recipient.
- `id` (integer, optional, nullable) — The ID of an existing address. Provide the required delivery address fields when using an address ID.
- `address_line_2` (string, optional, nullable) — The second line of the location's address.
- `latitude` (double, optional, nullable) — The latitude coordinate of the location's address. If this field is not provided, our system will geolocate the coordinates using the other address details.
- `longitude` (double, optional, nullable) — The longitude coordinate of the location's address. If this field is not provided, our system will geolocate the coordinates using the other address details.
- `company_name` (string, optional, nullable) — The name of the company at this location.
- `country` (string, optional, nullable) — The country code for the delivery address. Defaults to the country configured for your account.

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItemsDimension

An object providing the dimensions of the item. All measurements are in centimetres.

- `depth` (double, required) — The depth of the item in centimetres.
- `width` (double, required) — The width of the item in centimetres.
- `height` (double, required) — The height of the item in centimetres.
- `unit` (enum, optional, nullable)
  - Allowed values: `cm`

### OrdersEconomyPostRequestBodyContentApplicationJsonSchemaItemsItemsWeight

An object outlining the weight of the item. All weights are in kilograms.

- `max` (double, required) — The maximum weight of the item in kilograms. If you have the exact weight available, provide it to both `min` and `max`. This value must be greater than or equal to `min`.
- `min` (double, required) — The minimum weight of the item in kilograms. If you have the exact weight available, provide it to both `min` and `max`.
- `unit` (enum, optional, nullable)
  - Allowed values: `kg`

### OrderLocation

The data of a location that has been added as a point to an order.

- `id` (integer, optional)
- `delivery_id` (integer, optional, nullable) — The ID of the delivery resource attributed to this location.
- `time_from` (string, optional) — The earliest time at which the driver should arrive at this location. Format 'H:i:s'.
- `time_to` (string, optional) — The latest time at which the driver should arrive at this location. Format 'H:i:s'.
- `tracking_code` (string, optional, nullable) — The unique tracking code of the delivery for this location.
- `web_tracking_url` (string, optional, nullable) — An absolute URL to a public web page that displays tracking information and options for the related delivery.
- `address` (OrderLocationAddress, optional)
- `contact_details` (OrderLocationContactDetails, optional)
- `driver_arriving_time` (datetime, optional, nullable) — The date/time at which the delivery driver arrived at the location.
- `driver_leaving_time` (datetime, optional, nullable) — The date/time at which the delivery driver left the location.
- `requires_handballing` (boolean, optional) — Whether or not the delivery requires the driver to assist with loading/unloading items. This is only appropriate for `delivery` order types. Other order types will always be `false`.
- `total_items` (integer, optional) — The total number of items (parcels) being delivered to this location.
- `instruction` (enum, optional, nullable) — A key that determines how the delivery should be flfilled.
  - Allowed values: `address`, `safe-place`
- `instruction_details` (string, optional, nullable) — Details relevant to the instruction. For example, for `safe-place`, you would provide the details of the safe place; for `address`, you might include a gate code for the driver.
- `delivery_instructions` (string, optional, nullable) — Instructions or additional information for the driver relating specifically to this location.
- `what3words` (string, optional, nullable) — The What3Words ID of the location's address.
- `client_system_delivery_id` (string, optional, nullable) — An identifier for the client system that manages this delivery.
- `barcodes` (list of Barcode, optional) — A list of barcodes (parcels) that are to be delivered to this location.
- `printable_label_url` (string, optional, nullable) — An absolute URL to a PDF with all package labels for this location.
- `proof_of_delivery` (ProofOfDelivery, optional) — Data from the proof of delivery collected by the delivery driver.

### Barcode

Details about a barcode (parcel) delivery status.

- `code` (string, optional) — The code representation of the barcode. Barcode codes will always be 20 characters in length.
- `code_formatted` (string, optional) — The human-readable code representation of the barcode.
- `order_location_id` (integer, optional) — The ID of the location that this barcode is linked to.
- `pickup_latitude` (double, optional, nullable) — The latitude coordinate of the location where this barcode was recorded as picked up by the delivery driver.
- `pickup_longitude` (double, optional, nullable) — The longitude coordinate of the location where this barcode was recorded as picked up by the delivery driver.
- `pickup_datetime` (datetime, optional, nullable) — The date/time at which the delivery driver recorded the barcode's pickup.
- `drop_off_latitude` (double, optional, nullable) — The latitude coordinate of the location where this barcode was recorded as dropped off by the delivery driver.
- `drop_off_longitude` (double, optional, nullable) — The longitude coordinate of the location where this barcode was recorded as dropped off by the delivery driver.
- `drop_off_datetime` (datetime, optional, nullable) — The date/time at which the delivery driver recorded the barcode's drop off.
- `undeliverable` (boolean, optional, nullable) — Whether or not the parcel was successfully delivered. This will be `null` if delivery has not been attempted yet.
- `undeliverable_reason` (string, optional, nullable) — A short description of why the parcel could not be delivered.
- `printable_label_url` (string, optional) — An absolute URL to a PDF with the package label for this barcode.
- `created_at` (datetime, optional) — The date/time at which the barcode was generated by the API.
- `updated_at` (datetime, optional) — The date/time at which the barcode was last updated.

### OrderLocationAddress

- `address_line_1` (string, optional) — The first line of the location's address.
- `address_line_2` (string, optional, nullable) — The second line of the location's address.
- `city` (string, optional) — The city of the location's address.
- `postcode` (string, optional) — The postal code of the location's address.
- `latitude` (double, optional) — The latitude coordinate of the location's address.
- `longitude` (double, optional) — The longitude coordinate of the location's address.

### OrderLocationContactDetails

- `contact_name` (string, optional) — A contact name for the location.
- `phone_number` (string, optional) — A contact number for this location that may be used by the delivery driver.
- `email` (string, optional, nullable) — A contact email for this location.
- `company_name` (string, optional, nullable) — The name of the company at this location.

### ProofOfDelivery

Data from the proof of delivery collected by the delivery driver.

- `photo` (string, optional) — An absolute URL to the photo the driver took as proof of delivery.
- `signature` (string, optional) — An absolute URL to the recipient's signature taken after delivery was fulfilled.
- `signer_name` (string, optional) — The name of the delivery recipient.
- `coordinates` (ProofOfDeliveryCoordinates, optional, nullable) — The coordinates of the final location where the delivery was fulfilled.

### ProofOfDeliveryCoordinates

The coordinates of the final location where the delivery was fulfilled.

- `latitude` (double, optional) — The latitude coordinate of the final location where the delivery was fulfilled.
- `longitude` (double, optional) — The longitude coordinate of the final location where the delivery was fulfilled.

## Examples

**Request**

```json
{
  "payment_method": "da-credit",
  "order_locations": [
    {
      "address": {
        "address_line_1": "73 Hamilton Road",
        "city": "Manchester",
        "postcode": "M16 9HQ",
        "contact_name": "Jane Doe",
        "phone_number": "+447911123456",
        "email": "recipient@example.com",
        "country": "GB"
      }
    }
  ],
  "items": [
    {
      "dimension": {
        "depth": 30,
        "width": 20,
        "height": 15
      },
      "weight": {
        "max": 2,
        "min": 2
      },
      "title": "Shoes",
      "quantity": 1
    }
  ],
  "internal_ref": "ORDER000123",
  "barcode_generation": {
    "packages": 1
  }
}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "code": "RE9M3B60",
    "type": "request",
    "fulfilment_date": "2023-01-15",
    "internal_ref": "string",
    "status": "accepted",
    "sub_status": "on-my-way",
    "total_items": 1,
    "started_at": "2023-01-11 08:30:15",
    "completed_at": "2023-01-11 08:30:15",
    "canceled_at": "2023-01-11 08:30:15",
    "additional_notes": "string",
    "cost_of_goods": 123456,
    "locations": [
      {
        "id": 24013,
        "delivery_id": 5146,
        "time_from": "11:00:00",
        "time_to": "11:30:00",
        "tracking_code": "DA6A3U7U-13447",
        "web_tracking_url": "https://www.zippd.com/tracking/?code=DA6A3U7U-13447&email=recipient@example.com",
        "address": {
          "address_line_1": "123 Grovesby Road",
          "address_line_2": "Billingham House, Flat 45",
          "city": "Manchester",
          "postcode": "M1 2AB",
          "latitude": 53.477582,
          "longitude": -2.255331
        },
        "contact_details": {
          "contact_name": "Jane Doe",
          "phone_number": "07123456789",
          "email": "contact@example.com",
          "company_name": "Example Company"
        },
        "driver_arriving_time": "2023-01-11 11:15:08",
        "driver_leaving_time": "2023-01-11 11:21:37",
        "requires_handballing": true,
        "total_items": 1,
        "instruction": "address",
        "instruction_details": "string",
        "delivery_instructions": "string",
        "what3words": "issued.assure.courier",
        "client_system_delivery_id": "string",
        "barcodes": [
          {
            "code": "DA021758014227000253",
            "code_formatted": "DA 021758 014227 000253",
            "order_location_id": 1,
            "pickup_latitude": 53.477582,
            "pickup_longitude": -2.255331,
            "pickup_datetime": "2023-01-09 11:05:55",
            "drop_off_latitude": 53.612242,
            "drop_off_longitude": -2.152356,
            "drop_off_datetime": "2023-01-09 12:36:27",
            "undeliverable": true,
            "undeliverable_reason": "Could not gain access to location",
            "printable_label_url": "https://sandbox-api.deliveryapp.com/package-label/print/barcode/5c1a370d-26eb-4afe-b18a-6f531dd00eb1/DA021758014227000253",
            "created_at": "2023-01-05 09:00:00",
            "updated_at": "2023-01-05 09:00:00"
          }
        ],
        "printable_label_url": "https://sandbox-api.deliveryapp.com/package-label/print/location/5c1a370d-26eb-4afe-b18a-6f531dd00eb1/24013",
        "proof_of_delivery": {
          "photo": "string",
          "signature": "string",
          "signer_name": "Jane Doe",
          "coordinates": {
            "latitude": 53.477582,
            "longitude": -2.255331
          }
        }
      }
    ],
    "barcodes": [
      {
        "code": "DA021758014227000253",
        "code_formatted": "DA 021758 014227 000253",
        "order_location_id": 1,
        "pickup_latitude": 53.477582,
        "pickup_longitude": -2.255331,
        "pickup_datetime": "2023-01-09 11:05:55",
        "drop_off_latitude": 53.612242,
        "drop_off_longitude": -2.152356,
        "drop_off_datetime": "2023-01-09 12:36:27",
        "undeliverable": true,
        "undeliverable_reason": "Could not gain access to location",
        "printable_label_url": "https://sandbox-api.deliveryapp.com/package-label/print/barcode/5c1a370d-26eb-4afe-b18a-6f531dd00eb1/DA021758014227000253",
        "created_at": "2023-01-05 09:00:00",
        "updated_at": "2023-01-05 09:00:00"
      }
    ],
    "printable_label_url": "https://sandbox-api.deliveryapp.com/package-label/print/order/5c1a370d-26eb-4afe-b18a-6f531dd00eb1",
    "requires_ready_for_collection": true
  }
}
```

**SDK Code**

```python
import requests

url = "https://sandbox-api.deliveryapp.com/api/v1/orders-economy"

payload = {
    "payment_method": "da-credit",
    "order_locations": [{ "address": {
                "address_line_1": "73 Hamilton Road",
                "city": "Manchester",
                "postcode": "M16 9HQ",
                "contact_name": "Jane Doe",
                "phone_number": "+447911123456",
                "email": "recipient@example.com",
                "country": "GB"
            } }],
    "items": [
        {
            "dimension": {
                "depth": 30,
                "width": 20,
                "height": 15
            },
            "weight": {
                "max": 2,
                "min": 2
            },
            "title": "Shoes",
            "quantity": 1
        }
    ],
    "internal_ref": "ORDER000123",
    "barcode_generation": { "packages": 1 }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://sandbox-api.deliveryapp.com/api/v1/orders-economy';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"payment_method":"da-credit","order_locations":[{"address":{"address_line_1":"73 Hamilton Road","city":"Manchester","postcode":"M16 9HQ","contact_name":"Jane Doe","phone_number":"+447911123456","email":"recipient@example.com","country":"GB"}}],"items":[{"dimension":{"depth":30,"width":20,"height":15},"weight":{"max":2,"min":2},"title":"Shoes","quantity":1}],"internal_ref":"ORDER000123","barcode_generation":{"packages":1}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-api.deliveryapp.com/api/v1/orders-economy"

	payload := strings.NewReader("{\n  \"payment_method\": \"da-credit\",\n  \"order_locations\": [\n    {\n      \"address\": {\n        \"address_line_1\": \"73 Hamilton Road\",\n        \"city\": \"Manchester\",\n        \"postcode\": \"M16 9HQ\",\n        \"contact_name\": \"Jane Doe\",\n        \"phone_number\": \"+447911123456\",\n        \"email\": \"recipient@example.com\",\n        \"country\": \"GB\"\n      }\n    }\n  ],\n  \"items\": [\n    {\n      \"dimension\": {\n        \"depth\": 30,\n        \"width\": 20,\n        \"height\": 15\n      },\n      \"weight\": {\n        \"max\": 2,\n        \"min\": 2\n      },\n      \"title\": \"Shoes\",\n      \"quantity\": 1\n    }\n  ],\n  \"internal_ref\": \"ORDER000123\",\n  \"barcode_generation\": {\n    \"packages\": 1\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://sandbox-api.deliveryapp.com/api/v1/orders-economy")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"payment_method\": \"da-credit\",\n  \"order_locations\": [\n    {\n      \"address\": {\n        \"address_line_1\": \"73 Hamilton Road\",\n        \"city\": \"Manchester\",\n        \"postcode\": \"M16 9HQ\",\n        \"contact_name\": \"Jane Doe\",\n        \"phone_number\": \"+447911123456\",\n        \"email\": \"recipient@example.com\",\n        \"country\": \"GB\"\n      }\n    }\n  ],\n  \"items\": [\n    {\n      \"dimension\": {\n        \"depth\": 30,\n        \"width\": 20,\n        \"height\": 15\n      },\n      \"weight\": {\n        \"max\": 2,\n        \"min\": 2\n      },\n      \"title\": \"Shoes\",\n      \"quantity\": 1\n    }\n  ],\n  \"internal_ref\": \"ORDER000123\",\n  \"barcode_generation\": {\n    \"packages\": 1\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://sandbox-api.deliveryapp.com/api/v1/orders-economy")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"payment_method\": \"da-credit\",\n  \"order_locations\": [\n    {\n      \"address\": {\n        \"address_line_1\": \"73 Hamilton Road\",\n        \"city\": \"Manchester\",\n        \"postcode\": \"M16 9HQ\",\n        \"contact_name\": \"Jane Doe\",\n        \"phone_number\": \"+447911123456\",\n        \"email\": \"recipient@example.com\",\n        \"country\": \"GB\"\n      }\n    }\n  ],\n  \"items\": [\n    {\n      \"dimension\": {\n        \"depth\": 30,\n        \"width\": 20,\n        \"height\": 15\n      },\n      \"weight\": {\n        \"max\": 2,\n        \"min\": 2\n      },\n      \"title\": \"Shoes\",\n      \"quantity\": 1\n    }\n  ],\n  \"internal_ref\": \"ORDER000123\",\n  \"barcode_generation\": {\n    \"packages\": 1\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://sandbox-api.deliveryapp.com/api/v1/orders-economy', [
  'body' => '{
  "payment_method": "da-credit",
  "order_locations": [
    {
      "address": {
        "address_line_1": "73 Hamilton Road",
        "city": "Manchester",
        "postcode": "M16 9HQ",
        "contact_name": "Jane Doe",
        "phone_number": "+447911123456",
        "email": "recipient@example.com",
        "country": "GB"
      }
    }
  ],
  "items": [
    {
      "dimension": {
        "depth": 30,
        "width": 20,
        "height": 15
      },
      "weight": {
        "max": 2,
        "min": 2
      },
      "title": "Shoes",
      "quantity": 1
    }
  ],
  "internal_ref": "ORDER000123",
  "barcode_generation": {
    "packages": 1
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://sandbox-api.deliveryapp.com/api/v1/orders-economy");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"payment_method\": \"da-credit\",\n  \"order_locations\": [\n    {\n      \"address\": {\n        \"address_line_1\": \"73 Hamilton Road\",\n        \"city\": \"Manchester\",\n        \"postcode\": \"M16 9HQ\",\n        \"contact_name\": \"Jane Doe\",\n        \"phone_number\": \"+447911123456\",\n        \"email\": \"recipient@example.com\",\n        \"country\": \"GB\"\n      }\n    }\n  ],\n  \"items\": [\n    {\n      \"dimension\": {\n        \"depth\": 30,\n        \"width\": 20,\n        \"height\": 15\n      },\n      \"weight\": {\n        \"max\": 2,\n        \"min\": 2\n      },\n      \"title\": \"Shoes\",\n      \"quantity\": 1\n    }\n  ],\n  \"internal_ref\": \"ORDER000123\",\n  \"barcode_generation\": {\n    \"packages\": 1\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "payment_method": "da-credit",
  "order_locations": [["address": [
        "address_line_1": "73 Hamilton Road",
        "city": "Manchester",
        "postcode": "M16 9HQ",
        "contact_name": "Jane Doe",
        "phone_number": "+447911123456",
        "email": "recipient@example.com",
        "country": "GB"
      ]]],
  "items": [
    [
      "dimension": [
        "depth": 30,
        "width": 20,
        "height": 15
      ],
      "weight": [
        "max": 2,
        "min": 2
      ],
      "title": "Shoes",
      "quantity": 1
    ]
  ],
  "internal_ref": "ORDER000123",
  "barcode_generation": ["packages": 1]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-api.deliveryapp.com/api/v1/orders-economy")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```