Event
An event resource represents a specific action that has occurred within your Paypercut account. Paypercut sends this same Event object as the JSON body of webhook deliveries.
- idType: stringmax length:100required
Unique identifier for the object.
- createdType: stringFormat: date-timerequired
Time at which the object was created. Measured in seconds since the Unix epoch.
- typeType: stringenumrequired
Event types that webhook endpoints can subscribe to.
values- checkout
_session .completed A Checkout Session completed successfully.
- payment
_intent .authorized A PaymentIntent was authorized and can be captured.
- payment
_intent .captured A PaymentIntent was captured.
- account
.updated A connected account was updated.
- account
.external _account .created An external account was attached to a connected account.
- account
.external _account .updated An external account on a connected account was updated.
- invoice
.paid An invoice was paid.
- invoice
.payment _failed An invoice payment failed.
- accountType: string | nullmax length:100
Connected account that originated the event. Present for platform and marketplace event deliveries where the platform needs to identify which connected account the event belongs to.
- apiType: string | null
_version max length:100The API version used to render
datawhen the event was created. The contents ofdatanever change, so this value remains static regardless of the API version currently in use. - livemodeType: booleanrequired
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - datarequired
- objectrequired
Object containing the API resource relevant to the event. For example, a
checkout_session.completedevent has a Checkout Session object in this field.Checkout session for processing payments
- idType: stringrequired
Unique identifier for the checkout session
- livemodeType: booleanrequired
Has the value
trueif the object exists in live mode or the valuefalseif the object exists in test mode. - modeType: stringenumrequired
The mode of the Checkout Session.
values- payment
Standard one-time payment.
- setup
Set up a payment method for future use.
- subscription
Coming soon. Not available yet.
- paymentType: stringenum
_status requiredThe payment status of the Checkout Session, one of
paid,unpaid, orno_payment_required.values- no
_payment _required - processing
- paid
- unpaid
- statusType: stringenumrequired
The status of the Checkout Session.
values- complete
- expired
- open
- urlType: stringFormat: urirequired
URL where the customer can complete the payment.
- afterType: object
_completion After completion behavior for the Checkout Session.
- amountType: integerFormat: int64
_total Total of all items after discounts and taxes are applied.
- billingType: stringenum
_address _collection Specify whether Checkout should collect the customer's billing address. Defaults to
auto.values- auto
Checkout will only collect the billing address when necessary.
- required
Checkout will always collect the customer's billing address.
- cancelType: string | null
_url URL customers can return to if they cancel payment.
- clientType: string | null
_customer _id An identifier of the customer in the merchant's system.
- clientType: string | null
_reference _id A free-form reference from the merchant's system.
- currencyType: object
Three-letter ISO currency code
- customernullable
Customer associated with the Checkout Session, if one exists.
- customerType: string | nullenum
_creation Customer creation behavior used during Session confirmation.
values- always
- if
_required
- customerType: string | null
_email Email address associated with the Checkout Session.
- descriptionType: string | null
A free-form reference that describes the checkout.
- expiresType: string | nullFormat: date-time
_at Expiry time for the checkout.
- lineType: array object[] · LineItem[]
_items Details about the products sold or services provided.
- localeType: string | null
The IETF language tag of the locale Checkout is displayed in.
- metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata. - nextType: object · PaymentIntentNextAction
_action - paymentnullable
_intent The PaymentIntent for Checkout Sessions in
paymentmode. It may be returned as an ID unless expanded. - paymentnullable
_link The Payment Link that created this Session, if applicable.
- paymentType: array string[]
_method _types Payment method types this Checkout Session can accept.
- returnType: string | null
_url URL customers return to after redirect-based authentication.
- savedType: object · SavedPaymentMethodOptions
_payment _method _options - setupnullable
_intent The SetupIntent for Checkout Sessions in
setupmode. - submitType: string | nullenum
_type Submit button text behavior used for Checkout Sessions in
paymentmode.values- auto
- book
- donate
- pay
- subscribe
- successType: string | null
_url URL customers are sent to when payment or setup is complete.
- uiType: stringenum
_mode The UI mode of the Session.
values- custom
- embedded
- hosted
- walletType: object
_options

