Skip to content

Get a public payment link

GET
/v1/public/payment-links/{slug}
curl --request GET \
--url https://api.feitpay.com/v1/public/payment-links/example

A live link answers payments_not_enabled until the platform is in production.

slug
required
string

Link summary.

Media typeapplication/json
object
object
required
string
Allowed value: public_payment_link
slug
required
string
title
required
string
description
required
string | null
amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
currency
required
string
merchant
required
object
display_name
required
string
website_domain
required
string | null
sandbox_fixture
required
boolean
logo_url
required
string | null
accent_color
required
string | null
checkout_theme
required
string
Allowed values: dark light
show_display_name
required
boolean
active
required
boolean
livemode
required
boolean
allowed_methods

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

Array<string>
Allowed values: crypto pix

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.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Resource not found (or not visible to this tenant).

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}