Create a single-currency budget-to-budget transfer

Let's try simply moving funds from one of your budgets to another one of your budgets, in a single currency.

The budgetId in the path is your source budget, which the funds will be debited from. The destinationBudgetId in the request is the budget that the funds will be sent to.

SandboxProduction
Copy
Copied
curl -i -X POST \
  'https://api-sandbox.equalsmoney.com/v2/budgets/{budgetId}/transfer?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "destinationBudgetId": "{budgetId}",
    "currency": "GBP",
    "amount": "100"
  }'
Copy
Copied
curl -i -X POST \
  'https://api.equalsmoney.com/v2/budgets/{budgetId}/transfer?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "destinationBudgetId": "{budgetId}",
    "currency": "GBP",
    "amount": "100"
  }'

If your request is successful, you'll receive a 200 response. You'll also receive BoxCredited and BoxDebited webhooks in both production and sandbox.

Copy
Copied
{
  "success": true,
  "debitBoxTransactionId": 179032,
  "creditBoxTransactionId": 179033
}

Next