Create a payment request
Returns a link your customer opens to pay you. Server-to-server only.
Authorizations
Body
Any field not listed here is refused with 400, naming the field: unexpected field "address".
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_idandorderIdboth 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.
{
"Order": "#4418",
"Items": "2 bags of coffee"
}
Response
The payment request was created. Send your customer to url.