Skip to Content
KingsPay Docs

Create a Transfer

Move money between a platform account and its connected accounts. A platform account can transfer to any of its connected accounts; a connected account can transfer to its platform account, either with its own API key or by the platform sending the `On-Behalf-Of` header. Transfers to any other account, including between two connected accounts, are rejected. Transfers must be enabled for the sending account.

POST
/v1/transfers

Move money between a platform account and its connected accounts. A platform account can transfer to any of its connected accounts; a connected account can transfer to its platform account, either with its own API key or by the platform sending the On-Behalf-Of header. Transfers to any other account, including between two connected accounts, are rejected. Transfers must be enabled for the sending account.

Authorization

API Key
headerAuthorizationBearer <token>

Your API key for the API. You can find it in your integration settings. Starts with sk_

Header Parameters

Idempotency-Key?string

Unique key to safely retry this request. Repeating a key returns the original response instead of performing the operation again.

Request Body

application/json
  1. body
destination_account_id*string

The account receiving the money. It must be actively connected to the sending account: either its platform account or one of its connected accounts.

Formatuuid
amount*number
Formatdouble
currency*string
description?null|string
client_reference_id?null|string

Response Body

OK

application/json
  1. response
data*
status?string
Example Request
curl -X POST 'https://api.kingsplatform.net/api/v1/transfers' \  -H 'Content-Type: application/json' \  -d '{  "destination_account_id": "8695e0db-8457-4784-9058-cf427152bff1",  "amount": 0.1,  "currency": "string"}'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "source_account_id": "75fca71f-6b38-4768-804d-ffb93d0aa579",    "destination_account_id": "8695e0db-8457-4784-9058-cf427152bff1",    "source_account_name": null,    "destination_account_name": null,    "amount": 0.1,    "currency": "string",    "status": "string",    "description": null,    "client_reference_id": null,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "status": "string"}