PayZuDocs

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

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

Address

Billing address

字段类型必填说明
streetstring是Billing address street
numberstring是Billing address number
complementstring否Billing address complement
zipCodestring是Billing address postal code
citystring是Billing address city
statestring是Billing address state
countrystring是Billing address country
districtstring是Billing address district

CustomerRequest

Buyer data

字段类型必填说明
namestring是Buyer's full name
identitystring否Buyer's identification document number
identityTypestring否Buyer's identification document type
emailstring否Buyer's email
birthdatestring否Buyer's birthdate
phonestring否Buyer's phone number
addressAddress否

CustomerResponse

Buyer data

字段类型必填说明
idnumber否Internal buyer identifier
namestring否Buyer's full name
identitystring否Buyer's identification document number
identityTypestring否Buyer's identification document type
emailstring否Buyer's email
birthdatestring否Buyer's birthdate
phonestring否Buyer's phone number
addressobject否Billing address

CartItem

字段类型必填说明
namestring是Product name
quantitynumber是Product quantity
skustring是Product SKU (Stock Keeping Unit)
unitPricenumber是Product unit price in cents

CardRequest

Card details

字段类型必填说明
numberstring是Credit card number
holderstring是Cardholder name as printed on the credit card
expirationstring是Credit card expiration date
cvvstring是Security code on the back of the credit card

CardResponse

Details of the card used in the charge

字段类型必填说明
idnumber否Internal card identifier
numberstring否Credit card number
holderstring否Cardholder name as printed on the credit card
expirationstring否Credit card expiration date
brandstring否Card brand. See Brand. 取值: Visa, Master, Elo, Diners, Hipercard

ExternalAuthentication

3DS authentication data performed outside PayZu (external authentication)

字段类型必填说明
cavvstring是Signature returned on successful authentication scenarios
xidstring否XID returned in the authentication process
ecistring是Electronic Commerce Indicator returned in the authentication process. See ECI table
versionstring是3DS version applied in the authentication process
referenceIdstring是RequestID returned in the authentication process

FraudAnalysis

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

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

Chargeback

字段类型必填说明
idnumber否Chargeback identifier
numberstring否Chargeback number at the acquirer
amountnumber否Chargeback amount in cents
statusstring否Chargeback status. See Chargeback status list. 取值: RECEIVED, ACCEPTED, DEFENDED
reasonCodestring否Reason code provided by the card brand
reasonDescriptionstring否Reason description provided by the card brand
issuedAtstring否Chargeback issue date
createdAtstring否Record creation date
updatedAtstring否Date the record was last updated

CreditCardPaymentResponse

Credit card payment details

字段类型必填说明
installmentsnumber否Number of installments
authenticateboolean否Indicates whether the buyer was redirected to the issuer for 3DS authentication
currencystring否Charge currency. See Supported currencies
acquirerTransactionIdstring否Transaction identifier at the acquirer
authorizationCodestring否Authorization code returned by the acquirer
reasonCodenumber否Reason code of the result. See Transaction status and reasons
reasonMessagestring否Reason message of the result. See Transaction status and reasons
statusinteger否Transaction status. See Transaction status list
returnCodestring否Return code from the acquirer. See Error Codes and ABECS return codes
returnMessagestring否Return message from the acquirer
externalAuthenticationobject否External 3DS authentication data, when sent at creation
reversedAmountnumber否Reversed amount in cents, when a reversal exists
reversedDatestring否Reversal date, when present
chargeIdstring否Charge 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

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

Recurrence

State of a recurrence

字段类型必填说明
recurrentPaymentIdstring否Recurrence identifier. Use it on the recurrence query and management endpoints
intervalstring否Configured interval. 取值: MONTHLY, ANNUAL
statusstring否Recurrence status. See Recurring payments. 取值: ACTIVE, INACTIVE, ENDED
amountnumber否Amount of each cycle, in cents
nextRecurrencystring否Date of the next automatic charge
endDatestring否End date, if provided at creation

Charge

字段类型必填说明
idstring否Charge identifier
externalIdstring否Unique identifier generated externally
postbackUrlstring否Url for notifications about the charge status
amountnumber否Charge amount in cents
paymentTypestring否Charge payment type. See Payment types
createdAtstring否Charge creation date
updatedAtstring否Date the charge was last updated
customerCustomerResponse否
cartCartItem[]否Buyer's cart
creditCardPaymentCreditCardPaymentResponse否
recurrenceRecurrence否Present when the charge belongs to a recurrence
recurrenceCycleinteger否Cycle 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

字段类型必填说明
amountnumber是Charge amount in cents
customerCustomerRequest是
postbackUrlstring否Url for notifications about the charge status. See Webhooks
paymentTypestring是Charge payment type. See Payment types. 取值: creditcard
cartCartItem[]是Buyer's cart
creditCardPaymentobject是Settings for the payment type: credit card
recurrenceRecurrenceRequest否
externalIdstring是Unique identifier generated externally

CurrencyRate

字段类型必填说明
codestring是
rateobject是

CurrencyConvertResponse

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