PayOrc
POS

POS Web API

Integrate PayOrc point-of-sale payments via the POS Web API.

POS Web API

API Version: 3.0.0

The POS Web API lets you create orders and initiate card or UPI payments on a physical POS terminal (e.g. Mswipe). Use test or live API keys with channel pos_web.

Base URL

EnvironmentBase URL
Production / Sandboxhttps://api.payorc.com/pos/v1

Authentication

Every request requires these headers:

HeaderRequiredDescription
merchant-keyYesPOS Web API key
merchant-secretYesPOS Web API secret
Content-TypeYesapplication/json (for POST bodies)

API keys must be issued for the POS Web channel (pos_web). Keys from other channels (hosted, S2S, etc.) are rejected with E0005.

CodeMeaning
E0001Missing merchant-key or merchant-secret
E0002Invalid channel configuration
E0003Invalid key or secret
E0005Wrong channel key, or invalid merchant mode
E0006Internal server error

Integration flows

One-stepPOS Payment: create order and generate PSP token in one call.

Two-stepCreate OrderInitiate Payment.

Endpoints

MethodPathDescription
POST/paymentCreate order + initiate payment
POST/ordersCreate order only
POST/initiate-paymentInitiate payment for existing order
GET/orders/:order_idGet order / transaction details
POST/orders/:order_id/cancelCancel a pending order

Webhooks

Pass urls.webhook_url (HTTPS, or "") when creating a payment/order. PayOrc sends status updates to that URL when the payment completes. You can also poll Get Order.

Response envelope

Success:

{ "data": {}, "message": "...", "status": "success", "code": "00" }

Validation error:

{ "message": "...", "status": "fail", "code": "E0021" }

txn_type values

ValueDescription
CARDCard payment on terminal
UPIUPI / digital payment on terminal

Total payable amount

When validating MID limits, total payable is:

(amount × quantity) + shipping_amount + convenience_fee

On this page