PayZuDocs

API 传输的每个对象的结构:字段、类型、是否必填以及说明。

下面的模型描述了各端点接受和返回的对象。字段名区分大小写,金额始终以分为单位。

Address

Billing address

字段类型必填说明
streetstringBilling address street
numberstringBilling address number
complementstringBilling address complement
zipCodestringBilling address postal code
citystringBilling address city
statestringBilling address state
countrystringBilling address country
districtstringBilling address district

CustomerRequest

Buyer data

字段类型必填说明
namestringBuyer's full name
identitystringBuyer's identification document number
identityTypestringBuyer's identification document type
emailstringBuyer's email
birthdatestringBuyer's birthdate
phonestringBuyer's phone number
addressAddress

CustomerResponse

Buyer data

字段类型必填说明
idnumberInternal buyer identifier
namestringBuyer's full name
identitystringBuyer's identification document number
identityTypestringBuyer's identification document type
emailstringBuyer's email
birthdatestringBuyer's birthdate
phonestringBuyer's phone number
addressobjectBilling address

CartItem

字段类型必填说明
namestringProduct name
quantitynumberProduct quantity
skustringProduct SKU (Stock Keeping Unit)
unitPricenumberProduct unit price in cents

CardRequest

Card details

字段类型必填说明
numberstringCredit card number
holderstringCardholder name as printed on the credit card
expirationstringCredit card expiration date
cvvstringSecurity code on the back of the credit card

CardResponse

Details of the card used in the charge

字段类型必填说明
idnumberInternal card identifier
numberstringCredit card number
holderstringCardholder name as printed on the credit card
expirationstringCredit card expiration date
brandstringCard brand. See Brand. 取值: Visa, Master, Elo, Diners, Hipercard

ExternalAuthentication

3DS authentication data performed outside PayZu (external authentication)

字段类型必填说明
cavvstringSignature returned on successful authentication scenarios
xidstringXID returned in the authentication process
ecistringElectronic Commerce Indicator returned in the authentication process. See ECI table
versionstring3DS version applied in the authentication process
referenceIdstringRequestID returned in the authentication process

FraudAnalysis

Data for the antifraud engine. Required on international charges. See Using Antifraud

字段类型必填说明
fingerPrintIdstringIdentifier used to correlate information collected from the buyer's device
browserobjectInformation about the buyer's browser
definedFieldsobject[]Merchant Defined Data (MDD). See MDD table

Chargeback

字段类型必填说明
idnumberChargeback identifier
numberstringChargeback number at the acquirer
amountnumberChargeback amount in cents
statusstringChargeback status. See Chargeback status list. 取值: RECEIVED, ACCEPTED, DEFENDED
reasonCodestringReason code provided by the card brand
reasonDescriptionstringReason description provided by the card brand
issuedAtstringChargeback issue date
createdAtstringRecord creation date
updatedAtstringDate the record was last updated

CreditCardPaymentResponse

Credit card payment details

字段类型必填说明
installmentsnumberNumber of installments
authenticatebooleanIndicates whether the buyer was redirected to the issuer for 3DS authentication
currencystringCharge currency. See Supported currencies
acquirerTransactionIdstringTransaction identifier at the acquirer
authorizationCodestringAuthorization code returned by the acquirer
reasonCodenumberReason code of the result. See Transaction status and reasons
reasonMessagestringReason message of the result. See Transaction status and reasons
statusintegerTransaction status. See Transaction status list
returnCodestringReturn code from the acquirer. See Error Codes and ABECS return codes
returnMessagestringReturn message from the acquirer
externalAuthenticationobjectExternal 3DS authentication data, when sent at creation
reversedAmountnumberReversed amount in cents, when a reversal exists
reversedDatestringReversal date, when present
chargeIdstringCharge identifier
cardCardResponse
chargebacksChargeback[]Chargebacks linked to the charge

RecurrenceRequest

Recurring payment configuration. The first charge is created immediately; the following cycles are generated automatically. Requires installments equal to 1. See Recurring payments

字段类型必填说明
intervalstringInterval between charges: Monthly or Annual. 取值: Monthly, Annual
endDatestringRecurrence end date in YYYY-MM-DD format. Without it, the recurrence runs indefinitely

Recurrence

State of a recurrence

字段类型必填说明
recurrentPaymentIdstringRecurrence identifier. Use it on the recurrence query and management endpoints
intervalstringConfigured interval. 取值: MONTHLY, ANNUAL
statusstringRecurrence status. See Recurring payments. 取值: ACTIVE, INACTIVE, ENDED
amountnumberAmount of each cycle, in cents
nextRecurrencystringDate of the next automatic charge
endDatestringEnd date, if provided at creation

Charge

字段类型必填说明
idstringCharge identifier
externalIdstringUnique identifier generated externally
postbackUrlstringUrl for notifications about the charge status
amountnumberCharge amount in cents
paymentTypestringCharge payment type. See Payment types
createdAtstringCharge creation date
updatedAtstringDate the charge was last updated
customerCustomerResponse
cartCartItem[]Buyer's cart
creditCardPaymentCreditCardPaymentResponse
recurrenceRecurrencePresent when the charge belongs to a recurrence
recurrenceCycleintegerCycle number of the recurrence this charge belongs to: 0 is the initial charge, 1..n are the automatically generated cycles. Present only on recurrence charges

ChargeRequest

字段类型必填说明
amountnumberCharge amount in cents
customerCustomerRequest
postbackUrlstringUrl for notifications about the charge status. See Webhooks
paymentTypestringCharge payment type. See Payment types. 取值: creditcard
cartCartItem[]Buyer's cart
creditCardPaymentobjectSettings for the payment type: credit card
recurrenceRecurrenceRequest
externalIdstringUnique identifier generated externally

CurrencyRate

字段类型必填说明
codestring
rateobject

CurrencyConvertResponse

字段类型必填说明
amountnumberConverted amount in the target currency, rounded to 2 decimals.
currencyobject