Create Payment Link

POST/payment-links

Body application/json

account_idstringrequired

The unique identifier of the account. You find this information on the WHITELABEL Dashboard (MAX 64; MIN 36).

descriptionstring

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

country"AR" | "BO" | "BR" | "CL" | "CO" | "CR" | "EC" | "SV" | "GT" | "HN" | "MX" | "NI" | "PA" | "PY" | "PE" | "US" | "UY"required

The customer’s country code (MAX 2; MIN 2; ISO 3166-1) [Required].

merchant_order_idstring

Identification of the payment link transaction defined by the merchant (MAX 255; MIN 3).

amountobjectrequired

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

Show amount properties
valuenumber<float>required

The payment amount (multiple of 0.0001)

currencystringrequired

The currency used to make the payment. For a full list of currency codes, see Country reference (MAX 3; MIN 3; ISO 4217).

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 not set, true by default.

typestring

The type of the payment link.

statusstring

The status of the payment link.

payment_methodobject

Payment method object (optional).

installments_planobject

Installments plan configuration (optional).

timezonestring

Timezone for availability (e.g., UTC +03:00).

payments_numberinteger

Number of payments associated with this link.

split_payment_methodsboolean

Allow split payment methods.

taxesobject[]

Specifies the payment taxes list.

Show taxes properties
typestring

Type of the tax.

tax_basenumber<float>

The amount base to apply the tax defined.

valuenumber<float>

The amount of the tax.

percentagenumber<float>

The percentage of the tax.

customer_payerobject

Specifies customer object for payments.

Show customer_payer properties
idstring

The unique identifier of the customer (UUID | MAX 36; MIN 36).

merchant_customer_idstring

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

first_namestring

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

last_namestring

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

genderstring

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

date_of_birthstring

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

emailstring

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

nationalitystring

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

documentobject

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

Show document properties
document_numberstringrequired

The document number (MAX 40; MIN 3).

document_type"DNI" | "CI" | "LC" | "LE" | "CUIT" | "CUIL" | "PAS" | "CPF" | "RG" | "CNH" | "CNPJ" | "RUT" | "RUN" | "CC" | "CE" | "NIT" | "DUI" | "PIC" | "DPI" | "IFR" | "INE" | "CP" | "RFC" | "CURP" | "CIP" | "CIC" | "CUI" | "RUC" | ""

Document type (MAX 6; MIN 3; Country reference).

phoneobject

Specifies the customer’s phone number object.

Show phone properties
country_codestring

The country calling code of the phone (MAX 5; MIN 1). Check the country reference to see the phone codes.

numberstring

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

billing_addressobject

Specifies the customer’s billing address object.

Show billing_address properties
address_line_1string

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

address_line_2string

The secondary address line (MAX 255; MIN 3).

citystring

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

country"AR" | "BO" | "BR" | "CL" | "CO" | "CR" | "EC" | "SV" | "GT" | "HN" | "MX" | "NI" | "PA" | "PY" | "PE" | "US" | "UY"

The country (MAX 2; MIN 2; ISO 3166-1).

statestring

The state/province from the address (MAX 255; MIN 3).

zip_codestring

The zipcode for the address (MAX 10; MIN 5).

shipping_addressobject

Specifies the customer’s shipping address object.

Show shipping_address properties
address_line_1string

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

address_line_2string

The secondary address line (MAX 255; MIN 3).

citystring

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

country"AR" | "BO" | "BR" | "CL" | "CO" | "CR" | "EC" | "SV" | "GT" | "HN" | "MX" | "NI" | "PA" | "PY" | "PE" | "US" | "UY"

The country (MAX 2; MIN 2; ISO 3166-1).

statestring

The state/province from the address (MAX 255; MIN 3).

zip_codestring

The zipcode for the address (MAX 10; MIN 5).

ip_addressstring

Specifies the customer’s IP address (MAX 45; MIN 1).

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.

Show additional_data properties
orderobject

Specifies the order object.

Show order properties
shipping_amountnumber<float>

The shipping amount of the order (multiple of 0.0001)

fee_amountnumber<float>

The fee amount of the order (multiple of 0.0001)

itemsobject[]

Specifies the items array of object.

Show items properties
idstringrequired

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

namestringrequired

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

quantityinteger<int32>required

The quantity of the item.

unit_amountnumber<float>required

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

categorystring

The category of the item. Check the Item category reference.

brandstring

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

sku_codestring

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

manufacture_part_numberstring

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

airlineobject

Specifies the airline object.

Show airline properties
pnrstring

Passenger name record (MAX 10; MIN 1).

legsobject[]

Specifies the legs object.

Show legs properties
departure_airportstringrequired

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

