Skip to main content
When a payin is associated with a Checkout OBO session, all webhook payloads include the on_behalf_of field (the entity ID) in the data object. This field is omitted when OBO is not used.

Payin Status specific events

These are the events created and triggered when the status of the payin changes.
EventDescriptionDefault (on/off)
payin.requires_payment_methodTriggers when the status is requires_payment_methodOn
payin.requires_actionTriggers when the status is requires_actionOn
payin.processingTriggers when the status is processingOn
payin.succeededTriggers when the status is succeededOn
payin.cancelledTriggers when the payin is cancelledOff

payin.requires_payment_method

JSON
{
  "type": "payin.requires_payment_method",
  "created_at": "2024-10-07T07:10:21.894488Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "requires_payment_method",
    "amount": 10000,
    "amount_paid": 0,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": false,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": null,
    "latest_payment_attempt": "",
    "latest_payment_attempt_data": null,
    "payment_attempts": [],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": null,
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}

payin.requires_action

JSON
{
  "type": "payin.requires_action",
  "created_at": "2024-10-07T07:11:05.123456Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "requires_action",
    "amount": 10000,
    "amount_paid": 0,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": true,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "4242",
        "scheme": "visa",
        "funding": "credit",
        "issuing_country": "sg",
        "three_d_secure": {
          "result": "required"
        }
      }
    },
    "latest_payment_attempt": "pat_bfiuafuiafianifnao",
    "latest_payment_attempt_data": {
      "id": "pat_bfiuafuiafianifnao",
      "object": "payment_attempt",
      "payin": "pay_ahfafooi7fibakbfahoan",
      "status": "requires_action",
      "amount": 10000,
      "charge_currency": "USD",
      "payment_method_details": {
        "type": "card",
        "card": {
          "last4": "4242",
          "scheme": "visa",
          "funding": "credit",
          "issuing_country": "sg",
          "three_d_secure": {
            "result": "required"
          }
        }
      },
      "metadata": null,
      "created_at": "2024-10-07T07:11:05.123456Z"
    },
    "payment_attempts": ["pat_bfiuafuiafianifnao"],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": null,
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}

payin.processing

JSON
{
  "type": "payin.processing",
  "created_at": "2024-10-07T07:12:33.456789Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "processing",
    "amount": 10000,
    "amount_paid": 0,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": true,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "4242",
        "scheme": "visa",
        "funding": "credit",
        "issuing_country": "sg",
        "three_d_secure": {
          "eci": "05",
          "result": "authenticated",
          "version": "2.2.0"
        }
      }
    },
    "latest_payment_attempt": "pat_bfiuafuiafianifnao",
    "latest_payment_attempt_data": {
      "id": "pat_bfiuafuiafianifnao",
      "object": "payment_attempt",
      "payin": "pay_ahfafooi7fibakbfahoan",
      "status": "processing",
      "amount": 10000,
      "charge_currency": "USD",
      "payment_method_details": {
        "type": "card",
        "card": {
          "last4": "4242",
          "scheme": "visa",
          "funding": "credit",
          "issuing_country": "sg",
          "three_d_secure": {
            "eci": "05",
            "result": "authenticated",
            "version": "2.2.0"
          }
        }
      },
      "metadata": null,
      "created_at": "2024-10-07T07:11:05.123456Z"
    },
    "payment_attempts": ["pat_bfiuafuiafianifnao"],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": null,
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}

payin.succeeded

