Get payment link

GET/payment-links/details/{paymentLinkId}

Returns the details of a payment link. This endpoint does not require credentials.

The payer data (payer) is returned only when the request sends the x-api-key and x-api-secret headers of a user linked to the business that owns the payment link, as a collaborator or as a seller of one of its sales teams, or of an Easyflow platform administrator. The API key must have access to payment links. Without credentials, or with credentials that are not valid, the response is the same, without the payer data. Send the credentials only from your server, never from a browser.

The rest of the payment link is the same for every reader, including the email domains allowed to buy (advanced.buyerWhitelist).

Path parameters

  • paymentLinkIdstringrequired

Responses

200Returns the details of a payment link.

Returns the details of a payment link.

Content typeapplication/jsonobject

  • statusCodeinteger

    Example:200

  • dataobject
    Show child attributesHide child attributes
    • businessobject
      Show child attributesHide child attributes
      • idstring
      • namestring
    • checkoutobject

      Checkout template used by the payment link.

      Show child attributesHide child attributes
      • idstring
      • namestring
      • themestring
      • colorstring
      • acceptCorporationBuyerboolean
      • acceptNaturalPersonBuyerboolean
      • billetobject
        Show child attributesHide child attributes
        • dueDateDelayinteger
      • creditCardobject
        Show child attributesHide child attributes
        • defaultInstallmentsinteger
        • maxInstallmentsinteger
      • pixobject
        Show child attributesHide child attributes
        • expirationInMinutesinteger
      • requestAddressboolean
      • requestDeliveryAddressboolean
      • showSellerNameboolean
    • imageobject
      Show child attributesHide child attributes
      • namestringnullable
      • pathstringnullable
      • urlstringnullable
      • isPublicbooleannullable
      • extensionstringnullable

        Possible values:pngjpgjpeg

    • namestring
    • descriptionstring
    • statusstring

      Possible values:draftactiveinactiveexpiredcanceled

    • valueInCentsinteger
    • unpublishedAtstringnullable
    • publishedAtstringnullable
    • distUrlstring
    • supportedPaymentMethodsarray of stringsnullable

      Payment methods that the payment link presents. null means that all payment methods are presented.

      Possible values:credit-cardpixbank-billetcryptodebit-cardtransfer

    • subscriptionobjectnullable

      Recurrence terms of the payment link. null when the payment link charges once. retry is null when the default retry applies.

      Show child attributesHide child attributes
      • periodicitystringrequired

        Interval between recurrences. Recurrences are due every 1, 3, 6 or 12 months; the day of the month depends on when the subscription was created. See due dates.

        Possible values:MonthlyQuarterlyBiannualyAnnualy

      • repeatIndefinitelybooleanrequired

        When true, the subscription has no end and numberRecurrences must be omitted, null or 0.

      • numberRecurrencesintegernullable

        Total number of recurrences, the first one included. Required, as an integer from 1 to 1200, when repeatIndefinitely is false. When repeatIndefinitely is true, omit it or send null or 0. In responses, it is 0 when repeatIndefinitely is true.

        <= 1200

      • retryobjectnullable

        How Easyflow retries a recurrence whose charge fails or is not paid. When omitted or null, Easyflow makes up to 5 retries, 3 days apart, after the original charge, so a recurrence is charged up to 6 times while its card is not changed. When sent as an object, both fields are required.

        • Retries apply from the second recurrence on. The first recurrence is the charge made when the buyer subscribes, and it is never retried: when its order is canceled, for example because the card was refused, the subscription is canceled.
        • Change subscription credit card restarts the retries. Each delayed or failed recurrence that it sends to be charged on the new card is charged right away, its retry.retries goes back to 0 and its next retry is due intervalInDays days later. An inactive subscription becomes active again. So the number of attempts counts from the last card change, and a recurrence can be charged more times than retriesMaxNumber plus one. A recurrence retried in the last 10 minutes is not restarted.
        • The first retry is due intervalInDays days after the billingDate of the recurrence, and each following retry is due intervalInDays days after the previous one. A routine runs every 4 hours and charges the retries that are due, so a retry can happen up to 4 hours after its due time.
        • When the last retry also fails, the subscription is not canceled: its status becomes inactive and the subscription.deactivated webhook is sent. This happens when the routine runs after the next due time, about intervalInDays days after the last retry.
        Show child attributesHide child attributes
        • retriesMaxNumberintegerrequired

          Number of retries after the original charge, from 1 to 10. The original charge is not counted, so with 3 a recurrence is charged up to 4 times between card changes. Changing the card restarts the count.

          >= 1<= 10

        • intervalInDaysintegerrequired

          Days from the billingDate of the recurrence to the first retry, and from each retry to the next one, from 1 to 15.

          >= 1<= 15

    • thereWasASaleboolean

      true when the payment link already has a sale.

    • advancedobject
      Show child attributesHide child attributes
      • redirectobject

        Redirect shown to the buyer after the payment.

        Show child attributesHide child attributes
        • urlstring
        • buttonNamestring
        • delayInSecondsintegernullable
      • buyerWhitelistobject

        Restriction of the buyers of the payment link by email domain. Always returned, to every reader, with or without credentials.

        Show child attributesHide child attributes
        • emailDomainsarray of stringsrequired

          Email domains saved in the payment link. Only a buyer whose email belongs to one of these domains, or to a subdomain of one of them, can pay. An empty list means that any email can pay.

    • preferenceobject

      Data that the checkout of the payment link asks from the buyer.

      Show child attributesHide child attributes
      • acceptNaturalPersonBuyerboolean
      • acceptCorporationBuyerboolean
      • requestAddressboolean
      • requestDeliveryAddressboolean
      • requireEmailReentryboolean
      • disableCouponFormboolean

        Default:false

    • paymentConfigurationobject
      Show child attributesHide child attributes
      • billetobject
        Show child attributesHide child attributes
        • dueDateDelayinteger
      • pixobject
        Show child attributesHide child attributes
        • expirationInMinutesinteger
      • creditCardobject
        Show child attributesHide child attributes
        • defaultInstallmentsinteger
        • maxInstallmentsinteger
        • invoiceDescriptionstring
        • installmentOptionsarray of objects
          Show child attributesHide child attributes
          • installmentsinteger
          • installmentValueInCentsintegernullable
          • interestRateintegernullable
    • supportContactobject

      Support contact shown to the buyer.

      Show child attributesHide child attributes
      • idstring
      • namestring
      • emailstring
      • validatedboolean
    • createdAtstring · date-time
    • updatedAtstring · date-time
    • pemittedSellboolean

      The field name is spelled this way in the API.

    • interestSettingsobject
      Show child attributesHide child attributes
      • sellerAbsorbsInterestbooleanrequired

        When true, the seller absorbs the installment interest and every installment option has an interest rate of 0.

    • pricesByPaymentMethodarray of objects

      One-time price of the payment link for each payment method present in paymentConfiguration (pix, billet and creditCard, in this order), with the transferred fees included. valueInCents stays the value without them. The list follows paymentConfiguration, not supportedPaymentMethods, so it can bring a method that supportedPaymentMethods does not accept.

      Show child attributesHide child attributes
      • paymentMethodstring

        Possible values:credit-cardpixbank-billetcryptodebit-cardtransfer

      • priceInCentsinteger
      • taxTransferInCentsinteger
    • payerobject

      Data of the payer of the payment link, filled only when the request sends the credentials of a user linked to the business that owns the payment link. Otherwise it is empty or absent.

      Show child attributesHide child attributes
      • namestring
      • emailstring
      • documentobject
        Show child attributesHide child attributes
        • typestring

          Possible values:CPFCNPJ

        • numberstring

          Document number with digits only.

      • phoneobject
        Show child attributesHide child attributes
        • areaCodestring
        • dddstring
        • numberstring
        • isMobileboolean
      • addressobject
        Show child attributesHide child attributes
        • zipCodestring

          Zip code with digits only, such as 01310100.

        • streetstring
        • numberstring
        • complementstring
        • neighborhoodstring
        • citystring
        • statestring

          State code with 2 letters, such as SP.

      • deliveryAddressobject
        Show child attributesHide child attributes
        • zipCodestring

          Zip code with digits only, such as 01310100.

        • streetstring
        • numberstring
        • complementstring
        • neighborhoodstring
        • citystring
        • statestring

          State code with 2 letters, such as SP.

