PayOrc
POS

POS Payment

Create a POS order and initiate payment in a single request.

POS Payment

Create an order and generate a PSP token in one call. Use this for one-step integrations.

For a two-step flow, use Create Order and Initiate Payment instead.

Endpoint

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

Headers

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

Request body

Top-level wrapper: { "data": { ... } }

All objects and arrays below must be present. Field values may be "" unless noted as required.

data.order_details (required)

FieldKey requiredValue requiredDescription
amountYesYesBase amount (number, min 1)
currencyYesYesISO 4217 code (e.g. INR)
pos_terminal_idYesYesPOS terminal ID
txn_typeYesYesCARD or UPI
m_order_idYesNoYour order reference (unique if provided)
quantityYesNoDefaults to 1
convenience_feeYesNoMin 0
descriptionYesNoMax 200 characters

data.customer_details (required object)

FieldKey requiredValue required
m_customer_idYesNo
nameYesNo
emailYesNo
mobileYesNo
codeYesNo

data.billing_details (required object)

FieldKey requiredValue required
address_line1YesNo
address_line2YesNo
cityYesNo
provinceYesNo
countryYesNo
pinYesNo

data.shipping_details (required object)

FieldKey requiredValue required
shipping_nameYesNo
shipping_emailYesNo
shipping_codeYesNo
shipping_mobileYesNo
address_line1YesNo
address_line2YesNo
cityYesNo
provinceYesNo
countryYesNo
pinYesNo
location_pinYesNo
shipping_currencyYesNo
shipping_amountYesNo

data.urls (required object)

FieldKey requiredValue requiredDescription
successYesNoRedirect URL on success
cancelYesNoRedirect URL on cancel
failureYesNoRedirect URL on failure
webhook_urlYesNoHTTPS URL for async status webhooks. Send "" if not used

When payment completes on the terminal, PayOrc POSTs the order status to your webhook_url if provided. You can also poll Get Order.

data.parameters (required array)

Array of objects with keys alpha, beta, gamma, delta, epsilon. Values may be "".

data.custom_data (required array)

Same structure as parameters. Use alpha/beta for MID_GROUP or SPLIT_PAYMENT routing when needed.

data.items (optional)

Line items array. Omit or send [] if not used.

Response — Success (200)

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

cURL

curl -X POST "https://api.payorc.com/pos/v1/payment" \
  -H "merchant-key: {{posweb-key}}" \
  -H "merchant-secret: {{posweb-secret}}" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "customer_details": {
        "m_customer_id": "",
        "name": "",
        "email": "",
        "mobile": "",
        "code": ""
      },
      "order_details": {
        "pos_terminal_id": "E3929707",
        "txn_type": "CARD",
        "m_order_id": "",
        "amount": 1,
        "quantity": "",
        "convenience_fee": "",
        "currency": "INR",
        "description": ""
      },
      "billing_details": {
        "address_line1": "",
        "address_line2": "",
        "city": "",
        "province": "",
        "country": "",
        "pin": ""
      },
      "shipping_details": {
        "shipping_name": "",
        "shipping_email": "",
        "shipping_code": "",
        "shipping_mobile": "",
        "address_line1": "",
        "address_line2": "",
        "city": "",
        "province": "",
        "country": "",
        "pin": "",
        "location_pin": "",
        "shipping_currency": "",
        "shipping_amount": ""
      },
      "urls": {
        "success": "",
        "cancel": "",
        "failure": "",
        "webhook_url": ""
      },
      "parameters": [
        { "alpha": "" },
        { "beta": "" },
        { "gamma": "" },
        { "delta": "" },
        { "epsilon": "" }
      ],
      "custom_data": [
        { "alpha": "" },
        { "beta": "" },
        { "gamma": "" },
        { "delta": "" },
        { "epsilon": "" }
      ]
    }
  }'

On this page