JSON
{
  "type": "payin.succeeded",
  "created_at": "2024-10-07T07:13:47.789012Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "succeeded",
    "amount": 10000,
    "amount_paid": 10000,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": true,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "on_behalf_of": "ent_d3inm6ami8u10oqfm",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "4242",
        "scheme": "visa",
        "funding": "credit",
        "cardholder_name": "Andrea Lark",
        "issuing_country": "sg",
        "checks": {
          "cvc_check": "pass"
        },
        "three_d_secure": {
          "eci": "05",
          "result": "authenticated",
          "version": "2.2.0"
        }
      }
    },
    "latest_payment_attempt": "pat_bfiuafuiafianifnao",
    "latest_payment_attempt_data": {
      "id": "pat_bfiuafuiafianifnao",
      "object": "payment_attempt",
      "payin": "pay_ahfafooi7fibakbfahoan",
      "status": "succeeded",
      "amount": 10000,
      "charge_currency": "USD",
      "balance_transaction": "btr_d679f6dqd9ne66lsngb0",
      "refunded": false,
      "customer_details": {
        "country": "SG",
        "email": "andrea@example.com",
        "name": "Andrea Lark",
        "phone": {
          "calling_code": "65",
          "number": "87654321"
        }
      },
      "payment_method_details": {
        "type": "card",
        "card": {
          "last4": "4242",
          "scheme": "visa",
          "funding": "credit",
          "cardholder_name": "Andrea Lark",
          "issuing_country": "sg",
          "checks": {
            "cvc_check": "pass"
          },
          "three_d_secure": {
            "eci": "05",
            "result": "authenticated",
            "version": "2.2.0"
          }
        }
      },
      "fx_transaction": {
        "id": "fx_d209ek2fhufa9pkp5c4g",
        "object": "fx_transaction",
        "exchange_rate": 1.0,
        "initial": {
          "amount": 10000,
          "currency": "USD"
        },
        "final": {
          "amount": 10000,
          "currency": "USD"
        }
      },
      "reference_id": "TR000001385673188",
      "status_description": "",
      "metadata": null,
      "created_at": "2024-10-07T07:11:05.123456Z"
    },
    "payment_attempts": ["pat_bfiuafuiafianifnao"],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": null,
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}

payin.cancelled

JSON
{
  "type": "payin.cancelled",
  "created_at": "2024-10-07T07:15:00.000000Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "cancelled",
    "amount": 10000,
    "amount_paid": 0,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": false,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": null,
    "latest_payment_attempt": "",
    "latest_payment_attempt_data": null,
    "payment_attempts": [],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": "2024-10-07T07:15:00.000000Z",
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}

Payment_Attempt Specific Events:

These events are created and triggered when something of interest happens for a payment attempt.
EventDescriptionDefault (on/off)
payment_attempt.failedWhen a payment_attempt failsOn
payment_attempt.succeededWhen the payment_attempt succeedsOff
payment_attempt.reversedWhen a payment_attempt is reversedOn

payment_attempt.failed

JSON
{
  "type": "payment_attempt.failed",
  "created_at": "2024-10-07T07:12:00.000000Z",
  "data": {
    "id": "pat_ahfafooi7ibakbfahoan",
    "object": "payment_attempt",
    "payin": "pay_bfiuafuiafianifnao",
    "status": "failed",
    "amount": 10000,
    "charge_currency": "USD",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "0002",
        "scheme": "visa",
        "funding": "credit",
        "cardholder_name": "Andrea Lark",
        "issuing_country": "sg",
        "checks": {
          "cvc_check": "fail"
        },
        "three_d_secure": {
          "eci": "07",
          "result": "failed",
          "version": "2.2.0"
        }
      }
    },
    "fx_transaction": null,
    "balance_transaction": null,
    "refunded": false,
    "reference_id": "TR000001385673188",
    "status_description": "Card declined",
    "metadata": null,
    "created_at": "2024-10-07T07:11:55.000000Z"
  },
  "id": "evt_auigfianfoangohuehg",
  "object": "event"
}

payment_attempt.succeeded

JSON
{
  "type": "payment_attempt.succeeded",
  "created_at": "2024-10-07T07:13:47.789012Z",
  "data": {
    "id": "pat_ahfafooi7ibakbfahoan",
    "object": "payment_attempt",
    "payin": "pay_bfiuafuiafianifnao",
    "status": "succeeded",
    "amount": 10000,
    "charge_currency": "USD",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "4242",
        "scheme": "visa",
        "funding": "credit",
        "cardholder_name": "Andrea Lark",
        "issuing_country": "sg",
        "checks": {
          "cvc_check": "pass"
        },
        "three_d_secure": {
          "eci": "05",
          "result": "authenticated",
          "version": "2.2.0"
        }
      }
    },
    "fx_transaction": {
      "id": "fx_d209ek2fhufa9pkp5c4g",
      "object": "fx_transaction",
      "exchange_rate": 1.0,
      "initial": {
        "amount": 10000,
        "currency": "USD"
      },
      "final": {
        "amount": 10000,
        "currency": "USD"
      }
    },
    "balance_transaction": "btr_d679f6dqd9ne66lsngb0",
    "refunded": false,
    "reference_id": "TR000001385673188",
    "status_description": "",
    "metadata": null,
    "created_at": "2024-10-07T07:11:05.123456Z"
  },
  "id": "evt_auigfianfoangohuehg",
  "object": "event"
}

