支付
当创建或更新支付时发送到您的 webhook 端点的有效负载。
Billing address details for payments
brand id this payment belongs to
Identifier of the business associated with the payment
Timestamp when the payment was created
Currency used for the payment
AED, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SZL, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Details about the customer who made the payment
Whether the digital products purchased in this payment have been delivered.
List of disputes associated with this payment
True when this payment also bills metered usage or credit overage. The usage is
for the billing cycle before the service period, not for the service period.
The value is set for each payment status. It is false when charge_type is null.
True when one payment starts more than one subscription. Read this field
to find the payment type. Do not read the length of subscription_ids.
Do not read subscription_id for null.
Whether this payment was created solely to update a subscription's
payment method (a zero-/setup-amount charge). false for normal charges.
Additional custom data associated with the payment
Unique identifier for the payment
Which processor handled this payment. stripe / adyen for BYOP routes
(the merchant's own payment connector); dodo for everything Dodo
processed itself.
stripe, adyen, dodo List of refunds issued for this payment
Retry attempt number for subscription renewal payments.
0 for the original payment, 1+ for each scheduled off-session
retry after a failed renewal. Always 0 for non-subscription payments.
The service period of each subscription that this payment pays for.
The order is the same as subscription_ids. For a plan change charge, the
period starts at the plan change and ends at the next billing date. The list
is empty unless the payment status is succeeded. The list is also empty for
a one-time payment, an on-demand charge, or a payment method update.
The list is set for new, renewal and plan_change charges that succeeded.
It can be empty for some zero-amount payments.
A renewal with no entry for its subscription bills usage only.
That payment does not extend the service period.
The amount that will be credited to your Dodo balance after currency conversion and processing. Especially relevant for adaptive pricing where the customer's payment currency differs from your settlement currency.
The currency in which the settlement_amount will be credited to your Dodo balance. This may differ from the customer's payment currency in adaptive pricing scenarios.
AED, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BWP, BYN, BZD, CAD, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SZL, THB, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VES, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW Every subscription that this payment starts or charges, in a stable order.
It is empty for a one-time payment. It holds the value of subscription_id
when the payment names one subscription.
Total amount charged to the customer including tax, in the currency's smallest unit (e.g. cents for USD, yen for JPY, fils for KWD — see the currency's decimal places)
Expiry month of the card, as two digits from 01 to 12. For Apple Pay and
Google Pay, this is the expiry of the wallet token, which can differ from the
expiry of the physical card.
Expiry year of the card, as four digits, for example 2029. For Apple Pay and
Google Pay, this is the expiry of the wallet token, which can differ from the
expiry of the physical card.
Cardholder name
ISO2 country code of the card
AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW The last four digits of the card
Card network, in lowercase, for example visa, mastercard or amex. Older payments can
carry other casing.
The type of card, in lowercase: credit, debit or prepaid. Older payments can carry
other casing.
The type of subscription charge that this payment is for. Refer to ChargeType.
The value is set for each payment status, not only for succeeded.
The value is null when this payment charges no subscription.
new, renewal, plan_change, on_demand If payment is made using a checkout session, this field is set to the id of the session.
Customer's responses to custom fields collected during checkout
DEPRECATED: Use discounts instead. Returns the first discount's ID if present.
All stacked discounts applied, ordered by position
An error code if the payment failed
An error message if the payment failed. When error_code is a recognised
unified code, this is the merchant-facing headline + recommended action
(Payment Details copy) rather than the raw connector text.
Invoice ID for this payment. Uses India-specific invoice ID if available.
DEPRECATED: Use GET /invoices/payments/{payment_id} with an API key.
URL to download the invoice PDF for this payment. The URL has no signed token. If the
business asks for a credential on its invoice links, the URL needs an API key.
Checkout URL
Payment method used by customer (e.g. "card", "bank_transfer")
Identifier of the saved payment method used for this payment, if any.
Specific type of payment method (e.g. "visa", "mastercard")
List of products purchased in a one-time payment
Summary of the refund status for this payment. None if no succeeded refunds exist.
partial, full This represents the portion of settlement_amount that corresponds to taxes collected. Especially relevant for adaptive pricing where the tax component must be tracked separately in your Dodo balance.
Current status of the payment intent
succeeded, failed, cancelled, processing, requires_customer_action, requires_merchant_action, requires_payment_method, requires_confirmation, requires_capture, partially_captured, partially_captured_and_capturable Identifier of the subscription if payment is part of a subscription.
A multi-subscription payment leaves this null, because no single
subscription owns the payment. Read subscription_ids for those.
Amount of tax collected in the currency's smallest unit (e.g. cents for USD, yen for JPY, fils for KWD)
Timestamp when the payment was last updated