Add a balance or payment transfer
Creates a completed incoming transfer by default — used both for adding points balance and for recording a credit-wallet payment. Pass state: pending for a credit payment awaiting confirmation.
POST
/wallets/{wallet_id}/transfersAuthorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
wallet_idintegerrequiredRequest body
requiredapplication/jsonamountintegerrequiredPositive integer amount to add.
descriptionstringrequiredreference_codestringpayment_methodstringshop_idstringstatestringdefault: "completed"
Allowed:
pendingcompletedResponses
201Transfer created
_linksHalLinksidintegerdirectionstringAllowed:
incomingoutgoingstatestringAllowed:
pendingcompletedreverseddeletedexpiredamountintegerPositive for incoming transfers, negative for outgoing.
original_amountintegerOrder total that earned this transfer, for points earned from a purchase.
descriptionstringreference_codestringpayment_methodstringshop_idstringwallet_idintegerbalance_expires_atstring<date-time>created_onstring<date-time>422Invalid transfer (e.g. insufficient balance for an outgoing amount)
Request
curl -X POST "https://api.onbolder.com/v2/wallets/0/transfers" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": 500,
"description": "Signup bonus",
"reference_code": "signup-3001"
}'const response = await fetch("https://api.onbolder.com/v2/wallets/0/transfers", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"amount": 500,
"description": "Signup bonus",
"reference_code": "signup-3001"
})
});import requests
response = requests.post(
"https://api.onbolder.com/v2/wallets/0/transfers",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"amount": 500,
"description": "Signup bonus",
"reference_code": "signup-3001"
},
)Response
{
"_links": {
"property1": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
},
"property2": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
}
},
"id": 0,
"direction": "incoming",
"state": "pending",
"amount": 0,
"original_amount": 0,
"description": "string",
"reference_code": "string",
"payment_method": "string",
"shop_id": "string",
"wallet_id": 0,
"balance_expires_at": "2019-08-24T14:15:22Z",
"created_on": "2019-08-24T14:15:22Z"
}Invalid transfer (e.g. insufficient balance for an outgoing amount)