Step 1: set up an account webhook

Before we start creating accounts, we're going to subscribe to the AccountActivated webhook event type. This event is triggered when Equals Money has activated your account and it's ready to be used. In a production environment, this happens after KYC checks have been successfully completed. We don't run these checks in sandbox, so you should receive it shortly after submitting your account creation request.

SandboxProduction
Copy
Copied
curl -i -X POST 'https://api-sandbox.equalsmoney.com/v2/webhooks' \
-H 'Authorization: ApiKey {apiKey}' \ # Your API key
-H 'Content-Type: application/json' \
-d '{
  "webhookEventTypeName": "AccountActivated",
  "url": "{webhookUrl}",
  "enabled": true
}'
Copy
Copied
curl -i -X POST 'https://api.equalsmoney.com/v2/webhooks' \
-H 'Authorization: ApiKey {apiKey}' \ # Your API key
-H 'Content-Type: application/json' \
-d '{
  "webhookEventTypeName": "AccountActivated",
  "url": "{webhookUrl}",
  "enabled": true
}'
info

For more information about webhooks and webhook event type structures, see the webhooks guide.

Next