POST Cashfree/Terminal

Request Information

URI Parameters

None.

Body Parameters

CreateOrderRequest
NameDescriptionTypeAdditional information
order_amount

decimal number

None.

order_currency

string

None.

customer_details

customer_details

None.

OrderMeta

OrderMeta

None.

terminal

terminal

None.

Payment

Payment

None.

CashfreePaymentResponse

CashfreePaymentResponse

None.

terminal_id

string

None.

terminal_name

string

None.

operator_name

string

None.

terminal_email

string

None.

terminal_meta

Object

None.

terminal_type

string

None.

terminal_phone_no

string

None.

terminal_note

string

None.

terminal_address

string

None.

cf_order_id

string

None.

cf_terminal_id

integer

None.

payment_method

string

None.

add_invoice

boolean

None.

order_id

string

None.

MachineId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "order_amount": 1.0,
  "order_currency": "sample string 2",
  "customer_details": {
    "customer_id": "sample string 1",
    "CustomerName": "sample string 2",
    "CustomerEmail": "sample string 3",
    "customer_phone": "sample string 4"
  },
  "OrderMeta": {
    "ReturnUrl": "sample string 1"
  },
  "terminal": {
    "cf_terminal_id": 1,
    "terminal_type": "sample string 2"
  },
  "Payment": {
    "cf_payment_id": "sample string 1",
    "payment_status": "sample string 2",
    "payment_time": "sample string 3"
  },
  "CashfreePaymentResponse": {
    "Payments": [
      {
        "cf_payment_id": "sample string 1",
        "payment_status": "sample string 2",
        "payment_time": "sample string 3"
      },
      {
        "cf_payment_id": "sample string 1",
        "payment_status": "sample string 2",
        "payment_time": "sample string 3"
      }
    ]
  },
  "terminal_id": "sample string 3",
  "terminal_name": "sample string 4",
  "operator_name": "sample string 5",
  "terminal_email": "sample string 6",
  "terminal_meta": {},
  "terminal_type": "sample string 8",
  "terminal_phone_no": "sample string 9",
  "terminal_note": "sample string 10",
  "terminal_address": "sample string 11",
  "cf_order_id": "sample string 12",
  "cf_terminal_id": 13,
  "payment_method": "sample string 14",
  "add_invoice": true,
  "order_id": "sample string 16",
  "MachineId": "sample string 17"
}

application/xml, text/xml

Sample:
<CreateOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubixKshetramAPI.Models">
  <CashfreePaymentResponse>
    <Payments>
      <Payment>
        <cf_payment_id>sample string 1</cf_payment_id>
        <payment_status>sample string 2</payment_status>
        <payment_time>sample string 3</payment_time>
      </Payment>
      <Payment>
        <cf_payment_id>sample string 1</cf_payment_id>
        <payment_status>sample string 2</payment_status>
        <payment_time>sample string 3</payment_time>
      </Payment>
    </Payments>
  </CashfreePaymentResponse>
  <MachineId>sample string 17</MachineId>
  <OrderMeta>
    <ReturnUrl>sample string 1</ReturnUrl>
  </OrderMeta>
  <Payment>
    <cf_payment_id>sample string 1</cf_payment_id>
    <payment_status>sample string 2</payment_status>
    <payment_time>sample string 3</payment_time>
  </Payment>
  <add_invoice>true</add_invoice>
  <cf_order_id>sample string 12</cf_order_id>
  <cf_terminal_id>13</cf_terminal_id>
  <customer_details>
    <CustomerEmail>sample string 3</CustomerEmail>
    <CustomerName>sample string 2</CustomerName>
    <customer_id>sample string 1</customer_id>
    <customer_phone>sample string 4</customer_phone>
  </customer_details>
  <operator_name>sample string 5</operator_name>
  <order_amount>1</order_amount>
  <order_currency>sample string 2</order_currency>
  <order_id>sample string 16</order_id>
  <payment_method>sample string 14</payment_method>
  <terminal>
    <cf_terminal_id>1</cf_terminal_id>
    <terminal_type>sample string 2</terminal_type>
  </terminal>
  <terminal_address>sample string 11</terminal_address>
  <terminal_email>sample string 6</terminal_email>
  <terminal_id>sample string 3</terminal_id>
  <terminal_meta />
  <terminal_name>sample string 4</terminal_name>
  <terminal_note>sample string 10</terminal_note>
  <terminal_phone_no>sample string 9</terminal_phone_no>
  <terminal_type>sample string 8</terminal_type>
</CreateOrderRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.