Carts

Events

Action Event name
Removing payments from a cart to pay manually cart.payments.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
}