S2S (Seamless API)
S2S Fetch Order
Fetch S2S order and transaction details by PayOrc order ID.
S2S Fetch Order
Version: 3.0.0
S2S channel API key required. IP whitelist applies.
Endpoint
| Method | URL |
|---|---|
| GET | https://api.payorc.com/s2s/v1/orders/{p_order_id} |
Please use the test credentials for sandbox testing.
Replace {p_order_id} with the PayOrc order ID from the payment response (e.g. 1000011812).
Hosted fetch order uses query param GET /orders/v1/transaction-details?p_order_id=. S2S uses a path parameter on the same field.
Headers
| Header | Required |
|---|---|
merchant-key | Yes |
merchant-secret | Yes |
Code example
curl --location 'https://api.payorc.com/s2s/v1/orders/1000011812' \
--header 'merchant-key: YOUR_MERCHANT_KEY' \
--header 'merchant-secret: YOUR_MERCHANT_SECRET'Success response
{
"status": "success",
"code": "00",
"message": "Successfully fetched transaction details",
"data": {
"m_order_id": "ORD-2024-001",
"p_order_id": "1000011812",
"p_request_id": "1000012200",
"transaction_id": "1000012195",
"status": "CAPTURED",
"currency": "AED",
"amount": "100.00",
"amount_caputred": "100.00",
"psp": "PAYMOB",
"payment_method": "CARD",
"transaction_history": [
{
"order_id": "1000011812",
"transaction_id": "1000012195",
"type": "AUTH",
"status": "AUTHORISED",
"created_at": "2026-07-09 10:00:00"
}
],
"payment_method_data": {
"scheme": "VISA",
"masked_pan": "4111xxxx1111"
}
}
}Error responses
| Message | Cause |
|---|---|
Please provide p_order_id | Missing path parameter |
Invalid p_order_id | Order not found or not owned by merchant |