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

Credit a balance

Settled at once; the recipient is notified (never the treasury). Crediting an active customer opens their wallet.

POST
/balances/credit

Settled at once; the recipient is notified (never the treasury). Crediting an active customer opens their wallet.

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/credit" \  -H "Content-Type: application/json" \  -d '{    "account": {      "kind": "treasury"    },    "amount": 1,    "description": "string",    "reference": "string"  }'
{  "data": {    "entry": {      "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,    "balance": {      "settled": 0,      "pending": 0,      "available": 0    }  }}

List balance entries GET

One account's entries, newest first.

Debit a balance POST

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

account*
amount*integer

Integer minor units

Range1 <= value
description*string
reference*string

Idempotency key, unique per account

type?string
Default"SHARE"

Value in

  • "SHARE"
  • "DEPOSIT"