departure_datetimestring<date>required

The departure date and time in UTC time (ISO 8601, MAX 27; MIN 27).

departure_airport_timezonestring

Airport timezone (MAX 6; MIN 6).

arrival_airportstringrequired

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

carrier_codestring

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

carrier_namestring

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

flight_numberstring

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

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).

fare_class_codestring

The fare class code of the airline (MAX 3; MIN 1). The values can be letters (A-Z) but may vary depending on the airline’s definition. Check the Airline information reference.

base_farenumber<float>

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

base_fare_currencystring

The currency used for the base fare amount (MAX 3; MIN 3; ISO 4217).

stopover_codestring

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. (MAX 1; MIN 1).

deviceobject

Specifies the device object.

Show device properties
localestring

The locale of the device (MAX 20; e.g. es-CL).

geolocationstring

The geolocation of the device in lat,long format (MAX 255).

event_uuidstring

The unique identifier of the event (MAX 64).

user_agentstring

The user agent of the device (MAX 512).

payer_risk_dataobject

Specifies the payer risk data object.

Show payer_risk_data properties
login_platformstring

The platform used to log in (MAX 64; e.g. WEB).

approved_transactions_2minteger

Number of approved transactions in the last 2 months (MIN 0).

recent_transactions_3hinteger

Number of transactions in the last 3 hours (MIN 0).

is_paid_userboolean

Indicates whether the payer is a paid user.

account_creation_datestring

The account creation date in YYYYMMDD format (e.g. 20191005).

seller_detailsobject

Specifies the seller’s details object. Only mandatory for PSPs with sub_merchant account information.

Show seller_details properties
namestring

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

emailstring

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

referencestring

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

websitestring

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

industrystring

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

countrystring

The seller’s country (MAX 255; MIN 3; ISO 3166-1).

documentobject

Specifies the document object of the seller.

Show document properties
document_numberstringrequired

The document number (MAX 40; MIN 3).

document_type"DNI" | "CI" | "LC" | "LE" | "CUIT" | "CUIL" | "PAS" | "CPF" | "RG" | "CNH" | "CNPJ" | "RUT" | "RUN" | "CC" | "CE" | "NIT" | "DUI" | "PIC" | "DPI" | "IFR" | "INE" | "CP" | "RFC" | "CURP" | "CIP" | "CIC" | "CUI" | "RUC" | ""

Document type (MAX 6, MIN 1; Country reference).

phoneobject

Specifies the seller’s phone number object.

Show phone properties
country_codestring

The country calling code of the phone (MAX 5; MIN 1). Check the Country reference to see the phone codes.

numberstring

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

addressobject

Specifies the seller’s address object.

Show address properties
address_line_1string

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

address_line_2string

The secondary address line (MAX 255; MIN 1).

citystring

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

country"AR" | "BO" | "BR" | "CL" | "CO" | "CR" | "EC" | "SV" | "GT" | "HN" | "MX" | "NI" | "PA" | "PY" | "PE" | "US" | "UY"

The country (MAX 2; MIN 2; ISO 3166-1).

statestring

The state/province from the address (MAX 255; MIN 3).

zip_codestring

The zipcode for the address (MAX 10; MIN 5).

callback_urlstring

URL to redirect the customer after the payment (MAX 256).

one_time_useboolean

true allows only one use, false multiple payments

availabilityobject

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

Show availability properties
start_atstring<date-time>

Start of the validity period of the payment link.

finish_atstring<date-time>

End of the validity period of the payment link.

payment_method_typesstring[]required

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

metadataobject[]

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

Show metadata properties
keystring

The metadata key (MAX 48).

valuestring

The metadata key value (MAX 512).

vault_on_successboolean

Flag to enroll the card after a successful payment

Response

200

idstring
countrystring
availabilityobject
Show availability properties
start_atstring
finish_atstring
statusstring
merchant_order_idstring
descriptionstring
amountobject
Show amount properties
currencystring
valueinteger
captureboolean
metadataany
split_payment_methodsboolean
payment_method_typesstring[]
one_time_useboolean
paymentsany
callback_urlstring
installments_planany
customer_payerany
taxesany
additional_dataobject
Show additional_data properties
airlineany
orderany
seller_detailsany
deviceobject
Show device properties
localestring
geolocationstring
event_uuidstring
user_agentstring
payer_risk_dataobject
Show payer_risk_data properties
login_platformstring
approved_transactions_2minteger
recent_transactions_3hinteger
is_paid_userboolean
account_creation_datestring
account_idstring
checkout_urlstring
payments_numberinteger
merchant_imagestring

