The Payment Link Object

Attributes

This object represents a payment link that can be associated with a customer.

idstring

The unique identifier of the payment link (MAX 64; MIN 36).

Example: 8546df3a-b83e-4bb5-a4b3-57aa6385924f

account_idstring

The unique identifier of the account (MAX 64; MIN 36).

Example: 9104911d-5df9-429e-8488-ad41abea1a4b

descriptionstring

The description of the payment link (MAX 255; MIN 3).

Example: Marketplace payment

countryenum

Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

statusenum

The status of the Payment link (MAX 255; MIN 3) (CREATED, USED, CANCELED, EXPIRED, ERROR).

Example: CREATED

merchant_order_idstring

Identification of the payment link (MAX 255; MIN 3).

Example: 432245

created_attimestamp

The date and time when the payment link was created.

Example: 2022-05-09T20:46:54.786342Z

updated_attimestamp

The date and time of last update for the payment link.

Example: 2022-05-09T20:46:54.786342Z

captureboolean

Decides whether to authorize the payment or capture it. Authorizing a card payment allows you to reserve funds in a customer’s bank account. If the field is not sent, we will take it as true. You can later capture the payment via WHITELABEL’s dashboard or API method .

Example: true

amountobject

Specifies the payment amount object, with the value and currency.

Hide properties
currencyenum

The currency used to make the payment (MAX 3; MIN 3; ISO 4217 ).

Possible enum values: Check the Country reference.

valuenumber

The payment amount (multiple of 0.0001).

Example: 12100.00

customer_payerobject

Specifies customer object for payments links.

Hide properties
idstring

The unique identifier of the customer at WHITELABEL platform (MAX 255; MIN 3).

Example: faa89e18-5a11-11ed-9b6a-0242ac120002

customer_idstring

The unique identifier of the customer in the external merchant (MAX 255; MIN 3).

Example: 23456

first_namestring

The customer’s first name (MAX 255; MIN 3).

Example: John

last_namestring

The customer’s last name (MAX 255; MIN 3).

Example: Doe

genderenum

The customer’s gender (MAX 2; MIN 1; (M=Male/F=Female/NA=Not applicable/NK=Not Known)).

Possible enum values: M, F, NA, or NK.

date_of_birthstring

The customer’s date of birth in the YYYY-MM-DD format (Length: 10).

Example: 1990-02-28

emailstring

The customer’s e-mail (MAX 255; MIN 3).

Example: john.doe@email.com

nationalityenum

