POST /v1/subscriptions). This endpoint allows clients to specify:| Service | Type | Description | Subscription Key | Layout |
|---|---|---|---|---|
| accounts | balance | Triggered when an account balance is credited | accounts.balance.credit | account_transactions |
| accounts | balance | Triggered when an account balance is debited | accounts.balance.debit | account_transactions |
event_signature_key parameter when creating a subscription.event_signature_key returned in the API response will be masked. Only the last 4 characters will be visible.event-timestamp: Timestamp of the event creation in UTCevent-signature: HMAC-SHA256 hash generated using the event payload and the signature keyevent-timestamp + "." + raw_bodyevent-timestamp: 2025-02-03T22:20:24Zbody:{
"id": "ev_BdES3CkhSVmz0rqGfWXs",
"event_key": "accounts.balance.credit",
"created_at": "2025-02-03T22:20:24Z",
"content": {
"id": "trx_SUrdrNG67vb8cztFdeA0",
"type": "internal_credit",
"amount": 1,
"currency": "COP",
"date": "2025-02-03T22:20:23.677Z",
"metadata": {
"uniqueTransactionId": "mm_9zPfIqJZAepjeR",
"sender_account_number": "@coraa00233",
"description": "BMM Unitary test",
"sender_name": "Product Alpha",
"tracking_key": "",
"sender_id": "9011830296"
},
"account_id": "acc_rLR7UkxEt4",
"previous_balance": 40460,
"current_balance": 40461,
"credit_debit_type": "credit"
}
}2025-02-03T22:20:24Z.{"id":"ev_BdES3CkhSVmz0rqGfWXs","event_key":"accounts.balance.credit","created_at":"2025-02-03T22:20:24Z","content":{"id":"trx_SUrdrNG67vb8cztFdeA0","type":"internal_credit","amount":1,"currency":"COP","date":"2025-02-03T22:20:23.677Z","metadata":{"uniqueTransactionId":"mm_9zPfIqJZAepjeR","sender_account_number":"@coraa00233","description":"BMM Unitary test","sender_name":"Product Alpha","tracking_key":"","sender_id":"9011830296"},"account_id":"acc_rLR7UkxEt4","previous_balance":40460,"current_balance":40461,"credit_debit_type":"credit"}}event_signature_keyevent-signature header.event_signature_key to replicate the hash calculation:event_signature_key :"cobre is super secure" 1ff93b74902d1f94c38d0cf384a6b44d294b4557b3bfa8cb79c6dce9ba467215event-signature field of the headers at the top of the documentation.In the hash calculation process, you may need to specify the input and HMAC encoding. In these cases, use UTF-8.
| Retry Attempts | Applicable Errors | Conditions | Retry Intervals |
|---|---|---|---|
| 3 automatic retries | Connection errors only | No retries for 4xx responses | 200ms, 400ms, 1000ms |
ideventsurlcreated_atPOST /v1/subscriptions{
"id": "ev_xxxxx",
"event_key": "accounts.balance.credit",
"created_at": "2025-02-03T22:20:24Z",
"content": {
// Event-specific payload
}
}