Skip to main content
POST
/
api
/
wallets
/
wallets
/
{id}
/
credit
Credit a wallet
curl --request POST \
  --url http://localhost/api/wallets/wallets/{id}/credit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": {
    "asset": "USD/2",
    "amount": 100
  },
  "metadata": {
    "key": ""
  },
  "sources": []
}
'
{
  "errorCode": "VALIDATION",
  "errorMessage": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.formance.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Idempotency-Key
string

Use an idempotency key

Path Parameters

id
string
required

Body

application/json
amount
object
required
metadata
object

Metadata associated with the wallet.

reference
string
sources
object[] | null
balance
string

The balance to credit

timestamp
string<date-time>

Response

Wallet successfully credited