DocsEndpoints

Get a session

Fetches the current state of a checkout session.

GEThttps://pay.syok2pay-sandbox.com/v1/session/{session_id}
Base URL
https://pay.syok2pay-sandbox.com

Send the signed headers only (signing string merchant_code|timestamp).

Example request

bash
curl https://pay.syok2pay-sandbox.com/v1/session/cs_abc123 \
  -H "Authorization: Bearer pk_..." \
  -H "X-Timestamp: 1714280400" \
  -H "X-Signature: <hmac>"

Example response

The gateway passes the processor's session payload through unchanged (a flat object keyed by status_code). On success:

json
{
  "status_code": "SUCCESS",
  "session_id": "cs_abc123",
  "status": "PENDING",
  "amount": "3.00",
  "currency": "MYR",
  "reference_no": "ORD-20260428-003"
}

A missing session returns 404 with { "status_code": "SESSION_NOT_FOUND", "status_description": "..." }.

// representative — exact data fields are defined by the processor