Retrieve a payment session
const url = 'https://api.paymee.online/api/v1/gateway/sessions/example/';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/example/ \ --header 'Authorization: Bearer <token>'Retrieve a payment session, including its attempt history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public id of the payment session (e.g. ps_...).
Responses
Section titled “Responses”Response serializer for payment session detail.
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.
Line items: [{name, quantity, unit_price, description}]
CREATED- CreatedPENDING- PendingPROCESSING- ProcessingSUCCEEDED- SucceededFAILED- FailedEXPIRED- ExpiredCANCELED- Canceled
Redirect buyer here on payment failure or cancellation
Per-session webhook URL override
Serializer for payment attempts (read-only).
object
INITIATED- InitiatedPROCESSING- ProcessingSUCCEEDED- SucceededFAILED- FailedABANDONED- Abandoned
Example
{ "status": "CREATED", "attempts": [ { "status": "INITIATED" } ]}The referenced payment session does not exist for this merchant account.
RFC 9457 problem detail body (application/problem+json).
object
URI identifying the error type.
Short, human-readable summary of the error type.
HTTP status code.
Human-readable explanation specific to this occurrence.
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example"}