400If the provided parameter is invalid, the API will return the following error response:

If the provided parameter is invalid, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid param: []

    Example:Invalid param: []

  • errorstring

    Bad Request

    Example:Bad Request

  • statusCodeinteger

    400

    Example:400

  • errorCodestring

    Code that identifies the error. Present only on some errors.

401If the request is unauthorized, the API will return the following error response:

If the request is unauthorized, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid field

    Example:Unauthorized

  • errorstring

    Unauthorized

    Example:Unauthorized

  • statusCodeinteger

    401

    Example:401

403If the request is forbidden, the API will return the following error response:

If the request is forbidden, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Forbidden resource

    Example:Forbidden resource

  • errorstring

    Forbidden

    Example:Forbidden

  • statusCodeinteger

    403

    Example:403

500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

Content typeapplication/jsonobject

  • statusCodeinteger

    HTTP status code.

    Example:500

  • messagestring

    Explanation of the error.

    Example:Internal Server Error

503The request sent credentials, but Easyflow could not check them at that moment. The payment link is not returned. Send the same request again after a moment.

The request sent credentials, but Easyflow could not check them at that moment. The payment link is not returned. Send the same request again after a moment.

Content typeapplication/jsonobject

  • statusCodeintegerrequired

    HTTP status code.

  • messagestringrequired

    Explanation of the error.

  • errorstring

    Name of the HTTP status, such as Bad Request or Conflict.

  • errorCodestring

    Code that identifies the error. Present only on some errors.