Skip to main content
POST
Try it creates a real link on your account. Cancel it in Your requests.

Authorizations

Authorization
string
header
required

Authorization: Bearer psk_… — psk_ followed by 43 base64url characters (A–Z, a–z, 0–9, -, _). Create keys in Your requests → API keys on pesso.xyz; each key is shown once.

Body

application/json

Any field not listed here is refused with 400, naming the field: unexpected field "address".

amount
string

Exact amount the payer must pay, in USD, as a decimal string greater than 0 with at most 2 decimals. Send either amount or minAmount, not both. If you send neither, the request takes any amount of at least "0.01".

Pattern: ^\d+(\.\d{1,2})?$
Example:

"25.00"

minAmount
string

Smallest amount the payer may pay, in USD, as a decimal string greater than 0 with at most 2 decimals. Send either amount or minAmount, not both. Defaults to "0.01" when neither is sent.

Pattern: ^\d+(\.\d{1,2})?$
Example:

"5"

multiple
boolean
default:false

false: the link can be paid once. true: it can be paid more than once.

concept

A message to the payer: a string, or a JSON object. Anything else (an array, a number) is refused with 400 (concept must be a string or a JSON object). A blank string means no concept.

An object is stored as compact JSON. The limit is 500 bytes of UTF-8, measured after that compact serialisation (400 concept must be at most 500 bytes).

The payer sees it on the payment page, under the amount:

  • a string is shown as written, in quotation marks;
  • for an object, the first key's value is the headline (the key itself isn't shown) and the remaining keys follow as label/value rows, in the order you sent them;
  • a key is shown as a label: order_id and orderId both read "Order id";
  • a nested value gets one level of layout (a list joined with commas, a flat object as sub-rows); anything deeper is shown as compact JSON;
  • it is always rendered as text, never as HTML.

Your verified email is shown above the amount. Pesso checks that email, not what the concept says.

In the payment.succeeded webhook data.concept is always a string: an object comes back as its JSON string.

Example:
successUrl
string<uri>

Where the payer can return after paying, offered as a button on the paid screen (never an automatic redirect). Must be an https URL with no username or password, at most 2 048 characters.

Maximum string length: 2048
Example:

"https://shop.example.com/orders/4418/paid"

cancelUrl
string<uri>

Where the payer goes back to if they cancel. Must be an https URL with no username or password, at most 2 048 characters.

Maximum string length: 2048
Example:

"https://shop.example.com/cart"

expiresAt
string<date-time>

When the link stops accepting payments: an ISO 8601 date-time with a Z or ±hh:mm offset, in the future and at most 365 days ahead. Leave it out for a link with no expiry.

Example:

"2027-09-30T23:59:59Z"

Response

The payment request was created. Send your customer to url.

id
string<uuid>
required

The request's id. It comes back as data.requestId in the payment.succeeded webhook — store it against your order.

url
string<uri>
required

The link to send your customer to: https://pesso.xyz/send/?uid= followed by id.

expiresAt
string<date-time> | null
required

When the link stops accepting payments, or null for no expiry.