The customer’s nationality (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

documentobject

Specifies the customer’s document object, including its number and type.

Hide properties
document_numberstring

The customer’s document number (MAX 40; MIN 3).

Example: 1093333333

document_typeenum

The customer’s document type (MAX 6, MIN 2).

Possible enum values: Check the Country reference.

phoneobject

Specifies the customer’s phone object, including number and code.

Hide properties
numberstring

The customer’s phone number (MAX 40; MIN 3).

Example: 11992149494

country_codestring

The country calling code of the customer’s phone (MAX 3; MIN 1)

Possible values: Check the Country reference.

billing_addressobject

Specifies the customer’s billing address object.

Hide properties
address_line_1string

The primary billing address line of the customer (MAX 255; MIN 3).

Example: Calle 34 # 56 - 78

address_line_2string

The secondary billing address line of the customer (MAX 255; MIN 3).

Example: Apartamento 502, Torre I

citystring

The city considered for the billing address (MAX 255; MIN 3).

Example: Bogotá

countryenum

The country considered for the billing address (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

statestring

The state considered for the billing address (MAX 255; MIN 3).

Example: Cundinamarca

zip_codestring

The zipcode considered for the billing address (MAX 11; MIN 4).

Example: 111111

shipping_addressobject

Specifies the customer’s shipping address object.

Hide properties
address_line_1string

The primary shipping address line of the customer (MAX 255; MIN 3).

Example: Calle 34 # 56 - 78

address_line_2string

The secondary shipping address line of the customer (MAX 255; MIN 3).

Example: Apartamento 502, Torre I

citystring

The city considered for the shipping address (MAX 255; MIN 3).

Example: Bogotá

countryenum

The country considered for the shipping address (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

statestring

The state considered for the shipping address (MAX 255; MIN 3).

Example: Cundinamarca

zip_codestring

The zipcode considered for the shipping address (MAX 11; MIN 4).

Example: 111111

additional_dataobject

Specifies the additional_data object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.

Hide properties
airlineobject

Specifies the airline object. Passengers and tickets should have the same order information.

Hide properties
pnrstring

Passenger name record (MAX 10; MIN 1).

Example: 1P-2UUGJW

legsarray of object

Specifies the legs array of objects.

Hide properties
arrival_airportstring

IATA airport code (MAX 3; MIN 3). See http://www.iata.org .

Example: AMS

base_farefloat

The transaction amount, excluding taxes and fees, the smallest unit of currency (multiple of 0.0001).

Example: 23.5676

base_fare_currencystring

The currency used to transaction amount (MAX 3; MIN 3; ISO 4217 ).

Possible enum values: Check the Country reference.

carrier_codestring

IATA carrier code (MAX 2; MIN 2). See http://www.iata.org .

Example: KL

carrier_namestring

The name of the airline carrier (MAX 100; MIN 1). Optional.

Example: KLM Royal Dutch Airlines

departure_airportstring

IATA code (MAX 3; MIN 3). See http://www.iata.org .

Example: EZE

departure_airport_timezonestring

Airport timezone (MAX 6; MIN 6).

Example: -03:00

departure_datetimetimestamp

The departure date and time in local time at the departure airport.

Example: 2022-05-09T20:46:54.786342Z

fare_basis_codestring

Code base rate provides specific information on the fare in addition to the class service, both required for booking (MAX 15; MIN 1).

Example: HL7LNR

fare_class_codestring

The fare class code of the airline (MAX 1; MIN 1). The values can be a letter (A-Z) but may vary depending on the airline’s definition.

Example: C

flight_numberstring

The flight number assigned by the airline carrier (MAX 5; MIN 1).

Example: 842

stopover_codestring

The stopover code (1-letter code that indicates whether the passenger is allowed to make a stopover. Only two types of characters are allowed: O: Stopover allowed (the letter “O”, not zero) / X: Stopover not allowed).

Example: O

passengersarray of objects

Specifies the array of objects that represents the passengers associated to the tickets.

Hide properties
documentobject

Specifies the document object for the passenger.

Hide properties
document_numberstring

The passenger’s document number (MAX 40; MIN 3).

Example: 1093333333

document_typeenum

The passenger’s document type (MAX 6, MIN 2).

Possible enum values: Check the Country reference.

countryenum

Country where the document was issued (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

date_of_birthstring

The passenger’s date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).

Example: 1990-02-28

emailstring

The passenger’s email (MAX 255; MIN 3).

Example: John.Doe@gmail.com

first_namestring

The passenger’s first name (MAX 255; MIN 3).

Example: John

last_namestring

The passenger’s last name (MAX 255; MIN 3).

Example: Doe

loyalty_numberstring

Number of passenger loyalty program (MAX 20, MIN 1).

Example: 254587547

loyalty_tierenum

Tier of passenger loyalty program (MAX 255; MIN 3).

Possible enum values: Check the Loyalty tier.

middle_namestring

The passenger’s middle name (MAX 255; MIN 3).

Example: Charles

nationalityenum

The passenger’s nationality (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country reference.

typeenum

The type of passenger (MAX 1; MIN 1).

Possible enum values: Check the Passenger type list.

ticketsarray of objects

Specifies the array of tickets associated with the passengers.

Hide properties
ticket_numberstring

Ticket number (MAX 14; MIN 1).

Example: 7411823255523

e_ticketboolean

Is this an e-ticket?

Possible values: True or False

restrictedboolean

Indicates if the ticket is refundable or not.

Possible values: True or False

total_fare_amountfloat

Total fare amount in the smallest unit of currency (multiple of 0.0001).

Example: 80000

total_tax_amountfloat

Total taxes amount in the smallest unit of currency (multiple of 0.0001).

Example: 14800

total_fee_amountfloat

Total fee amount in the smallest unit of currency (multiple of 0.0001).

Example: 25200

issueobject

Specifies the issue object.

Hide properties
addressstring

Address of the agent who sold the ticket (MAX 255; MIN 3).

Example: Apartamento 502, Torre I

carrier_prefix_codestring

Issuing or Validating carrier. This is the AWB Prefix (Air waybill) IATA 3-numeric code (MAX 3; MIN 3).

Example: 044

citystring

City name of the agent who sold the ticket (MAX 255; MIN 3).

Example: Bogotá

countryenum

Country code where the ticket was issued (MAX 2; MIN 2; ISO 3166-1 ).

Possible enum values: Check the Country code list.

datestring

Ticket issuing date.

Example: 1979-01-12

travel_agent_codestring

Code of the travel agent issuing the ticket.

Example: 10655823

travel_agent_namestring

The name under which the point of sale appears on the agency list or franchise name (MAX 32; MIN 1).

Example: ACME Agency Inc

orderobject

Specifies the order object.

Hide properties
fee_amountfloat

The fee amount of the order (multiple of 0.0001).

Example: 1

shipping_amountfloat

The shipping amount of the order (multiple of 0.0001).

Example: 1

itemsarray of object

Specifies the item’s object.

Hide properties
idstring

The unique identifier of the item (MAX 255; MIN 3).

Example: 3214

namestring

The name of the item (MAX 255; MIN 3).

Example: iPhone 12 Pro Max

quantityint

The quantity of the item (MAX 999; MIN 1).

Example: 1

unit_amountfloat

The unit amount of the item (multiple of 0.0001).

Example: 550

categorystring

The category of the item (MAX 255; MIN 3).

Possible values: Check the Item category list.

brandstring

The brand of the item (MAX 255; MIN 3).

Example: Apple

sku_codestring

The stock keeping unit (SKU) of the item (MAX 255; MIN 3).

Example: A2342

manufacture_part_numberstring

The manufacture part number of the item (MAX 255; MIN 3).

Example: 345621234

picture_urlstring

The picture of the item (MAX 255; MIN 3).

Example: https://www.merchant_url.com/items/:id

seller_detailsobject

Specifies the seller’s details object.

Hide properties
namestring

The seller’s legal name (MAX 255; MIN 3).

Example: John Doe

emailstring

The seller’s e-mail (MAX 255; MIN 3).

Example: john.doe@business.com

referencestring

The seller’s identification code (MAX 255; MIN 3).

Example: Seller

websitestring

The seller’s website URL (MAX 255; MIN 3).

Example: https://www.test.com/1231324

industryenum

The seller’s industry (MAX 255; MIN 3).

Possible enum values: Check the Industry category.

countryenum

The seller’s country (MAX 255; MIN 3).

Possible enum values: Check the Country code list.

documentobject

Specifies the document object of the seller.

Hide properties
document_numberstring

The seller’s document number (MAX 40; MIN 3).

Example: 1093333333

document_typeenum

The seller’s document type (MAX 6, MIN 2).

Possible enum values: Check the Country reference.

phoneobject

Specifies the seller’s phone number object.

Hide properties
country_codestring

The country calling code of the seller’s phone (MAX 3; MIN 1). Possible values: Check the Country reference .

Example: 57

numberstring

The seller’s phone number, without the country code (MAX 32; MIN 1).

Example: 3132450765

addressobject

Specifies the seller’s address object.

Hide properties
address_line_1string

The primary address line of the seller (MAX 255; MIN 3).

Example: Calle 34 # 56 - 78

address_line_2string

The secondary billing address line of the seller (MAX 255; MIN 3).

Example: Apartamento 502, Torre I

citystring

The city considered for the seller’s address (MAX 255; MIN 3).

Example: Bogotá

countryenum

The country considered for the seller’s address (MAX 2; MIN 2, ISO 3166-1 ).

Possible enum values: Check the Country code list.

statestring

The state considered for the seller’s address (MAX 255; MIN 3).

Example: Cundinamarca

zip_codestring

The zipcode considered for the seller’s address (MAX 11; MIN 4).

Example: 111111

taxesarray of objects

Specifies the order’s tax object.

Hide properties
typestring

Type of the tax.

Example: VAT

tax_basefloat

The amount base to apply the tax defined.

Example: 10000

valuefloat

The amount of the tax.

Example: 2100

percentagefloat

The percentage of the tax.

Example: 21

one_time_useboolean

Single Link: For a single collection with defined product, amount and customer information.

Multiple Link: To use and share as many times as necessary, with defined amount and product.

Options: false allows only one use, true multiple payments.

availabilityobject

Specifies the availability object. Refers to the Payment Link expiration date.

Hide properties
start_attimestamp

Start of the validity period of the payment link.

Example: 2022-05-09T20:46:54.786342Z

finish_attimestamp

End of the validity period of the payment link.

Example: 2022-05-09T20:46:54.786342Z

callback_urlstring

URL to redirect your customer after the payment (MAX 255; MIN 3).

Example: https://www.your-site.com/

redirect_urlstring

Payment Link URL (MAX 255; MIN 3).

Example: https://checkout.whitelabel.com/payment_links/id

payment_method_typesarray of enums

The list of types of payment methods that customers can use. If no value is passed, WHITELABEL will display the payment methods defined in the dashboard.

paymentarray of objects
metadataarray of objects

Specifies a list of metadata objects. You can add up to 50 metadata objects.

Hide properties
metadata objectobject

Specifies a metadata key and the respective value.

Hide properties
keystring

Specifies one metadata key.

Example: age

valuestring

Specifies the value for the defined metadata key.

Example: 28

vault_on_successboolean

Flag to enroll the card after a successful payment. False by default.

Example: false