Skip to content

Create a payment link

POST
/v1/payment-links
curl --request POST \
--url https://api.feitpay.com/v1/payment-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'FeitPay-Environment: test' \
--data '{ "store_id": "example", "title": "example", "description": "example", "amount": "59.90", "currency": "EUR", "allowed_networks": [ "example" ], "redirect_url": "https://example.com", "metadata": { "additionalProperty": "example" }, "allowed_methods": [ "crypto" ] }'

A live link’s amount must be at least the live minimum for its currency (minimum_amount on GET /v1/price-currencies): smaller amounts get 422 amount_below_minimum on amount, and a currency without a current exchange rate gets 403 currency_unavailable. An organization creates at most 120 payment links per hour in each mode (429 rate_limited; deployments may configure another limit). Honors Idempotency-Key (replays return the original response for 24 h).

FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

FeitPay-Environment
string
default: test
Allowed values: test live

test (default) or live for dashboard sessions. API keys determine the environment. Until the platform is in production, configuration (stores, webhook endpoints, payment links) is live and money movement answers payments_not_enabled.

Idempotency-Key
string
<= 255 characters

Unique key per logical create operation (max 255 chars). Replays return the original response; reuse with a different body returns idempotency_error.

Media typeapplication/json
object
store_id
required
string
title
required
string
>= 1 characters <= 120 characters
description
string
<= 500 characters
amount
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
currency
required

ISO 4217 code of a price currency. GET /v1/price-currencies lists them with their decimals and, for live payments, the current minimum; amounts use the currency’s minor units (no decimals for JPY, three for KWD).

string
Allowed values: EUR BRL USD GBP AED ARS AUD BDT BHD BMD CAD CHF CLP CNY CZK DKK GEL HKD HUF IDR ILS INR JPY KRW KWD LKR MXN MYR NGN NOK NZD PHP PKR PLN SAR SEK SGD THB TRY TWD UAH VND ZAR
allowed_networks
Array<string>
redirect_url
string format: uri
metadata
object
<= 20 properties
key
additional properties
string
<= 500 characters
allowed_methods

[crypto, pix] or [pix] (BRL only, where PIX is enabled) lets the customer pay with PIX. Default: crypto.

Array<string>
Allowed values: crypto pix

Created.

Media typeapplication/json
object
id
required
string
object
required
string
Allowed value: payment_link
livemode
required
boolean
store_id
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
url
required
string format: uri
active
required
boolean
allowed_networks
required
Array<string>
redirect_url
required
string | null
sessions_count
required
integer
confirmed_count
required
integer
created_at
required
string format: date-time
allowed_methods
Array<string>
Allowed values: crypto pix

Example

{
"object": "payment_link",
"amount": "59.90",
"allowed_methods": [
"crypto"
]
}

Missing or invalid credentials.

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"
}
}

Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.

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"
}
}

Validation failed.

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"
}
}

Too many requests. See Retry-After.

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"
}
}
Retry-After
integer