Example:200
Get payment link
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
statusCodeintegerdataobjectShow child attributesHide child attributes
businessobjectShow child attributesHide child attributes
idstringnamestring
checkoutobjectCheckout template used by the payment link.
Show child attributesHide child attributes
idstringnamestringthemestringcolorstringacceptCorporationBuyerbooleanacceptNaturalPersonBuyerbooleanbilletobjectShow child attributesHide child attributes
dueDateDelayinteger
creditCardobjectShow child attributesHide child attributes
defaultInstallmentsintegermaxInstallmentsinteger
pixobjectShow child attributesHide child attributes
expirationInMinutesinteger
requestAddressbooleanrequestDeliveryAddressbooleanshowSellerNameboolean
imageobjectShow child attributesHide child attributes
namestringnullablepathstringnullableurlstringnullableisPublicbooleannullableextensionstringnullable
namestringdescriptionstringstatusstringvalueInCentsintegerunpublishedAtstringnullablepublishedAtstringnullabledistUrlstringsupportedPaymentMethodsarray of stringsnullablePayment methods that the payment link presents.
nullmeans that all payment methods are presented.subscriptionobjectnullableRecurrence terms of the payment link.
nullwhen the payment link charges once.retryisnullwhen the default retry applies.Show child attributesHide child attributes
periodicitystringrequiredInterval 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.
repeatIndefinitelybooleanrequiredWhen
true, the subscription has no end andnumberRecurrencesmust be omitted,nullor0.numberRecurrencesintegernullableTotal number of recurrences, the first one included. Required, as an integer from 1 to 1200, when
repeatIndefinitelyisfalse. WhenrepeatIndefinitelyistrue, omit it or sendnullor0. In responses, it is0whenrepeatIndefinitelyistrue.retryobjectnullableHow 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
delayedorfailedrecurrence that it sends to be charged on the new card is charged right away, itsretry.retriesgoes back to0and its next retry is dueintervalInDaysdays later. Aninactivesubscription becomesactiveagain. So the number of attempts counts from the last card change, and a recurrence can be charged more times thanretriesMaxNumberplus one. A recurrence retried in the last 10 minutes is not restarted. - The first retry is due
intervalInDaysdays after thebillingDateof the recurrence, and each following retry is dueintervalInDaysdays 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
statusbecomesinactiveand thesubscription.deactivatedwebhook is sent. This happens when the routine runs after the next due time, aboutintervalInDaysdays after the last retry.
Show child attributesHide child attributes
retriesMaxNumberintegerrequiredNumber of retries after the original charge, from 1 to 10. The original charge is not counted, so with
3a recurrence is charged up to 4 times between card changes. Changing the card restarts the count.intervalInDaysintegerrequiredDays from the
billingDateof the recurrence to the first retry, and from each retry to the next one, from 1 to 15.
thereWasASalebooleantruewhen the payment link already has a sale.advancedobjectShow child attributesHide child attributes
redirectobjectRedirect shown to the buyer after the payment.
Show child attributesHide child attributes
urlstringbuttonNamestringdelayInSecondsintegernullable
buyerWhitelistobjectRestriction 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 stringsrequiredEmail 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.
preferenceobjectData that the checkout of the payment link asks from the buyer.
Show child attributesHide child attributes
acceptNaturalPersonBuyerbooleanacceptCorporationBuyerbooleanrequestAddressbooleanrequestDeliveryAddressbooleanrequireEmailReentrybooleandisableCouponFormboolean
paymentConfigurationobjectShow child attributesHide child attributes
billetobjectShow child attributesHide child attributes
dueDateDelayinteger
pixobjectShow child attributesHide child attributes
expirationInMinutesinteger
creditCardobjectShow child attributesHide child attributes
defaultInstallmentsintegermaxInstallmentsintegerinvoiceDescriptionstringinstallmentOptionsarray of objectsShow child attributesHide child attributes
installmentsintegerinstallmentValueInCentsintegernullableinterestRateintegernullable
supportContactobjectSupport contact shown to the buyer.
Show child attributesHide child attributes
idstringnamestringemailstringvalidatedboolean
createdAtstring · date-timeupdatedAtstring · date-timepemittedSellbooleanThe field name is spelled this way in the API.
interestSettingsobjectShow child attributesHide child attributes
sellerAbsorbsInterestbooleanrequiredWhen
true, the seller absorbs the installment interest and every installment option has an interest rate of 0.
pricesByPaymentMethodarray of objectsOne-time price of the payment link for each payment method present in
paymentConfiguration(pix,billetandcreditCard, in this order), with the transferred fees included.valueInCentsstays the value without them. The list followspaymentConfiguration, notsupportedPaymentMethods, so it can bring a method thatsupportedPaymentMethodsdoes not accept.Show child attributesHide child attributes
paymentMethodstringpriceInCentsintegertaxTransferInCentsinteger
payerobjectData 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
namestringemailstringdocumentobjectShow child attributesHide child attributes
typestringnumberstringDocument number with digits only.
phoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
addressobjectShow child attributesHide child attributes
zipCodestringZip code with digits only, such as
01310100.streetstringnumberstringcomplementstringneighborhoodstringcitystringstatestringState code with 2 letters, such as
SP.
deliveryAddressobjectShow child attributesHide child attributes
zipCodestringZip code with digits only, such as
01310100.streetstringnumberstringcomplementstringneighborhoodstringcitystringstatestringState 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
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode 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
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
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
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
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
statusCodeintegerHTTP status code.
messagestringExplanation of the 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
statusCodeintegerrequiredHTTP status code.
messagestringrequiredExplanation of the error.
errorstringName of the HTTP status, such as
Bad RequestorConflict.errorCodestringCode that identifies the error. Present only on some errors.