List payment sessions
const url = 'https://api.paymee.online/api/v1/gateway/sessions/list/';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);}curl --request GET \ --url https://api.paymee.online/api/v1/gateway/sessions/list/ \ --header 'Authorization: Bearer <token>'List the merchant account’s payment sessions, newest first, with cursor pagination.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Return sessions created after this session id (backward pagination).
Page size (default 20, max 100).
Return sessions created before this session id (forward pagination).
Responses
Section titled “Responses”Cursor-paginated list of payment sessions.
object
Lightweight serializer for session list endpoint.
object
Merchant-provided unique reference for idempotency
System-generated order number (PM-XXXXXX)
Merchant’s display-friendly order ID (separate from merchant_reference)
object
Requested amount, as a decimal string at the requested currency’s precision.
Requested ISO 4217 currency code.
Exchange rate applied (1 original.currency = rate currency), six decimals. “1.000000” when no conversion.
CREATED- CreatedPENDING- PendingPROCESSING- ProcessingSUCCEEDED- SucceededFAILED- FailedEXPIRED- ExpiredCANCELED- Canceled
True when more results exist past this page (use the last id as starting_after).
Example
{ "data": [ { "status": "CREATED" } ]}One or more fields failed validation.
Problem detail with a per-field errors array (422 responses).
object
URI identifying the error type.
Short, human-readable summary of the error type.
HTTP status code.
Human-readable explanation specific to this occurrence.
A single field-level validation error inside a problem+json body.
object
Name of the field that failed validation.
Machine-readable error code, e.g. ‘required’.
Human-readable description of the failure.
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}
