> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# The Payment Link Object

> Describes the attributes returned in a payment link object, including customer and amount data

## Attributes

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

**id** `string`

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

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

**account\_id** `string`

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

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

**description** `string`

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

Example: Marketplace payment

**country** `enum`

Country where the transaction must be processed (MAX 2; MIN 2; [ISO 3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**status** `enum`

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

Example: CREATED

**merchant\_order\_id** `string`

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

Example: 432245

**created\_at** `timestamp`

The date and time when the payment link was created.

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

**updated\_at** `timestamp`

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

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

**capture** `boolean`

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 Yuno's dashboard or [API method](https://docs.y.uno/reference/payments/capture-authorization.md) .

Example: true

**amount** `object`

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

**properties**

**currency** `enum`

The currency used to make the payment (MAX 3; MIN 3; [ISO 4217](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**value** `number`

The payment amount (multiple of 0.0001).

Example: 12100.00

**customer\_payer** `object`

Specifies customer object for payments links.

**properties**

**id** `string`

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

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

**customer\_id** `string`

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

Example: 23456

**first\_name** `string`

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

Example: John

**last\_name** `string`

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

Example: Doe

**gender** `enum`

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\_birth** `string`

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

Example: 1990-02-28

**email** `string`

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

Example: [john.doe@email.com](mailto:john.doe@email.com)

**nationality** `enum`

The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**document** `object`

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

**properties**

**document\_number** `string`

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

Example: 1093333333

**document\_type** `enum`

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

Possible enum values: Check the [
Country reference](https://docs.y.uno/reference/country-reference.md).

**phone** `object`

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

**properties**

**number** `string`

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

Example: 11992149494

**country\_code** `string`

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

Possible values: Check the [
Country reference](https://docs.y.uno/reference/country-reference.md).

**billing\_address** `object`

Specifies the customer's billing address object.

**properties**

**address\_line\_1** `string`

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

Example: Calle 34 # 56 - 78

**address\_line\_2** `string`

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

Example: Apartamento 502, Torre I

**city** `string`

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

Example: Bogotá

**country** `enum`

The country considered for the billing address (MAX 2; MIN 2; [ISO
3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**state** `string`

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

Example: Cundinamarca

**zip\_code** `string`

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

Example: 111111

**shipping\_address** `object`

Specifies the customer's shipping address object.

**properties**

**address\_line\_1** `string`

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

Example: Calle 34 # 56 - 78

**address\_line\_2** `string`

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

Example: Apartamento 502, Torre I

**city** `string`

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

Example: Bogotá

**country** `enum`

The country considered for the shipping address (MAX 2; MIN 2; [ISO
3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**state** `string`

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

Example: Cundinamarca

**zip\_code** `string`

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

Example: 111111

**additional\_data** `object`

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.

**properties**

**airline** `object`

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

**properties**

**pnr** `string`

Passenger name record (MAX 10; MIN 1).

Example: 1P-2UUGJW

**legs** `array of object`

Specifies the legs array of objects.

**properties**

**arrival\_airport** `string`

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

Example: AMS

**base\_fare** `float`

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

Example: 23.5676

**base\_fare\_currency** `string`

The currency used to transaction amount (MAX 3; MIN 3; [ISO 4217](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**carrier\_code** `string`

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

Example: KL

**carrier\_name** `string`

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

Example: KLM Royal Dutch Airlines

**departure\_airport** `string`

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

Example: EZE

**departure\_airport\_timezone** `string`

Airport timezone (MAX 6; MIN 6).

Example: -03:00

**departure\_datetime** `timestamp`

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

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

**fare\_basis\_code** `string`

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\_code** `string`

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\_number** `string`

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

Example: 842

**stopover\_code** `string`

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

**passengers** `array of objects`

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

**properties**

**document** `object`

Specifies the document object for the passenger.

**properties**

**document\_number** `string`

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

Example: 1093333333

**document\_type** `enum`

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

Possible enum values: Check the [
Country reference](https://docs.y.uno/reference/country-reference.md).

**country** `enum`

Country where the document was issued (MAX 2; MIN 2; [ISO
3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**date\_of\_birth** `string`

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

Example: 1990-02-28

**email** `string`

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

Example: [John.Doe@gmail.com](mailto:John.Doe@gmail.com)

**first\_name** `string`

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

Example: John

**last\_name** `string`

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

Example: Doe

**loyalty\_number** `string`

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

Example: 254587547

**loyalty\_tier** `enum`

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

Possible enum values: Check the [
Loyalty tier](https://docs.y.uno/reference/airline-information.md).

**middle\_name** `string`

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

Example: Charles

**nationality** `enum`

The passenger's nationality (MAX 2; MIN 2; [ISO 3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country reference](https://docs.y.uno/reference/country-reference.md).

**type** `enum`

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

Possible enum values: Check the [Passenger type list](https://docs.y.uno/reference/airline-information.md).

**tickets** `array of objects`

Specifies the array of tickets associated with the passengers.

**properties**

**ticket\_number** `string`

Ticket number (MAX 14; MIN 1).

Example: 7411823255523

**e\_ticket** `boolean`

Is this an e-ticket?

Possible values: `True` or `False`

**restricted** `boolean`

Indicates if the ticket is refundable or not.

Possible values: `True` or `False`

**total\_fare\_amount** `float`

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

Example: 80000

**total\_tax\_amount** `float`

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

Example: 14800

**total\_fee\_amount** `float`

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

Example: 25200

**issue** `object`

Specifies the issue object.

**properties**

**address** `string`

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

Example: Apartamento 502, Torre I

**carrier\_prefix\_code** `string`

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

Example: 044

**city** `string`

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

Example: Bogotá

**country** `enum`

Country code where the ticket was issued (MAX 2; MIN 2; [ISO
3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country code
list](https://docs.y.uno/reference/country-reference.md).

**date** `string`

Ticket issuing date.

Example: 1979-01-12

**travel\_agent\_code** `string`

Code of the travel agent issuing the ticket.

Example: 10655823

**travel\_agent\_name** `string`

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

Example: ACME Agency Inc

**order** `object`

Specifies the order object.

**properties**

**fee\_amount** `float`

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

Example: 1

**shipping\_amount** `float`

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

Example: 1

**items** `array of object`

Specifies the item's object.

**properties**

**id** `string`

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

Example: 3214

**name** `string`

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

Example: iPhone 12 Pro Max

**quantity** `int`

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

Example: 1

**unit\_amount** `float`

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

Example: 550

**category** `string`

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

Possible values: Check the [Item category list](https://docs.y.uno/reference/items-category-list.md).

**brand** `string`

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

Example: Apple

**sku\_code** `string`

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

Example: A2342

**manufacture\_part\_number** `string`

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

Example: 345621234

**picture\_url** `string`

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

Example: https\://www\.merchant\_url.com/items/:id

**seller\_details** `object`

Specifies the seller's details object.

**properties**

**name** `string`

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

Example: John Doe

**email** `string`

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

Example: [john.doe@business.com](mailto:john.doe@business.com)

**reference** `string`

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

Example: Seller

**website** `string`

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

Example: [https://www.test.com/1231324](https://www.test.com/1231324)

**industry** `enum`

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

Possible enum values: Check the [Industry category](https://docs.y.uno/reference/industry-category-list.md).

**country** `enum`

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

Possible enum values: Check the [Country code list](https://docs.y.uno/reference/country-reference.md).

**document** `object`

Specifies the document object of the seller.

**properties**

**document\_number** `string`

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

Example: 1093333333

**document\_type** `enum`

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

Possible enum values: Check the [
Country reference](https://docs.y.uno/reference/country-reference.md).

**phone** `object`

Specifies the seller's phone number object.

**properties**

**country\_code** `string`

The country calling code of the seller's phone (MAX 3; MIN 1). Possible values: Check the [
Country reference](https://docs.y.uno/reference/country-reference.md) .

Example: 57

**number** `string`

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

Example: 3132450765

**address** `object`

Specifies the seller's address object.

**properties**

**address\_line\_1** `string`

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

Example: Calle 34 # 56 - 78

**address\_line\_2** `string`

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

Example: Apartamento 502, Torre I

**city** `string`

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

Example: Bogotá

**country** `enum`

The country considered for the seller's address (MAX 2; MIN 2, [ISO
3166-1](https://docs.y.uno/reference/country-reference.md) ).

Possible enum values: Check the [Country code
list](https://docs.y.uno/reference/country-reference.md).

**state** `string`

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

Example: Cundinamarca

**zip\_code** `string`

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

Example: 111111

**taxes** `array of objects`

Specifies the order's tax object.

**properties**

**type** `string`

Type of the tax.

Example: VAT

**tax\_base** `float`

The amount base to apply the tax defined.

Example: 10000

**value** `float`

The amount of the tax.

Example: 2100

**percentage** `float`

The percentage of the tax.

Example: 21

**external\_invoice** `object`

The Stripe invoice this payment link pays, as it was sent when the link was created. The key is absent on links created without it.

**properties**

**id** `string`

The invoice's identifier in Stripe (`in_...`).

Example: in\_1QwZzz

**customer\_id** `string`

The Stripe customer (`cus_...`) that owns the invoice. Null when the link was created without it.

Example: cus\_RplXYZ

**one\_time\_use** `boolean`

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.

**availability** `object`

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

**properties**

**start\_at** `timestamp`

Start of the validity period of the payment link.

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

**finish\_at** `timestamp`

End of the validity period of the payment link.

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

**callback\_url** `string`

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

Example: [https://www.your-site.com/](https://www.your-site.com/)

**redirect\_url** `string`

Payment Link URL (MAX 255; MIN 3).

Example: [https://checkout.y.uno/payment\_links/id](https://checkout.y.uno/payment_links/id)

**payment\_method\_types** `array of enums`

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

**payment** `array of objects`

Array of [Payment objects](https://docs.y.uno/reference/payments/the-payment-object.md)

**metadata** `array of objects`

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

**properties**

**metadata object** `object`

Specifies a metadata key and the respective value.

**properties**

**key** `string`

Specifies one metadata key.

Example: age

**value** `string`

Specifies the value for the defined metadata key.

Example: 28

**vault\_on\_success** `boolean`

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

Example: false


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.