Get a public payment link
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/public/payment-links/example"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/public/payment-links/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.feitpay.com/v1/public/payment-links/exampleA live link answers payments_not_enabled until the platform is in production.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Link summary.
object
Decimal string. Never a float.
object
How the customer can pay this link right now (pix: BRL only, Brazilian bank accounts): PIX is left out while it is not available, and crypto when a live payment would open PIX directly (no crypto processor on).
Example
{ "object": "public_payment_link", "amount": "59.90", "merchant": { "checkout_theme": "dark" }, "allowed_methods": [ "crypto" ]}Feature not available for this account or deployment (feature_unavailable_error), e.g. payments_not_enabled (live payments have not started on the platform), live_mode_disabled, live_keys_disabled, test_mode_disabled, payment_method_unavailable.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Resource not found (or not visible to this tenant).
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}