Skip to main content
POST
/
deliveries
Create Delivery
curl --request POST \
  --url https://api.sandbox.isometric.com/registry/v0/deliveries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '
{
  "credit_batch_quantities": [
    {
      "credit_batch_id": "<string>",
      "credit_quantity_kg": 123
    }
  ],
  "notes": "Delivered with care.",
  "order_id": "<string>"
}
'
{
  "credit_batch_size_total": {
    "credit_kgs": 123,
    "credits": 123
  },
  "delivered_at": "2023-11-07T05:31:56Z",
  "from_supplier": {
    "id": "<string>",
    "location": {
      "country_code": "<string>",
      "country_name": "<string>",
      "latitude": 0,
      "longitude": 0,
      "description": "<string>"
    },
    "long_description": "<string>",
    "organisation": {
      "domain": "isometric.com",
      "id": "<string>",
      "name": "<string>"
    },
    "short_description": "<string>"
  },
  "id": "<string>",
  "notes": "Delivered with care.",
  "order_id": "<string>",
  "to_organisation": {
    "domain": "isometric.com",
    "id": "<string>",
    "name": "<string>"
  },
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API A secret token identifying the client connecting to the API

Body

application/json
credit_batch_quantities
CreditBatchQuantity · object[]
required

A list of credit batch IDs and kilogram amounts of each to deliver.

Minimum array length: 1
notes
string | null
required

A publicly visible note stored with the credit delivery.

Maximum string length: 256
Example:

"Delivered with care."

order_id
string
required

The ID of the order you wish to fulfil with the specified credit batch amounts.

Required string length: 20 - 37

Response

Successful Response

credit_batch_size_total
CreditQuantity · object
required
delivered_at
string<date-time>
required
from_supplier
Supplier · object
required
id
string
required
Required string length: 20 - 37
notes
string | null
required

A publicly visible note stored with the credit delivery.

Maximum string length: 256
Example:

"Delivered with care."

order_id
string
required
Required string length: 20 - 37
to_organisation
Organisation · object
required
url
string
required