Payment links

Payment links are reusable hosted payment pages you can share with any number of buyers, unlike a checkout session, which is single-use and tied to one buyer. A link supports three modes: standard for fixed line items or subscription signup via plan_id, donation for variable buyer-chosen amounts, and event for ticket-tier sales. Each completed checkout through a link creates its own order behind the scenes, keeping payment links inside the orders-first model.

Links stay active until you deactivate them, they expire, or they hit an optional completion limit. Line items can come from your catalog (variants or bundles) or be defined ad hoc, with optional quantity and amount adjustment controls, custom fields, tipping, and coupon support.

Start with the Payment links guide. For choosing between hosted surfaces, see Payment links vs checkout sessions vs invoices.

Add payment link custom fields#

POST/v1/payment-links/{payment_link_id}/custom-fieldsIdempotent

Add payment link custom fields.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

Request body
custom_fieldsarray of objectrequired
Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X POST https://api.withflintpay.com/v1/payment-links/pl_123/custom-fields \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}

Update payment link custom field#

PATCH/v1/payment-links/{payment_link_id}/custom-fields/{payment_link_custom_field_id}Idempotent

Update payment link custom field.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

payment_link_custom_field_idstringrequired

Stable payment link custom field ID.

Request body
custom_field_typeenum
textdropdowncheckboxtextarea
keystring
labelstring
max_lengthinteger
optionsarray of string
placeholderstring
positioninteger
requiredboolean
Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X PATCH https://api.withflintpay.com/v1/payment-links/pl_123/custom-fields/plcf_123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}

Delete payment link custom field#

DELETE/v1/payment-links/{payment_link_id}/custom-fields/{payment_link_custom_field_id}Idempotent

Delete payment link custom field.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

payment_link_custom_field_idstringrequired

Stable payment link custom field ID.

Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X DELETE https://api.withflintpay.com/v1/payment-links/pl_123/custom-fields/plcf_123 \
  -H "Authorization: Bearer YOUR_API_KEY"
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}

Add payment link line items#

POST/v1/payment-links/{payment_link_id}/line-itemsIdempotent

Add payment link line items.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

Request body
line_itemsarray of one ofrequired
Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X POST https://api.withflintpay.com/v1/payment-links/pl_123/line-items \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}

Update payment link line item#

PATCH/v1/payment-links/{payment_link_id}/line-items/{payment_link_line_item_id}Idempotent

Update payment link line item.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

payment_link_line_item_idstringrequired

Stable payment link line item ID.

Request body
allow_quantity_adjustmentboolean
allow_unit_price_adjustmentboolean
descriptionstring
max_quantityinteger

Whole-number quantity; fractional quantities are not supported.

max_unit_price_moneyobject

Monetary amount represented as integer minor units plus an ISO 4217 currency code.

min_quantityinteger

Whole-number quantity; fractional quantities are not supported.

min_unit_price_moneyobject

Monetary amount represented as integer minor units plus an ISO 4217 currency code.

namestring
quantityinteger

Whole-number quantity; fractional quantities are not supported.

suggested_unit_price_money_optionsarray of object
taxobject
unit_price_moneyobject

Monetary amount represented as integer minor units plus an ISO 4217 currency code.

Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X PATCH https://api.withflintpay.com/v1/payment-links/pl_123/line-items/plli_123 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}

Delete payment link line item#

DELETE/v1/payment-links/{payment_link_id}/line-items/{payment_link_line_item_id}Idempotent

Delete payment link line item.

Path parameters
payment_link_idstringrequired

Flint payment link ID.

payment_link_line_item_idstringrequired

Stable payment link line item ID.

Response · 200
dataobjectrequired
metaobject
request_idstring
Bash
curl -X DELETE https://api.withflintpay.com/v1/payment-links/pl_123/line-items/plli_123 \
  -H "Authorization: Bearer YOUR_API_KEY"
JSON
{
  "data": {},
  "request_id": "bce56cba-0827-44aa-bb56-4f200ba15ee6"
}
Rate this doc