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

# The Payment Link Object

## Attributes

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

<ParamField body="id" type="string">
  The unique identifier of the customer (MAX 64 ; MIN 36).

  Example: 8546df3a-b83e-4bb5-a4b3-57aa6385924f
</ParamField>

<ParamField body="account_id" type="string">
  The unique identifier of the account (MAX 64; MIN 36).

  Example: 9104911d-5df9-429e-8488-ad41abea1a4b
</ParamField>

<ParamField body="description" type="string">
  The description of the payment link (MAX 255; MIN 3).

  Example: Marketplace payment
</ParamField>

<ParamField body="country" type="enum">
  Country where the transaction must be processed (MAX 2; MIN 2; <a href="/reference/country-reference">ISO 3166-1</a> ).

  Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
</ParamField>

<ParamField body="status" type="enum">
  The status of the Payment link (MAX 255; MIN 3) (CREATED, USED, CANCELED, EXPIRED, ERROR).

  Example: ACTIVE
</ParamField>

<ParamField body="merchant_order_id" type="string">
  Identification of the payment link (MAX 255; MIN 3).

  Example: 432245
</ParamField>

<ParamField body="created_at" type="timestamp">
  The date and time when the payment link was created.

  Example: 2022-05-09T20:46:54.786342Z
</ParamField>

<ParamField body="updated_at" type="timestamp">
  The date and time of last update for the payment link.

  Example: 2022-05-09T20:46:54.786342Z
</ParamField>

<ParamField body="capture" type="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 vía Yuno's dashboard or <a href="/reference/payments/capture-authorization">API method</a> .

  Example: true
</ParamField>

