One session
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");curl_easy_setopt(hnd, CURLOPT_URL, "https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b");
struct curl_slist *headers = NULL;headers = curl_slist_append(headers, "Authorization: Bearer <token>");curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b")) .header("Authorization", "Bearer <token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder() .url("https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b") .get() .addHeader("Authorization", "Bearer <token>") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'GET', url: 'https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b', headers: {Authorization: 'Bearer <token>'}};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}val client = OkHttpClient()
val request = Request.Builder() .url("https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b") .get() .addHeader("Authorization", "Bearer <token>") .build()
val response = client.newCall(request).execute()use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7b \ --header 'Authorization: Bearer <token>'wget --quiet \ --method GET \ --header 'Authorization: Bearer <token>' \ --output-document \ - https://example.com/api/sessions/0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7bEverything the dashboard shows of a session: the split verdicts, the ack triples, the serving PSP, the notification calendar — and everything you sent with the order: the basket, the customer, the addresses, the travel details, the URLs. Another merchant’s session answers the same 404 as a nonexistent one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The session, as a search returned it. A lowercase UUID — the ones we mint are v7.
Example
0193f6c1-7a2e-7b4d-9f01-2c3d4e5f6a7bResponses
Section titled “Responses”One session in full: the dashboard view, plus everything the merchant sent with the order — basket, customer, addresses, travel, return and cancel URLs, descriptor.
object
Our handle for the session — the id the payer’s browser never sees.
Which merchant it belongs to.
The merchant’s own order reference — what you search on.
The payment journey, and nothing else. PENDING: open, the payer may still pay. CAPTURING: covered, the money is being taken. PAID: done. ABORTING/ABORTED: the payer gave up, holds released. EXPIRING/EXPIRED: the session timed out, holds released. AWAITING: a lender is studying the file (BNPL), nothing taken. AWAITED_REFUSED: that lender said no. The three terminal states — PAID, ABORTED, EXPIRED (and AWAITED_REFUSED) — are where you route away.
What the order costs.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
How much has actually been taken so far.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
Epoch milliseconds.
Epoch milliseconds.
Where this session’s ending was announced, and how that went. Absent: no callback was declared.
object
Where the ending is announced to the merchant.
When they acknowledged it — epoch milliseconds. Absent: still owed.
How many delivery attempts have failed so far (the calendar allows four).
The calendar is spent — nobody is coming (merchant-webhook Q6).
Every attempt of the session, oldest first.
object
Our handle for this attempt — what the refund door addresses.
When the attempt was opened — epoch milliseconds (Q13).
The last event that touched it — its transactions’ moves included.
Archetype of the method that carried it (card, oney…).
The method INSTANCE of the session it was started on.
The PSP adapter that served this attempt (D-051) — always present.
Where this attempt stands. AUTHORIZING: dispatched, verdict still due (always out-of-band). AUTHORIZED: the money is held. DECLINED: refused, nothing taken. CANCELLED: the payer backed out at the PSP. CAPTURED: taken. VOIDED: the hold was released.
Who decided a grant below the request: the payer in their app (chosen), or the issuer (mandated).
BNPL attempts only: the plan the payer chose.
object
How many instalments the payer took.
Whether that plan carried fees.
What the attempt asked for.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
What was actually authorized — what counts against the balance.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
How much of it has already been sent back.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
What can still be refunded on it — granted minus refunded, zero unless it settled.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
The card registration this attempt produced, when the order asked for one (for later merchant-initiated payments).
The card network this attempt ran on, as the PSP named it — visa, cb, mastercard, amex… Card attempts only, and only when the platform named one we could place: an absence means the verdict said nothing, never that the payment had no network.
Money taken that nothing can hand back (direct-settlement) — the ops debt.
Every PSP operation of this attempt, oldest first — the authorization, then its capture, void or refunds.
object
Our handle for this PSP operation — what a refund door addresses.
When the operation was opened — epoch milliseconds (Q13).
The last event that touched it — for a terminal transaction, its verdict’s instant.
What this operation asked the PSP: hold the money, take it in one go, capture a hold, release a hold, or send money back.
What this operation moved, in minor units.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
The PSP’s reference — what their dashboard greps (D-047).
The VERDICT facet: what the PSP finally decided about this operation — as opposed to the ack facet below, which is what the driving call answered on the spot.
object
Where the operation stands. pending means the verdict is still due — it always arrives out-of-band.
The PSP’s own code, split at the source — successes carry theirs too.
The PSP’s own sentence, as they said it — never glued to the code.
What a refusal means, when the PSP’s answer could be read.
What the driving call answered (the ack facet).
What the driving call said — a transport failure’s raw cause included.
Absent beside a present ackMessage = no HTTP response ever came.
The caller’s reconciliation tag, on refunds only (lot 5) — echoed verbatim.
What the offer was matched against (method-acl.md) — the first thing to read when a method someone expected was not served.
object
ISO 3166-1 alpha-2 — where the order was sold.
The merchant’s own sales channel.
The basket as the merchant described it, line by line.
object
What the buyer reads for this line — shown as-is on the payment page.
How many units of it.
Price of the LINE — unit price × quantity, in minor units.
object
Amount in the MINOR unit of the currency — 1000_00 is one thousand euros, never 1000.
ISO 4217 code, uppercase. One currency per session.
PSP-facing itemization of this line. REQUIRED, in full, on a session that offers a BNPL method: the lender reads every field. Never shown to the payer — the payment page carries the label, the quantity and the amount, nothing of this block.
object
Your own catalogue reference. Required on a session that offers a BNPL method.
What this line IS, from the lender’s closed list. REQUIRED on every line of a session that offers a BNPL method — the platform has no default for what a shop sells.
Required on a session that offers a BNPL method.
Discount already applied to this line, in minor units.
Tax included in this line, in minor units.
How this line is delivered. Every field of it is required on a session that offers a BNPL method: the lender reads them, and the platform substitutes nothing.
object
How the goods reach the buyer. Required on a BNPL session.
Required on a BNPL session.
Required on a BNPL session.
In days. Required on a BNPL session.
Required on a BNPL session.
Who is paying, as the merchant knows them. Personal data — the merchant’s own.
object
The buyer’s activity with your shop, handed to the 3-D Secure risk assessment (more history means a better chance of a frictionless authentication). Send what you know.
object
Purchases in the last 24 hours.
Purchases in the last 12 months.
Purchases in the last 6 months.
Merchant-side unique customer identifier.
The buyer’s e-mail — where the PSP and the lender write, when they do.
The buyer’s own name. Used as the cardholder name when the card form does not collect one.
The buyer’s family name.
The billing address sent with the order.
object
Company at this address, when there is one. Oney requires it on the shipping block.
Given name of the person at this address.
Family name of the person at this address.
Civility, PSP-normalized.
Street line — number, street, complement.
Postal code as the country writes it.
City or town.
ISO 3166-1 alpha-2.
International format.
International format.
The shipping address sent with the order.
object
Company at this address, when there is one. Oney requires it on the shipping block.
Given name of the person at this address.
Family name of the person at this address.
Civility, PSP-normalized.
Street line — number, street, complement.
Postal code as the country writes it.
City or town.
ISO 3166-1 alpha-2.
International format.
International format.
The travel details sent with the order.
object
Who travels — the lead traveller, when the contract asks for one.
object
Given name of the lead traveller.
Family name of the lead traveller.
Date of birth, YYYY-MM-DD.
One entry per stay of the trip.
object
Where the stay takes place — resort, city, site.
Arrival, YYYY-MM-DD.
Departure, YYYY-MM-DD.
What kind of stay it is, in your own words.
How many rooms or units.
How many people travel.
Whether the order includes travel insurance.
Whether the order includes a vehicle rental.
Where the payer is sent once it ends.
Where the payer is sent when they give up.
The soft descriptor — what the buyer reads on their bank statement.
The merchant’s own free text, carried to the PSP.
The order asked for a card alias to be created.
Example
{ "status": "PENDING", "attempts": [ { "status": "AUTHORIZING", "partialAuth": "chosen", "cardScheme": "visa", "transactions": [ { "type": "authorization", "status": { "kind": "pending", "category": "bank-refusal" } } ] } ], "cartItems": [ { "detail": { "category": "computersandsoftware", "delivery": { "type": "storepickup", "speed": "standard" } } } ], "billing": { "title": "mr" }, "shipping": { "title": "mr" }}InvalidRequest — the request could not be read: a missing or malformed field, a bad pattern, or a property this door does not declare (the message names it). Every door with a schema can answer this, before any business rule is consulted.
object
Stable machine-readable code — the one thing to branch on. Never parse the message.
English sentence for logs and operators. Wording may change; the code will not.
Example
{ "code": "InvalidRequest", "message": "body/<field> failed validation"}Unauthorized — the only code this response carries: no usable access token (absent, malformed, expired). One answer for every failure shape, so nothing can be learned by watching which one comes back.
object
Stable machine-readable code — the one thing to branch on. Never parse the message.
English sentence for logs and operators. Wording may change; the code will not.
Example
{ "code": "Unauthorized", "message": "a valid access token is required"}NotFound — the only code this response carries: unknown, or belonging to another merchant. The two are deliberately indistinguishable.
object
Stable machine-readable code — the one thing to branch on. Never parse the message.
English sentence for logs and operators. Wording may change; the code will not.
Example
{ "code": "NotFound", "message": "no such resource"}