POST
/
transfers
curl --request POST \
  --url https://api.sandbox.isometric.com/registry/v0/transfers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "credit_batch_quantities": [
    {
      "credit_batch_id": "pfx_1H0G39139CF0DZB2",
      "credit_quantity_kg": 1000
    }
  ],
  "from_organisation_id": "pfx_1H0G39139CF0DZB2",
  "notes": "Transferred with care.",
  "supplier_id": "pfx_1H0G39139CF0DZB2",
  "to_organisation_id": "pfx_1H0G39139CF0DZB2"
}'
{
  "credit_batch_size_total": {
    "credit_kgs": 125632,
    "credits": 125.632
  },
  "from_organisation": {
    "domain": "isometric.com",
    "id": "abc_1H0G39139CF0DZB2",
    "name": "Isometric"
  },
  "id": "abc_1H0G39139CF0DZB2",
  "notes": "<string>",
  "to_organisation": {
    "domain": "isometric.com",
    "id": "abc_1H0G39139CF0DZB2",
    "name": "Isometric"
  },
  "transferred_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

An 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

Body

application/json
credit_batch_quantities
object[]
required

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

from_organisation_id
string
required

The ID of the organisation that is sending the credits. Typically this would be your own organisation ID.

notes
string | null
required

A publicly visible note stored with the credit transfer.

supplier_id
string
required

All credits in a transfer must originate from the same supplier.

to_organisation_id
string
required

The ID of the organisation that will receive the credits.

Response

200 - application/json
credit_batch_size_total
object
required
from_organisation
object
required
id
string
required
notes
string | null
required
to_organisation
object
required
transferred_at
string
required