Step 4: delete a recipient

You can delete existing recipients from your account when they're no longer needed. You probably don't need the test recipient we added earlier, so let's remove them.

SandboxProduction
Copy
Copied
curl -i -X DELETE \
  'https://api-sandbox.equalsmoney.com/v2/recipients/{recipientId}?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}'
Copy
Copied
curl -i -X DELETE \
  'https://api.equalsmoney.com/v2/recipients/{recipientId}?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}'

If your request is successful, you'll receive a 200 response and a RecipientDeleted webhook.

Copy
Copied
{
  "success": true
}

Next