PlanewardPlaneward Docs
PlanewardPlaneward Docs
Welcome

Developers

REST APIAuthenticationWebhooksMCPMCP journeyTask description contentDeveloper hub

API

Get a balance GETList balance entries GETCredit a balance POSTDebit a balance POSTTransfer between balances POST
Balances

Transfer between balances

A `SYSTEM` debit on `from` and a `SYSTEM` credit on `to`, both or neither. `from` and `to` must differ; the debit may take `from` below zero.

POST
/balances/transfer

A SYSTEM debit on from and a SYSTEM credit on to, both or neither. from and to must differ; the debit may take from below zero.

Authorization

x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/balances/transfer" \  -H "Content-Type: application/json" \  -d '{    "from": {      "kind": "treasury"    },    "to": {      "kind": "treasury"    },    "amount": 1,    "description": "string",    "reference": "string"  }'
{  "data": {    "debit": {      "id": "string",      "accountId": "string",      "amount": 0,      "direction": "CREDIT",      "type": "SHARE",      "description": "string",      "source": "MANUAL",      "reference": "string",      "availableAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    },    "credit": {      "id": "string",      "accountId": "string",      "amount": 0,      "direction": "CREDIT",      "type": "SHARE",      "description": "string",      "source": "MANUAL",      "reference": "string",      "availableAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    },    "created": true,    "fromBalance": {      "settled": 0,      "pending": 0,      "available": 0    },    "toBalance": {      "settled": 0,      "pending": 0,      "available": 0    }  }}

Debit a balance POST

May take the balance below zero. Never opens a wallet.

List Meta conversions GET

Next Page

from*
to*
amount*integer

Integer minor units

Range1 <= value
description*string
reference*string

Idempotency key; stored on both legs