<ParamField body="amount" type="object">
  Specifies the payment amount object, with the value and currency.

  <Expandable title="properties">
    <ParamField body="currency" type="enum">
      The currency used to make the payment (MAX 3; MIN 3; <a href="/reference/country-reference">ISO 4217</a> ).

      Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
    </ParamField>

    <ParamField body="value" type="number">
      The payment amount (multiple of 0.0001).

      Example: 12100.00
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="customer_payer" type="object">
  Specifies customer object for payments links.

  <Expandable title="properties">
    <ParamField body="id" type="string">
      The unique identifier of the customer at
      Yuno platform (MAX 255; MIN 3).

      Example: faa89e18-5a11-11ed-9b6a-0242ac120002
    </ParamField>

    <ParamField body="customer_id" type="string">
      The unique identifier of the customer in the external merchant (MAX 255; MIN 3).

      Example: 23456
    </ParamField>

    <ParamField body="first_name" type="string">
      The customer's first name (MAX 255; MIN 3).

      Example: John
    </ParamField>

    <ParamField body="last_name" type="string">
      The customer's last name (MAX 255; MIN 3).

      Example: Doe
    </ParamField>

    <ParamField body="gender" type="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`.
    </ParamField>

    <ParamField body="date_of_birth" type="string">
      The customer's date of birth in the YYYY-MM-DD format (Length: 10).

      Example: 1990-02-28
    </ParamField>

    <ParamField body="email" type="string">
      The customer's e-mail (MAX 255; MIN 3).

      Example: [john.doe@email.com](mailto:john.doe@email.com)
    </ParamField>

    <ParamField body="nationality" type="enum">
      The customer's nationality (MAX 2; MIN 2; <a href="/reference/country-reference">ISO 3166-1</a> ).

      Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
    </ParamField>

    <ParamField body="document" type="object">
      Specifies the customer's document object, including its number and type.

      <Expandable title="properties">
        <ParamField body="document_number" type="string">
          The customer's document number (MAX 40; MIN 3).

          Example: 1093333333
        </ParamField>

        <ParamField body="document_type" type="enum">
          The customer's document type (MAX 6, MIN 2).

          Possible enum values: Check the <a href="/reference/country-reference">
          Country reference</a>.
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="phone" type="object">
      Specifies the customer's phone object, including number and code.

      <Expandable title="properties">
        <ParamField body="number" type="string">
          The customer's phone number (MAX 40; MIN 3).

          Example: 11992149494
        </ParamField>

        <ParamField body="country_code" type="string">
          The country calling code of the customer's phone (MAX 3; MIN 1)

          Possible values: Check the <a href="/reference/country-reference">
          Country reference</a>.
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="billing_address" type="object">
      Specifies the customer's billing address object.

      <Expandable title="properties">
        <ParamField body="address_line_1" type="string">
          The primary billing address line of the customer (MAX 255; MIN 3).

          Example: Calle 34 # 56 - 78
        </ParamField>

        <ParamField body="address_line_2" type="string">
          The secondary billing address line of the customer (MAX 255; MIN 3).

          Example: Apartamento 502, Torre I
        </ParamField>

        <ParamField body="city" type="string">
          The city considered for the billing address (MAX 255; MIN 3).

          Example: Bogotá
        </ParamField>

        <ParamField body="country" type="enum">
          The country considered for the billing address (MAX 2; MIN 2; <a href="/reference/country-reference">ISO
          3166-1</a> ).

          Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
        </ParamField>

        <ParamField body="state" type="string">
          The state considered for the billing address (MAX 255; MIN 3).

          Example: Cundinamarca
        </ParamField>

        <ParamField body="zip_code" type="string">
          The zipcode considered for the billing address (MAX 11; MIN 4).

          Example: 111111
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="shipping_address" type="object">
      Specifies the customer's shipping address object.

      <Expandable title="properties">
        <ParamField body="address_line_1" type="string">
          The primary shipping address line of the customer (MAX 255; MIN 3).

          Example: Calle 34 # 56 - 78
        </ParamField>

        <ParamField body="address_line_2" type="string">
          The secondary shipping address line of the customer (MAX 255; MIN 3).

          Example: Apartamento 502, Torre I
        </ParamField>

        <ParamField body="city" type="string">
          The city considered for the shipping address (MAX 255; MIN 3).

          Example: Bogotá
        </ParamField>

        <ParamField body="country" type="enum">
          The country considered for the shipping address (MAX 2; MIN 2; <a href="/reference/country-reference">ISO
          3166-1</a> ).

          Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
        </ParamField>

        <ParamField body="state" type="string">
          The state considered for the shipping address (MAX 255; MIN 3).

          Example: Cundinamarca
        </ParamField>

        <ParamField body="zip_code" type="string">
          The zipcode considered for the shipping address (MAX 11; MIN 4).

          Example: 111111
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="additional_data" type="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.

  <Expandable title="properties">
    <ParamField body="airline" type="object">
      Specifies the airline object. Passengers and tickets should have the same order information.

      <Expandable title="properties">
        <ParamField body="pnr" type="string">
          Passenger name record (MAX 10; MIN 1).

          Example: 1P-2UUGJW
        </ParamField>

        <ParamField body="legs" type="array of object">
          Specifies the legs array of objects.

          <Expandable title="properties">
            <ParamField body="arrival_airport" type="string">
              IATA airport code (MAX 3; MIN 3). See <a href="http://www.iata.org">[http://www.iata.org](http://www.iata.org)</a> .

              Example: AMS
            </ParamField>

            <ParamField body="base_fare" type="float">
              The transaction amount, excluding taxes and fees, the smallest unit of currency (multiple of
              0.0001).

              Example: 23.5676
            </ParamField>

            <ParamField body="base_fare_currency" type="string">
              The currency used to transaction amount (MAX 3; MIN 3; <a href="/reference/country-reference">ISO 4217</a> ).

              Example: Check the <a href="/reference/country-reference">Country reference</a>.
            </ParamField>

            <ParamField body="carrier_code" type="string">
              IATA carrier code (MAX 2; MIN 2). See <a href="http://www.iata.org">[http://www.iata.org](http://www.iata.org)</a> .

              Example: KL
            </ParamField>

            <ParamField body="departure_airport" type="string">
              IATA code (MAX 3; MIN 3). See <a href="http://www.iata.org">[http://www.iata.org](http://www.iata.org)</a> .

              Example: EZE
            </ParamField>

            <ParamField body="departure_airport_timezone" type="string">
              Airport timezone (MAX 6; MIN 6).

              Example: -03:00
            </ParamField>

            <ParamField body="departure_datetime" type="timestamp">
              The departure date and time in local time at the departure airport.

              Example: 2022-05-09T20:46:54.786342Z
            </ParamField>

            <ParamField body="fare_basis_code" type="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
            </ParamField>

            <ParamField body="fare_class_code" type="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
            </ParamField>

            <ParamField body="flight_number" type="string">
              The flight number assigned by the airline carrier (MAX 5; MIN 1).

              Example: 842
            </ParamField>

            <ParamField body="stopover_code" type="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
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="passengers" type="array of objects">
          Specifies the array of objects that represents the passengers associated to the tickets.

          <Expandable title="properties">
            <ParamField body="document" type="object">
              Specifies the document object for the passenger.

              <Expandable title="properties">
                <ParamField body="document_number" type="string">
                  The passenger's document number (MAX 40; MIN 3).

                  Example: 1093333333
                </ParamField>

                <ParamField body="document_type" type="enum">
                  The passenger's document type (MAX 6, MIN 2).

                  Possible enum values: Check the <a href="/reference/country-reference">
                  Country reference</a>.
                </ParamField>

                <ParamField body="country" type="enum">
                  Country where the document was issued (MAX 2; MIN 2; <a href="/reference/country-reference">ISO
                  3166-1</a> ).

                  Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
                </ParamField>
              </Expandable>
            </ParamField>

            <ParamField body="date_of_birth" type="string">
              The passenger's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).

              Example: 1990-02-28
            </ParamField>

            <ParamField body="email" type="string">
              The passenger's email (MAX 255; MIN 3).

              Example: [John.Doe@gmail.com](mailto:John.Doe@gmail.com)
            </ParamField>

            <ParamField body="first_name" type="string">
              The passenger's first name (MAX 255; MIN 3).

              Example: John
            </ParamField>

            <ParamField body="last_name" type="string">
              The passenger's last name (MAX 255; MIN 3).

              Example: Doe
            </ParamField>

            <ParamField body="loyalty_number" type="string">
              Number of passenger loyalty program (MAX 20, MIN 1).

              Example: 254587547
            </ParamField>

            <ParamField body="loyalty_tier" type="enum">
              Tier of passenger loyalty program (MAX 255; MIN 3).

              Possible enum values: Check the <a href="/reference/airline-information">
              Loyalty tier</a>.
            </ParamField>

            <ParamField body="middle_name" type="string">
              The passenger's middle name (MAX 255; MIN 3).

              Example: Charles
            </ParamField>

            <ParamField body="nationality" type="enum">
              The passenger's nationality (MAX 2; MIN 2; <a href="/reference/country-reference">ISO 3166-1</a> ).

              Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
            </ParamField>

            <ParamField body="type" type="enum">
              The type of passenger (MAX 1; MIN 1).

              Possible enum values: Check the <a href="/reference/airline-information">Passenger type list</a>.
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="tickets" type="array of objects">
          Specifies the array of tickets associated with the passengers.

          <Expandable title="properties">
            <ParamField body="ticket_number" type="string">
              Ticket number (MAX 14; MIN 1).

              Example: 7411823255523
            </ParamField>

            <ParamField body="e_ticket" type="boolean">
              Is this an e-ticket?

              Possible values: `True` or `False`
            </ParamField>

            <ParamField body="restricted" type="boolean">
              Indicates if the ticket is refunfable or not.

              Possible values: `True` or `False`
            </ParamField>

            <ParamField body="total_fare_amount" type="float">
              Total fare amount in the smallest unit of currency (multiple of 0.0001).

              Example: 80000
            </ParamField>

            <ParamField body="total_tax_amount" type="float">
              Total taxes amount in the smallest unit of currency (multiple of 0.0001).

              Example: 14800
            </ParamField>

            <ParamField body="total_fee_amount" type="float">
              Total fee amount in the smallest unit of currency (multiple of 0.0001).

              Example: 25200
            </ParamField>

            <ParamField body="issue" type="object">
              Specifies the issue object.

              <Expandable title="properties">
                <ParamField body="address" type="string">
                  Address of the agent who sold the ticket (MAX 255; MIN 3).

                  Example: Apartamento 502, Torre I
                </ParamField>

                <ParamField body="carrier_prefix_code" type="string">
                  Issuing or Validating carrier. This is the AWB Prefix (Air waybill) IATA 3-numeric code (MAX
                  3; MIN
                  3\).

                  Example: 044
                </ParamField>

                <ParamField body="city" type="string">
                  City name of the agent who sold the ticket (MAX 255; MIN 3).

                  Example: Bogotá
                </ParamField>

                <ParamField body="country" type="enum">
                  Country code where the ticket was issued (MAX 2; MIN 2; <a href="/reference/country-reference">ISO
                  3166-1</a> ).

                  Possible enum values: Check the <a href="/reference/country-reference">Country code
                  list</a>.
                </ParamField>

                <ParamField body="date" type="string">
                  Ticket issuing date.

                  Example: 1979-01-12
                </ParamField>

                <ParamField body="travel_agent_code" type="string">
                  Code of the travel agent issuing the ticket.

                  Example: 10655823
                </ParamField>

                <ParamField body="travel_agent_name" type="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
                </ParamField>
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="order" type="object">
      Specifies the order object.

      <Expandable title="properties">
        <ParamField body="fee_amount" type="float">
          The fee amount of the order (multiple of 0.0001).

          Example: 1
        </ParamField>

        <ParamField body="shipping_amount" type="float">
          The shipping amount of the order (multiple of 0.0001).

          Example: 1
        </ParamField>

        <ParamField body="items" type="array of object">
          Specifies the item's object.

          <Expandable title="properties">
            <ParamField body="id" type="string">
              The unique identifier of the item (MAX 255; MIN 3).

              Example: 3214
            </ParamField>

            <ParamField body="name" type="string">
              The name of the item (MAX 255; MIN 3).

              Example: iPhone 12 Pro Max
            </ParamField>

            <ParamField body="quantity" type="int">
              The quantity of the item (MAX 999; MIN 1).

              Example: 1
            </ParamField>

            <ParamField body="unit_amount" type="float">
              The unit amount of the item (multiple of 0.0001).

              Example: 550
            </ParamField>

            <ParamField body="category" type="string">
              The category of the item (MAX 255; MIN 3).

              Possible values: Check the <a href="/reference/items-category-list">Item category list</a>.
            </ParamField>

            <ParamField body="brand" type="string">
              The brand of the item (MAX 255; MIN 3).

              Example: Apple
            </ParamField>

            <ParamField body="sku_code" type="string">
              The stock keeping unit (SKU) of the item (MAX 255; MIN 3).

              Example: A2342
            </ParamField>

            <ParamField body="manufacture_part_number" type="string">
              The manufacture part number of the item (MAX 255; MIN 3).

              Example: 345621234
            </ParamField>

            <ParamField body="picture_url" type="string">
              The picture of the item (MAX 255; MIN 3).

              Example: https\://www\.merchant\_url.com/items/:id
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="seller_details" type="object">
      Specifies the seller's details object.

      <Expandable title="properties">
        <ParamField body="name" type="string">
          The seller's legal name (MAX 255; MIN 3).

          Example: Jhon Doe
        </ParamField>

        <ParamField body="email" type="string">
          The seller's e-mail (MAX 255; MIN 3).

          Example: [jhondoe@business.com](mailto:jhondoe@business.com)
        </ParamField>

        <ParamField body="reference" type="string">
          The seller's identification code (MAX 255; MIN 3).

          Example: Seller
        </ParamField>

        <ParamField body="website" type="string">
          The seller's website URL (MAX 255; MIN 3).

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

        <ParamField body="industry" type="enum">
          The seller's industry (MAX 255; MIN 3).

          Possible enum values: Check the <a href="/reference/industry-category-list">Industry category</a>.
        </ParamField>

        <ParamField body="country" type="enum">
          The seller's country (MAX 255; MIN 3).

          Possible enum values: Check the <a href="/reference/country-reference">Country code list</a>.
        </ParamField>

        <ParamField body="document" type="object">
          Specifies the document object of the seller.

          <Expandable title="properties">
            <ParamField body="document_number" type="string">
              The seller's document number (MAX 40; MIN 3).

              Example: 1093333333
            </ParamField>

            <ParamField body="document_type" type="enum">
              The seller's document type (MAX 6, MIN 2).

              Possible enum values: Check the <a href="/reference/country-reference">
              Country reference</a>.
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="phone" type="object">
          Specifies the seller's phone number object.

          <Expandable title="properties">
            <ParamField body="country_code" type="string">
              The country calling code of the seller's phone (MAX 3; MIN 1). Possible values: Check the <a href="/reference/country-reference">
              Country reference</a> .

              Example: 57
            </ParamField>

            <ParamField body="number" type="string">
              The seller's phone number, without the country code (MAX 32; MIN 1).

              Example: 3132450765
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="address" type="object">
          Specifies the seller's address object.

          <Expandable title="properties">
            <ParamField body="address_line_1" type="string">
              The primary address line of the seller (MAX 255; MIN 3).

              Example: Calle 34 # 56 - 78
            </ParamField>

            <ParamField body="address_line_2" type="string">
              The secondary billing address line of the seller (MAX 255; MIN 3).

              Example: Apartamento 502, Torre I
            </ParamField>

            <ParamField body="city" type="string">
              The city considered for the seller's address (MAX 255; MIN 3).

              Example: Bogotá
            </ParamField>

            <ParamField body="country" type="enum">
              The country considered for the seller's address (MAX 2; MIN 2, <a href="/reference/country-reference">ISO
              3166-1</a> ).

              Possible enum values: Check the <a href="/reference/country-reference">Country code
              list</a>.
            </ParamField>

            <ParamField body="state" type="string">
              The state considered for the seller's address (MAX 255; MIN 3).

              Example: Cundinamarca
            </ParamField>

            <ParamField body="zip_code" type="string">
              The zipcode considered for the seller's address (MAX 11; MIN 4).

              Example: 111111
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="taxes" type="array of objects">
  Specifies the order's tax object.

  <Expandable title="properties">
    <ParamField body="type" type="string">
      Type of the tax.

      Example: VAT
    </ParamField>

    <ParamField body="tax_base" type="float">
      The amount base to apply the tax defined.

      Example: 10000
    </ParamField>

    <ParamField body="value" type="float">
      The amount of the tax.

      Example: 2100
    </ParamField>

    <ParamField body="percentage" type="float">
      The percentage of the tax.

      Example: 21
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="one_time_use" type="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.
</ParamField>

<ParamField body="availability" type="object">
  Specifies the availability object. Refers to the Payment Link expiration date.

  <Expandable title="properties">
    <ParamField body="start_at" type="timestamp">
      Start of the validity period of the payment link.

      Example: 2022-05-09T20:46:54.786342Z
    </ParamField>

    <ParamField body="finish_at" type="timestamp">
      End of the validity period of the payment link.

      Example: 2022-05-09T20:46:54.786342Z
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="callback_url" type="string">
  URL to redirect your customer after the payment (MAX 255; MIN 3).

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

<ParamField body="redirect_url" type="string">
  Payment Link URL (MAX 255; MIN 3).

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

<ParamField body="payment_method_types" type="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.
</ParamField>

<ParamField body="payment" type="array of objects">
  Array of <a href="/reference/payments/the-payment-object">Payment objects</a>
</ParamField>

<ParamField body="metadata" type="array of objects">
  Specifies a list of metadata objects. You can add up to 50 metadata objects.

  <Expandable title="properties">
    <ParamField body="metadata object" type="object">
      Specifies a metadata key and the respective value.

      <Expandable title="properties">
        <ParamField body="key" type="string">
          Specifies one metadata key.

          Example: age
        </ParamField>

        <ParamField body="value" type="string">
          Specifies the value for the defined metadata key.

          Example: 28
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="vault_on_success" type="boolean">
  Flag to enroll the card after a successful payment. False by default.

  Example: false
</ParamField>
