PayZuDocs

Structure of every object exchanged with the API: fields, types, whether they are required, and descriptions.

The models below describe the objects accepted and returned by the endpoints. Field names are case sensitive and monetary values are always in cents.

Address

Billing address

FieldTypeRequiredDescription
streetstringYesBilling address street
numberstringYesBilling address number
complementstringNoBilling address complement
zipCodestringYesBilling address postal code
citystringYesBilling address city
statestringYesBilling address state
countrystringYesBilling address country
districtstringYesBilling address district

CustomerRequest

Buyer data

FieldTypeRequiredDescription
namestringYesBuyer's full name
identitystringNoBuyer's identification document number
identityTypestringNoBuyer's identification document type
emailstringNoBuyer's email
birthdatestringNoBuyer's birthdate
phonestringNoBuyer's phone number
addressAddressNo

CustomerResponse

Buyer data

FieldTypeRequiredDescription
idnumberNoInternal buyer identifier
namestringNoBuyer's full name
identitystringNoBuyer's identification document number
identityTypestringNoBuyer's identification document type
emailstringNoBuyer's email
birthdatestringNoBuyer's birthdate
phonestringNoBuyer's phone number
addressobjectNoBilling address

CartItem

FieldTypeRequiredDescription
namestringYesProduct name
quantitynumberYesProduct quantity
skustringYesProduct SKU (Stock Keeping Unit)
unitPricenumberYesProduct unit price in cents

CardRequest

Card details

FieldTypeRequiredDescription
numberstringYesCredit card number
holderstringYesCardholder name as printed on the credit card
expirationstringYesCredit card expiration date
cvvstringYesSecurity code on the back of the credit card

CardResponse

Details of the card used in the charge

FieldTypeRequiredDescription
idnumberNoInternal card identifier
numberstringNoCredit card number
holderstringNoCardholder name as printed on the credit card
expirationstringNoCredit card expiration date
brandstringNoCard brand. See Brand. Values: Visa, Master, Elo, Diners, Hipercard

ExternalAuthentication

3DS authentication data performed outside PayZu (external authentication)

FieldTypeRequiredDescription
cavvstringYesSignature returned on successful authentication scenarios
xidstringNoXID returned in the authentication process
ecistringYesElectronic Commerce Indicator returned in the authentication process. See ECI table
versionstringYes3DS version applied in the authentication process
referenceIdstringYesRequestID returned in the authentication process

FraudAnalysis

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

FieldTypeRequiredDescription
fingerPrintIdstringYesIdentifier used to correlate information collected from the buyer's device
browserobjectYesInformation about the buyer's browser
definedFieldsobject[]YesMerchant Defined Data (MDD). See MDD table

Chargeback

FieldTypeRequiredDescription
idnumberNoChargeback identifier
numberstringNoChargeback number at the acquirer
amountnumberNoChargeback amount in cents
statusstringNoChargeback status. See Chargeback status list. Values: RECEIVED, ACCEPTED, DEFENDED
reasonCodestringNoReason code provided by the card brand
reasonDescriptionstringNoReason description provided by the card brand
issuedAtstringNoChargeback issue date
createdAtstringNoRecord creation date
updatedAtstringNoDate the record was last updated

CreditCardPaymentResponse

Credit card payment details

FieldTypeRequiredDescription
installmentsnumberNoNumber of installments
authenticatebooleanNoIndicates whether the buyer was redirected to the issuer for 3DS authentication
currencystringNoCharge currency. See Supported currencies
acquirerTransactionIdstringNoTransaction identifier at the acquirer
authorizationCodestringNoAuthorization code returned by the acquirer
reasonCodenumberNoReason code of the result. See Transaction status and reasons
reasonMessagestringNoReason message of the result. See Transaction status and reasons
statusintegerNoTransaction status. See Transaction status list
returnCodestringNoReturn code from the acquirer. See Error Codes and ABECS return codes
returnMessagestringNoReturn message from the acquirer
externalAuthenticationobjectNoExternal 3DS authentication data, when sent at creation
reversedAmountnumberNoReversed amount in cents, when a reversal exists
reversedDatestringNoReversal date, when present
chargeIdstringNoCharge identifier
cardCardResponseNo
chargebacksChargeback[]NoChargebacks 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

FieldTypeRequiredDescription
intervalstringYesInterval between charges: Monthly or Annual. Values: Monthly, Annual
endDatestringNoRecurrence end date in YYYY-MM-DD format. Without it, the recurrence runs indefinitely

Recurrence

State of a recurrence

FieldTypeRequiredDescription
recurrentPaymentIdstringNoRecurrence identifier. Use it on the recurrence query and management endpoints
intervalstringNoConfigured interval. Values: MONTHLY, ANNUAL
statusstringNoRecurrence status. See Recurring payments. Values: ACTIVE, INACTIVE, ENDED
amountnumberNoAmount of each cycle, in cents
nextRecurrencystringNoDate of the next automatic charge
endDatestringNoEnd date, if provided at creation

Charge

FieldTypeRequiredDescription
idstringNoCharge identifier
externalIdstringNoUnique identifier generated externally
postbackUrlstringNoUrl for notifications about the charge status
amountnumberNoCharge amount in cents
paymentTypestringNoCharge payment type. See Payment types
createdAtstringNoCharge creation date
updatedAtstringNoDate the charge was last updated
customerCustomerResponseNo
cartCartItem[]NoBuyer's cart
creditCardPaymentCreditCardPaymentResponseNo
recurrenceRecurrenceNoPresent when the charge belongs to a recurrence
recurrenceCycleintegerNoCycle 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

FieldTypeRequiredDescription
amountnumberYesCharge amount in cents
customerCustomerRequestYes
postbackUrlstringNoUrl for notifications about the charge status. See Webhooks
paymentTypestringYesCharge payment type. See Payment types. Values: creditcard
cartCartItem[]YesBuyer's cart
creditCardPaymentobjectYesSettings for the payment type: credit card
recurrenceRecurrenceRequestNo
externalIdstringYesUnique identifier generated externally

CurrencyRate

FieldTypeRequiredDescription
codestringYes
rateobjectYes

CurrencyConvertResponse

FieldTypeRequiredDescription
amountnumberYesConverted amount in the target currency, rounded to 2 decimals.
currencyobjectYes