Object Model

Object Model

Customer

PropertiesTypeOptional/RequiredDescription
firstNamestringOptionalCustomer's first name
lastNamestringOptionalCustomer's last name
emailstringOptionalCustomer's email address
phoneNumberstringOptionalCustomer's phone number
address1stringOptionalCustomer's primary address information
address2stringOptionalCustomer's secondary address information. May contain - Apartment number, Care of, Attention
citystringOptionalCustomer's address city
statestringOptionalCustomer's address state, in ISO 3166-2:US format (two letter state code)
postalCodestringOptional5 digit state postal/zip code
countrystringOptionalCustomer's address country, in ISO_3166-2 (two letter country code)

Order

PropertiesTypeOptional/RequiredDescription
amountnumberRequiredThe maximum amount that can be authorized on the issued virtual card. It should include all fees, taxes, shipping, and discount codes calculated in its value.
shippingAmountnumberRequiredThe cost of shipping.
taxAmountnumberOptionalThe cost of taxes.
currencystringRequiredThe currency in which the customer is transacting.
merchantReferencestringRequiredThe merchant's identifier for the order. This is used to reconcile merchant orders in Zip's system.
customerCustomer objectOptionalCustomer object is used to prefill data in the Zip checkout to improve the user experience and conversion. This is typically based on the customer's supplied billing or shipping details entered earlier in the checkout process.
merchantFeeForPaymentPlannumberOptionalThe per-order fee amount, set as part of the customer contribution model.
lineItemsLineItem object ArrayOptionalThe items in the order.

Line Item

PropertiesTypeOptional/RequiredDescription
namestringOptionalThe name of the item
descriptionstringOptionalThe description of the item.
(n.b. the description should have max 100 characters, if it exceeds this limit it will be truncated)
quantitynumberOptionalThe quantity of the item in the order.
pricenumberOptionalThe price of 1 item.
skustringOptionalThe Stock Keeping Unit number.
isPreOrderbooleanOptionalWhether the item is a pre-order item.
releaseDatedateOptionalThe anticipated shipment date of the item.

Card

PropertiesTypeOptional/RequiredDescription
numberstringRequiredThe virtual Visa card number.
cvcstringRequiredThe card's CVC security code.
expirationMonthnumberRequiredThe month expiry of the card.
expirationYearnumberRequiredThe year expiry of the card.
brandstringOptionalThe brand of the credit card.

Cardholder

PropertiesTypeOptional/RequiredDescription
namestringRequiredThe cardholder's full name. To be used if you collect a single name field for the cardholder information.
firstNamestringRequiredThe cardholder's first name. To be used if you collect separate fields for first and last name.
lastNamestringRequiredThe cardholder's last name. To be used if you collect separate fields for first and last name.
address1stringRequiredPrimary billing address information
address2stringOptionalSecondary billing address information. May contain - Apartment number, Care of, Attention.
citystringRequiredCustomer's billing address city.
statestringRequiredThe state of the customer's billing address, in ISO 3166-2:US format.
postalCodestringRequired5 digit state postal/zip code.
countrystringRequiredThe country of the customer's billing address in ISO_3166-2 (two letter country code).

Address

PropertiesTypeOptional/RequiredDescription
line1stringRequiredPrimary shipping address information.
line2stringOptionalSecondary shipping address information. May contain - Apartment number, Care of, Attention.
citystringRequiredThe city of the customer's shipping address.
statestringRequiredThe state of the customer's shipping address, in ISO 3166-2:US format.
countrystringRequiredThe country of the customer's shipping address in ISO_3166-2 (two letter country code).
postalCodestringRequired5 digit state postal/zip code.

Checkout Flow

PropertiestypeDescription
standardstring
expressstring