400

Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/payment-links" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "account_id": "string",
  "description": "string",
  "country": "AR",
  "merchant_order_id": "string",
  "amount": {
    "value": 0,
    "currency": "string"
  },
  "capture": true,
  "type": "string",
  "status": "string",
  "payment_method": {},
  "installments_plan": {},
  "timezone": "string",
  "payments_number": 0,
  "split_payment_methods": true,
  "taxes": [
    {
      "type": "string",
      "tax_base": 0,
      "value": 0,
      "percentage": 0
    }
  ],
  "customer_payer": {
    "id": "string",
    "merchant_customer_id": "string",
    "first_name": "string",
    "last_name": "string",
    "gender": "string",
    "date_of_birth": "string",
    "email": "string",
    "nationality": "string",
    "document": {
      "document_number": "string",
      "document_type": "DNI"
    },
    "phone": {
      "country_code": "string",
      "number": "string"
    },
    "billing_address": {
      "address_line_1": "string",
      "address_line_2": "string",
      "city": "string",
      "country": "AR",
      "state": "string",
      "zip_code": "string"
    },
    "shipping_address": {
      "address_line_1": "string",
      "address_line_2": "string",
      "city": "string",
      "country": "AR",
      "state": "string",
      "zip_code": "string"
    },
    "ip_address": "string"
  },
  "additional_data": {
    "order": {
      "shipping_amount": 0,
      "fee_amount": 0,
      "items": [
        {
          "id": "string",
          "name": "string",
          "quantity": 0,
          "unit_amount": 0,
          "category": "string",
          "brand": "string",
          "sku_code": "string",
          "manufacture_part_number": "string"
        }
      ]
    },
    "airline": {
      "pnr": "string",
      "legs": [
        {
          "departure_airport": "string",
          "departure_datetime": "2024-01-01",
          "departure_airport_timezone": "string",
          "arrival_airport": "string",
          "carrier_code": "string",
          "carrier_name": "string",
          "flight_number": "string",
          "fare_basis_code": "string",
          "fare_class_code": "string",
          "base_fare": 0,
          "base_fare_currency": "string",
          "stopover_code": "string"
        }
      ]
    },
    "device": {
      "locale": "string",
      "geolocation": "string",
      "event_uuid": "string",
      "user_agent": "string"
    },
    "payer_risk_data": {
      "login_platform": "string",
      "approved_transactions_2m": 0,
      "recent_transactions_3h": 0,
      "is_paid_user": true,
      "account_creation_date": "string"
    },
    "seller_details": {
      "name": "string",
      "email": "string",
      "reference": "string",
      "website": "string",
      "industry": "string",
      "country": "string",
      "document": {
        "document_number": "string",
        "document_type": "DNI"
      },
      "phone": {
        "country_code": "string",
        "number": "string"
      },
      "address": {
        "address_line_1": "string",
        "address_line_2": "string",
        "city": "string",
        "country": "AR",
        "state": "string",
        "zip_code": "string"
      }
    }
  },
  "callback_url": "string",
  "one_time_use": true,
  "availability": {
    "start_at": "1970-01-01T00:00:00.000Z",
    "finish_at": "1970-01-01T00:00:00.000Z"
  },
  "payment_method_types": [
    "string"
  ],
  "metadata": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "vault_on_success": true
}'
Response
{
  "id": "555933df-4eed-4af4-ae83-a32072ef34af",
  "country": "US",
  "availability": {
    "start_at": "2023-01-15T14:00:12Z",
    "finish_at": "2023-12-29T14:00:12Z"
  },
  "status": "CREATED",
  "merchant_order_id": "AA01",
  "description": "Test",
  "amount": {
    "currency": "USD",
    "value": 5000
  },
  "capture": true,
  "metadata": null,
  "split_payment_methods": false,
  "payment_method_types": [
    "CARD"
  ],
  "one_time_use": false,
  "payments": null,
  "callback_url": "https://checkout.sandbox.whitelabel.com/payment/status",
  "installments_plan": null,
  "customer_payer": null,
  "taxes": null,
  "additional_data": {
    "airline": null,
    "order": null,
    "seller_details": null,
    "device": {
      "locale": "es-CL",
      "geolocation": "string",
      "event_uuid": "string",
      "user_agent": "string"
    },
    "payer_risk_data": {
      "login_platform": "WEB",
      "approved_transactions_2m": 0,
      "recent_transactions_3h": 0,
      "is_paid_user": true,
      "account_creation_date": "20191005"
    }
  },
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "checkout_url": "https://checkout.sandbox.whitelabel.com/payment?session=2f6d9754-43d0-4dca-b023-6aba4b107179",
  "payments_number": 0,
  "merchant_image": ""
}