Events
| Action |
Event name |
| Removing payments from a cart to pay manually |
cart.payments.deleted |
| Adding a financing cost to a cart |
cart.financingcosts.created |
| Removing a financing cost from a cart |
cart.financingcosts.deleted |
| Removing all deletable paid-in items from a cart |
cart.paidinitems.deleted |
| Removing a single paid-in item from a cart |
cart.paidinitem.deleted |
Payload for cart.payments.deleted
{
"attemptId": "c67e1a3f-106c-4275-87b6-993b220d53bd",
"created": 1709581378,
"data": {
"cart": {
"_id": "65e62412c16db6051d498e8f",
"cutOffDateTime": {
"offset": 0,
"value": "2024-03-04T20:12:49.388Z"
},
"transactionIds": [
"65e62412c16db6051d498e8f"
]
},
"transactions": [
{
"_id": "65e62412c16db6051d498e8f",
"payments": [
{
"acceptedCurrency": null,
"acceptedCurrencyAmount": 58,
"amount": 58,
"authCode": "",
"createdAt": {
"offset": 0,
"value": "2024-03-04T19:42:33.878Z"
},
"createdAtBtrzpay": "2024-03-04T19:42:33.947Z",
"createdBy": "55fc2f318791db6e1a0000b6",
"displayName": "My referenced payment",
"error": "",
"errorMessage": "",
"externalType": "aregad3424523",
"maxWaitTime": 899,
"provider": "referencedPayments",
"referenceNumber": "519c3b05-f656-4df2-8ac7-cd9b8fa926fb",
"result": {
"error": "Payment removed by user",
"userId": "55fc2f318791db6e1a0000b6"
},
"rollbackPayload": null,
"status": "error",
"type": "my referenced payment",
"waitForCompletion": false,
"waitingExpirationDate": {
"offset": 0,
"value": "2024-03-04T19:57:32.878Z"
}
}
],
"status": "created",
"updatedAt": {
"offset": 0,
"value": "2024-03-04T19:42:49.388Z"
},
"updatedBy": "55fc2f318791db6e1a0000b6"
}
]
},
"event": "cart.payments.deleted",
"id": "77bbc78c-0243-4aea-8c0d-db68b913369f",
"livemode": true
}
| Field |
Type |
Description |
| attemptId |
string |
Attempt identifier (UUID). |
| created |
number |
Unix timestamp when the event was created. |
| data |
object |
Payload data. |
| data.cart |
object |
Cart summary; includes _id, cutOffDateTime, transactionIds. |
| data.transactions |
array |
List of transactions with payments; each payment may include result with "Payment removed by user" and userId. |
| event |
string |
Event name: cart.payments.deleted. |
| id |
string |
Event identifier (UUID). |
| livemode |
boolean |
Whether the event is from a live or test environment. |
Payload for cart.financingcosts.created
{
"attemptId": "86ff5ef7-8382-4103-95fb-52af56ae88be",
"created": 1754318651,
"data": {
"_id": "678e5c0f2d65e105095b5aa7",
"accountId": "66cfac670bba74052b9e98ca",
"createdAt": {
"offset": 0,
"value": "2025-01-20T14:22:07.642Z"
},
"createdBy": "66cfac670bba74052b9e98d2",
"creditCard": "visa",
"currencyCode": "ARS",
"dow": {
"friday": true,
"monday": true,
"saturday": true,
"sunday": true,
"thursday": true,
"tuesday": true,
"wednesday": true
},
"enabled": true,
"interest": [
{
"quotaNumber": 2,
"rate": 12000
},
{
"quotaNumber": 4,
"rate": 14000
},
{
"quotaNumber": 5,
"rate": 15000
},
{
"quotaNumber": 6,
"rate": 16000
},
{
"quotaNumber": 7,
"rate": 20000
},
{
"quotaNumber": 8,
"rate": 22500
},
{
"quotaNumber": 9,
"rate": 24000
},
{
"quotaNumber": 10,
"rate": 27000
},
{
"quotaNumber": 11,
"rate": 28500
},
{
"quotaNumber": 12,
"rate": 30000
},
{
"quotaNumber": 1,
"rate": 0
}
],
"internalId": "VISA12",
"maxQuota": 12,
"name": "VISA - Ahora 12",
"updatedAt": {
"offset": 0,
"value": "2025-03-31T15:50:12.844Z"
},
"updatedBy": "66d8dcf09bdcd9052e22a468"
},
"event": "cart.financingcosts.created",
"id": "63aede35-a6e2-44b9-b3b5-0af14baef718",
"livemode": false
}
| Field |
Type |
Description |
| attemptId |
string |
Attempt identifier (UUID). |
| created |
number |
Unix timestamp when the event was created. |
| data |
object |
The financing cost document that was added (e.g. _id, accountId, creditCard, currencyCode, dow, enabled, interest, internalId, maxQuota, name, etc.). |
| event |
string |
Event name: cart.financingcosts.created. |
| id |
string |
Event identifier (UUID). |
| livemode |
boolean |
Whether the event is from a live or test environment. |
Payload for cart.financingcosts.deleted
{
"attemptId": "a4703b4c-afcc-4261-a690-b7c8e26f64a2",
"created": 1754318786,
"data": {
"cartId": "6890c71b6a3b89071c52aeba"
},
"event": "cart.financingcosts.deleted",
"id": "d7c34ffb-c303-438a-8349-04664df7fbff",
"livemode": false
}
| Field |
Type |
Description |
| attemptId |
string |
Attempt identifier (UUID). |
| created |
number |
Unix timestamp when the event was created. |
| data |
object |
Payload data. |
| data.cartId |
string |
Cart ID (24 hex characters) from which the financing cost was removed. |
| event |
string |
Event name: cart.financingcosts.deleted. |
| id |
string |
Event identifier (UUID). |
| livemode |
boolean |
Whether the event is from a live or test environment. |
Payload for cart.paidinitems.deleted
Emitted when all deletable paid-in items are removed from a cart (DELETE /carts/:cartId/paid-in-items).
{
"attemptId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created": 1754319000,
"data": {
"cartpaidinitemId": "6890c71b6a3b89071c52aeba"
},
"event": "cart.paidinitems.deleted",
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"livemode": false
}
| Field |
Type |
Description |
| attemptId |
string |
Attempt identifier (UUID). |
| created |
number |
Unix timestamp when the event was created. |
| data |
object |
Payload data. |
| data.cartpaidinitemId |
string |
Cart ID (24 hex characters) from which paid-in items were removed. |
| event |
string |
Event name: cart.paidinitems.deleted. |
| id |
string |
Event identifier (UUID). |
| livemode |
boolean |
Whether the event is from a live or test environment. |
Payload for cart.paidinitem.deleted
Emitted when a single paid-in item is removed from a cart (DELETE /carts/:cartId/paid-in-items/:itemId).
{
"attemptId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"created": 1754319100,
"data": {
"cartId": "6890c71b6a3b89071c52aeba"
},
"event": "cart.paidinitem.deleted",
"id": "d4e5f6a7-b8c9-0123-def0-234567890123",
"livemode": false
}
| Field |
Type |
Description |
| attemptId |
string |
Attempt identifier (UUID). |
| created |
number |
Unix timestamp when the event was created. |
| data |
object |
Payload data. |
| data.cartId |
string |
Cart ID (24 hex characters) from which the paid-in item was removed. |
| event |
string |
Event name: cart.paidinitem.deleted. |
| id |
string |
Event identifier (UUID). |
| livemode |
boolean |
Whether the event is from a live or test environment. |