PayOrc
POS

Initiate Payment

Initiate payment for a previously created POS order.

Initiate Payment

Second step of the two-step flow. Generates a PSP token for an existing order.

Endpoint

MethodURL
POSThttps://api.payorc.com/pos/v1/initiate-payment

Headers

HeaderTypeRequiredDescription
merchant-keyStringYesPOS Web API key
merchant-secretStringYesPOS Web API secret
Content-TypeStringYesapplication/json

Request body

FieldTypeRequiredDescription
order_idStringYesp_order_id from Create Order
pos_terminal_idStringYesPOS terminal ID
txn_typeStringYesCARD or UPI

Business rules

  • Order must be in PENDING or FAILED status.
  • Rejected if order is already paid (CAPTURED / AUTHORISED) or CANCELLED.

Response — Success (200)

{
  "data": {
    "p_order_id": "1000010035",
    "psp_token_id": "TOKEN_FROM_PSP",
    "pos_terminal_id": "E3929707",
    "order_status": "PENDING"
  },
  "message": "Payment initiated",
  "status": "success",
  "code": "00"
}

cURL

curl -X POST "https://api.payorc.com/pos/v1/initiate-payment" \
  -H "merchant-key: {{posweb-key}}" \
  -H "merchant-secret: {{posweb-secret}}" \
  -H "Content-Type: application/json" \
  -d '{
    "order_id": "1000010035",
    "pos_terminal_id": "E3929707",
    "txn_type": "CARD"
  }'

On this page