Skip to main content
POST
/
postings
Create a virtual asset posting
curl --request POST \
  --url https://sandbox.api.reap.global/postings/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Reap-Version: <reap-version>' \
  --header 'idempotency-key: <idempotency-key>' \
  --data '
{
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "DEPOSIT",
  "entries": [
    {
      "virtualAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "amount": "<string>"
    }
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "DEPOSIT",
  "entries": [
    {
      "virtualAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "amount": "<string>",
      "rateSnapshot": 123
    }
  ],
  "settledAmount": 123,
  "createdAt": "<string>"
}

Authorizations

Authorization
string
header
required

API key as Bearer token

Headers

Reap-Version
enum<string>
required

API version (YYYY-MM-DD)

Available options:
2025-02-14
Example:

"2025-02-14"

Idempotency-Key
string

Unique key for safely retrying this request. Up to 255 characters; we recommend a UUIDv4. The first request executes and its response is cached; subsequent requests with the same key replay the cached response (24h retention).

Required string length: 1 - 255
idempotency-key
string
required

Unique key for safely retrying this request. Up to 255 characters; we recommend a UUIDv4. The first request executes and its response is cached; subsequent requests with the same key replay the cached response (24h retention).

Required string length: 1 - 255

Body

accountId
string<uuid>
required

Account to post against

type
enum<string>
required
  • DEPOSIT: Credit the submitted virtual asset amounts to the account balance.
  • WITHDRAWAL: Debit the submitted virtual asset amounts from the account balance. Rejected if any entry would take the balance below zero.
  • SETTLEMENT: Debit the submitted virtual asset amounts from the account balance AND apply their value to the account’s outstanding card debt. Same non-negative guard as WITHDRAWAL.
Available options:
DEPOSIT,
WITHDRAWAL,
SETTLEMENT
Example:

"DEPOSIT"

entries
object[]
required

At least one entry. Each virtualAssetId may appear only once.

Minimum array length: 1

Response

Client-driven posting against an account.

id
string<uuid>
required

Posting ID

accountId
string<uuid>
required

Account ID

type
enum<string>
required
  • DEPOSIT: Credit the submitted virtual asset amounts to the account balance.
  • WITHDRAWAL: Debit the submitted virtual asset amounts from the account balance. Rejected if any entry would take the balance below zero.
  • SETTLEMENT: Debit the submitted virtual asset amounts from the account balance AND apply their value to the account’s outstanding card debt. Same non-negative guard as WITHDRAWAL.
Available options:
DEPOSIT,
WITHDRAWAL,
SETTLEMENT
Example:

"DEPOSIT"

entries
object[]
required
settledAmount
number | null
required

USD value applied to outstanding card debt. Populated for SETTLEMENT postings, null otherwise.

createdAt
string
required

ISO 8601 creation timestamp