payment_attempt.reversed

JSON
{
  "type": "payment_attempt.reversed",
  "created_at": "2024-10-07T07:14:30.000000Z",
  "data": {
    "id": "pat_ahfafooi7ibakbfahoan",
    "object": "payment_attempt",
    "payin": "pay_bfiuafuiafianifnao",
    "status": "reversed",
    "amount": 10000,
    "charge_currency": "USD",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": {
      "type": "card",
      "card": {
        "last4": "4242",
        "scheme": "visa",
        "funding": "credit",
        "cardholder_name": "Andrea Lark",
        "issuing_country": "sg",
        "checks": {
          "cvc_check": "pass"
        },
        "three_d_secure": {
          "eci": "05",
          "result": "authenticated",
          "version": "2.2.0"
        }
      }
    },
    "fx_transaction": {
      "id": "fx_d209ek2fhufa9pkp5c4g",
      "object": "fx_transaction",
      "exchange_rate": 1.0,
      "initial": {
        "amount": 10000,
        "currency": "USD"
      },
      "final": {
        "amount": 10000,
        "currency": "USD"
      }
    },
    "balance_transaction": "btr_d679f6dqd9ne66lsngb0",
    "refunded": false,
    "reference_id": "TR000001385673188",
    "status_description": "",
    "metadata": null,
    "created_at": "2024-10-07T07:11:05.123456Z"
  },
  "id": "evt_auigfianfoangohuehg",
  "object": "event"
}

Other Events:

EventDescriptionDefault (on/off)
payin.createdA payin is createdOff

payin.created

JSON
{
  "type": "payin.created",
  "created_at": "2024-10-07T07:10:21.894488Z",
  "data": {
    "id": "pay_ahfafooi7fibakbfahoan",
    "object": "payin",
    "status": "requires_payment_method",
    "amount": 10000,
    "amount_paid": 0,
    "invoice_currency": "USD",
    "holding_currency": "USD",
    "confirm": false,
    "client_token": "JsU19R_Li9cwVksJGUfAajZ3r2A9ArU7Qk3j5r0cpVg=",
    "customer": "cus_crtqrhth90j0121gpt50",
    "customer_details": {
      "country": "SG",
      "email": "andrea@example.com",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "billing_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "shipping_details": {
      "address": {
        "city": "Singapore",
        "country": "SG",
        "line1": "1st Street",
        "line2": "2nd Avenue",
        "postal_code": "43004",
        "state": "Singapore"
      },
      "label": "Home",
      "name": "Andrea Lark",
      "phone": {
        "calling_code": "65",
        "number": "87654321"
      }
    },
    "payment_method_details": null,
    "latest_payment_attempt": "",
    "latest_payment_attempt_data": null,
    "payment_attempts": [],
    "reference_id": "order_12345",
    "transaction_description": "1 x Product",
    "transaction_documents": [],
    "transaction_data": [],
    "items": [],
    "success_url": "https://mystore.com/success_page",
    "cancel_url": "https://mystore.com/try_again",
    "webhook_url": "https://mystore.com/internal/webhook",
    "statement_descriptor": "tzp*mystore",
    "status_description": "",
    "partially_paid": false,
    "paid_in_excess": false,
    "cancelled_at": null,
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "created_at": "2024-10-07T07:10:21.894488Z"
  },
  "id": "evt_auigfiafaaaufaeoanfgohuehg",
  "object": "event"
}