Generate a credit in sandbox
Lastly, let's generate a credit in sandbox. This allows you to test the behaviour of your integration when receiving an inbound payment.
info
This endpoint is for testing purposes only and won't work in production.
curl -i -X POST \
'https://api-sandbox.equalsmoney.com/v2/budgets/generate-credit?accountId={accountId}' \
-H 'Authorization: ApiKey {apiKey}' \
-H 'Content-Type: application/json' \
-d '{
"budgetId": "{budgetId}",
"settlementPriceAmount": "200",
"settlementPriceCurrency": "GBP",
"remittersName": "William Walker",
"reference": "REF-123-456",
"remittersAddress": "41 Middle Street, Enfield, EN1 3JY",
"beneficiaryName": "John Smith",
"schemeName": "FasterPayment"
}'
If your request is successful, you'll receive an empty 200
response. You'll also receive a BoxCredited
webhook.