> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equalsmoney.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a credit

> Lastly, let's generate a credit in sandbox. This allows you to test the behaviour of your integration when receiving an inbound payment.

# 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.
</Info>

```bash Sandbox theme={null}
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.
