> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paytring.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Process Order

> This api can be used to process transaction without opening  paytring checkout , also known as seamless api or custom checkout api

This API is used to process an order for payment after it has been created.

### Request Body

```json theme={null}
{
  "key": "string", // Merchant API key
  "order_id": "string", // Order ID
  "hash": "string" // Calculated hash for request validation
}
```

### Responses

#### 200 OK

```json theme={null}
{
  "status": true,
  "message": "Order processed successfully",
  "transaction_id": "string"
}
```

#### 400 Bad Request

```json theme={null}
{
  "status": false,
  "error": {
    "message": "Invalid request",
    "code": 400
  }
}
```


## OpenAPI

````yaml POST /api/v1/order/process
openapi: 3.1.0
info:
  title: Orchestration
  version: '1'
servers:
  - url: https://api.paytring.com
security:
  - sec0: []
paths:
  /api/v1/order/process:
    post:
      summary: Process Order
      description: >-
        This api can be used to process transaction without opening  paytring
        checkout , also known as seamless api or custom checkout api
      operationId: process-order
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - key
                - method
                - code
                - hash
              properties:
                key:
                  type: string
                  description: merchant api key, provided by paytring.
                order_id:
                  type: string
                  description: >-
                    order id received in response from paytring in create order
                    api
                method:
                  type: string
                  description: eg. upi, nb, card, wallet, emi
                  default: upi
                code:
                  type: string
                  description: >-
                    this parameter's value changes depending on what method it
                    is, in case of upi you have three options collect, qr,
                    intent .In case of nb bank code will be passed as value,
                    incase of wallet , wallet app code will be passed. in case
                    of card value will be card
                  default: collect
                vpa:
                  type: string
                  description: only required if method is upi and code is collect
                  default: example@upi
                card:
                  type: object
                  description: only required if method is card
                  required:
                    - number
                    - cvv
                    - expiry_month
                    - expiry_year
                    - holder_name
                  properties:
                    number:
                      type: string
                      description: 16 to 18 digits
                    cvv:
                      type: string
                      description: 3 to 4 digits
                    expiry_month:
                      type: string
                      description: 1 to 12 range number
                    expiry_year:
                      type: string
                      description: current or year grater then current.
                    holder_name:
                      type: string
                      description: name on card ( no special char max length 255 )
                hash:
                  type: string
                  description: to be calculated for this request
                device:
                  type: string
                  description: >-
                    mandatory if method is upi and code is intent, eg. android,
                    ios
                  default: android
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                UPI Intent:
                  value: |-
                    {
                        "status": true,
                        "payment_id": "667589021207104214",
                        "data": {
                            "type": "intent",
                            "token": "66c837ca1d1a3",
                            "url": "dXBpOi8vcGF5P3BhPWV4YW1wbGVAbnBjaSZwbj1UZXN0JnRyPUUyNDA2MDQ3NVhVNjRUJm1jPTgyMjAmYW09MS4wMCZjdT1JTlImdG49UGF5Jm1hbT0xLjAwJnJlZlVybD1odHRwczovL3BheS5lYXNlYnV6ei5pbg==",
                            "param": []
                        },
                        "request_id": "66c837c9baf4c"
                    }
                UPI QR:
                  value: |-
                    {
                        "status": true,
                        "payment_id": "667589442466221560",
                        "data": {
                            "type": "qr",
                            "token": "66c8382e65814",
                            "url": "aHR0cHM6Ly9hcGkucXJzZXJ2ZXIuY29tL3YxL2NyZWF0ZS1xci1jb2RlLz9zaXplPTMwMHgzMDAmZGF0YT11cGk6Ly9wYXk/cGE9ZXhhbXBsZUBucGNpJnBuPVRlc3QmdHI9RTI0MDYwNDc1WFU2NFQmbWM9ODIyMCZhbT0xLjAwJmN1PUlOUiZ0bj1QYXkmbWFtPTEuMDAmcmVmVXJsPWh0dHBzOi8vcGF5LmVhc2VidXp6Lmlu",
                            "param": []
                        },
                        "request_id": "66c8382e36db9"
                    }
                Card On Screen OTP:
                  value: |-
                    {
                        "status": true,
                        "payment_id": "638322528174997931",
                        "data": {
                            "type": "otp",
                            "token": "665dbf4407239",
                            "url": "aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9zdWJtaXRPdHA=",
                            "param": "srbElfodVAPxKZZP2RbSRsxmb99hhOx1YyMCe6DOo4g+Z3QrBAn1dVPNY+J5RA6DuKtrEKZmsZmw5UBJ684k2mCfTJs4n9EumJqo4zUuzEXu94pI4teAzAk3pa+pZSk9HL4wjEpLjtRUbL95MbcK13UcNItLYo7hd3uafYMmB2dZzZ8DdCm7RvgY/8taN4j9YZzJZsiLM4KxhrcwUQusWPPAQLBcWWqU/x7lTdFmRdUy5ZpZ7hVU6E5OLH9y5K0h4CI2bCJoJtC6Qm5WTLOHUbQ0eKgUCLn8bpHPGZz7tqzyA6VAy3ysMeLpncgTF8FictHj/+YczlneWdRskbJ64Q==",
                            "resend_url": "aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9yZXNlbmRPdHA=",
                            "resend_param": "srbElfodVAPxKZZP2RbSRsxmb99hhOx1YyMCe6DOo4g+Z3QrBAn1dVPNY+J5RA6DuKtrEKZmsZmw5UBJ684k2mCfTJs4n9EumJqo4zUuzEXu94pI4teAzAk3pa+pZSk9HL4wjEpLjtRUbL95MbcK16E6JiXtHZKBePiJC8c4eYfEcU+5h8gX2b299Wn1GLXU4CI2bCJoJtC6Qm5WTLOHUbQ0eKgUCLn8bpHPGZz7tqzyA6VAy3ysMeLpncgTF8FictHj/+YczlneWdRskbJ64Q=="
                        },
                        "request_id": "665dbf3e0f276"
                    }
                NB, Card, Wallets Redirect:
                  value: |-
                    {
                        "status": true,
                        "payment_id": "638305819879804138",
                        "no_referrer": false,
                        "data": {
                            "type": "redirect",
                            "token": "665da4a523bbf",
                            "url": "aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9yZWRpcmVjdFRvQmFuaw==",
                            "param": "srbElfodVAPxKZZP2RbSRvnMzoMr4ZxoXPHUzE7qqr80v9wRBsrg+56oeSStyTudKwPte1rhrmi3IR571JrQeZF6rx2YeuYa4mFTttVBH+kWMjkvqOfsjTdO0nqDWVjhGV0ValvMbd6/XDFFVIgHjkmbJt+kCAg6afwVOKjTlx2uBV3XXcvQCd+Yo6IdyjwvovzXYeWt2MAEPcq+MJ/csw1jZs+VHvMx2PD0QujxpU3/9dLLQF45DZ86cT6mEbN1sfgvM9j2PdLsMD35AeGeObM+OZY/HeeIWKbgXYpVwc5IuwKUV+aXcTApiTF0eBY+IlcnwXCBWSe9DZ9kbScmXlmj5WXYvKOkF3dklmBqUuhIuwKUV+aXcTApiTF0eBY+2YE8Uo35Q4E1/liaz4paDQjLhrLqBi4I22ebL8/CoqwXFgAh2FKP3cBfchwZtzwwDhkbnTDqMV7JJuyhcdHBKMBKf0FrHetVFL4rImV5EQviANE3SoofqyHMk2Ei3+DAhw17kJ1e5XB2+AdRRNmGfTkeMJX2DKh6VvIJ62kIaDnYIPlrAi3qh+IpKXChfrtawgSewthJEnUwwC5aJuHbuwBZVTQ9Jb7eVNjYQNB8WcIDvVlUKY8gIToONLhgVcNRut9VAHvi2HXJeu5sVzBdPBTx+H4cXxPLX2eV1p5wOe93Nc6Mh7WZurDUUYJKlysdoZL7wMo9Kpzn0uj7mKwMnpU0Gt52DhJew6JJtJ5gqgsL0AVnnQclo76Gts8WaNo19G1P5fMmC5Nw1KNeZrl3Jx9UFjW4fJK1D/vRwSsDwLDY8TQhAwDzFNCJhZQcXDfGqTNZABXfA/OKgyFCLxzEuiua5vOiBHCYVVplbP/Q2J3f8VH3WZYWuIYBNP5Id7QJI2emyB8pmkIWIyiIGXNRNxvV2OCrlr7wOTk42OQqBJgosVmLUehiiKaqTvWKPBFAr33Hlqb2O3bMsAx8airDsOYurrcRI1Adh4/cNrvdUCGpj5iMN0te9j1KP9x+UPV5z3qXX2iFSAZu09L8X30XRn8VTbWMxghYpdMK/eCXJG3xBv1QYVXevxX6EQLsnCuU5DW6ojqsYHB/UC18/hssZb0hjkc8SVOS3aTHxTG5tjLndHOFnfedhNjng26r9cF50Ir6Y6aR19VK39tr6aPWjN0BetJQXp+gzleFf6KDhFFa5rq+cLYKSvaT0DaoYuoMTRNlo6iIxFfIenO5nDIwMXeVBFZSLpMsTUmIV/SixiA="
                        },
                        "request_id": "665dafae78a94"
                    }
                Validation Error:
                  value: |-
                    {
                        "status": false,
                        "error": {
                            "message": "Invalid Data",
                            "code": 103
                        },
                        "validation": {
                            "hash": [
                                "The hash field is required."
                            ]
                        },
                        "request_id": "66c838e79bb52"
                    }
                Error:
                  value: |-
                    {
                        "status": false,
                        "error": {
                            "message": "Hash is not verified",
                            "code": 204
                        },
                        "request_id": "66c8391f9fd31"
                    }
              schema:
                oneOf:
                  - title: UPI Intent
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: true
                        default: true
                      payment_id:
                        type: string
                        example: '667589021207104214'
                      data:
                        type: object
                        properties:
                          type:
                            type: string
                            example: intent
                          token:
                            type: string
                            example: 66c837ca1d1a3
                          url:
                            type: string
                            example: >-
                              dXBpOi8vcGF5P3BhPWV4YW1wbGVAbnBjaSZwbj1UZXN0JnRyPUUyNDA2MDQ3NVhVNjRUJm1jPTgyMjAmYW09MS4wMCZjdT1JTlImdG49UGF5Jm1hbT0xLjAwJnJlZlVybD1odHRwczovL3BheS5lYXNlYnV6ei5pbg==
                          param:
                            type: array
                      request_id:
                        type: string
                        example: 66c837c9baf4c
                  - title: UPI QR
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: true
                        default: true
                      payment_id:
                        type: string
                        example: '667589442466221560'
                      data:
                        type: object
                        properties:
                          type:
                            type: string
                            example: qr
                          token:
                            type: string
                            example: 66c8382e65814
                          url:
                            type: string
                            example: >-
                              aHR0cHM6Ly9hcGkucXJzZXJ2ZXIuY29tL3YxL2NyZWF0ZS1xci1jb2RlLz9zaXplPTMwMHgzMDAmZGF0YT11cGk6Ly9wYXk/cGE9ZXhhbXBsZUBucGNpJnBuPVRlc3QmdHI9RTI0MDYwNDc1WFU2NFQmbWM9ODIyMCZhbT0xLjAwJmN1PUlOUiZ0bj1QYXkmbWFtPTEuMDAmcmVmVXJsPWh0dHBzOi8vcGF5LmVhc2VidXp6Lmlu
                          param:
                            type: array
                      request_id:
                        type: string
                        example: 66c8382e36db9
                  - title: Card On Screen OTP
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: true
                        default: true
                      payment_id:
                        type: string
                        example: '638322528174997931'
                      data:
                        type: object
                        properties:
                          type:
                            type: string
                            example: otp
                          token:
                            type: string
                            example: 665dbf4407239
                          url:
                            type: string
                            example: >-
                              aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9zdWJtaXRPdHA=
                          param:
                            type: string
                            example: >-
                              srbElfodVAPxKZZP2RbSRsxmb99hhOx1YyMCe6DOo4g+Z3QrBAn1dVPNY+J5RA6DuKtrEKZmsZmw5UBJ684k2mCfTJs4n9EumJqo4zUuzEXu94pI4teAzAk3pa+pZSk9HL4wjEpLjtRUbL95MbcK13UcNItLYo7hd3uafYMmB2dZzZ8DdCm7RvgY/8taN4j9YZzJZsiLM4KxhrcwUQusWPPAQLBcWWqU/x7lTdFmRdUy5ZpZ7hVU6E5OLH9y5K0h4CI2bCJoJtC6Qm5WTLOHUbQ0eKgUCLn8bpHPGZz7tqzyA6VAy3ysMeLpncgTF8FictHj/+YczlneWdRskbJ64Q==
                          resend_url:
                            type: string
                            example: >-
                              aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9yZXNlbmRPdHA=
                          resend_param:
                            type: string
                            example: >-
                              srbElfodVAPxKZZP2RbSRsxmb99hhOx1YyMCe6DOo4g+Z3QrBAn1dVPNY+J5RA6DuKtrEKZmsZmw5UBJ684k2mCfTJs4n9EumJqo4zUuzEXu94pI4teAzAk3pa+pZSk9HL4wjEpLjtRUbL95MbcK16E6JiXtHZKBePiJC8c4eYfEcU+5h8gX2b299Wn1GLXU4CI2bCJoJtC6Qm5WTLOHUbQ0eKgUCLn8bpHPGZz7tqzyA6VAy3ysMeLpncgTF8FictHj/+YczlneWdRskbJ64Q==
                      request_id:
                        type: string
                        example: 665dbf3e0f276
                  - title: NB, Card, Wallets Redirect
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: true
                        default: true
                      payment_id:
                        type: string
                        example: '638305819879804138'
                      no_referrer:
                        type: boolean
                        example: false
                        default: true
                      data:
                        type: object
                        properties:
                          type:
                            type: string
                            example: redirect
                          token:
                            type: string
                            example: 665da4a523bbf
                          url:
                            type: string
                            example: >-
                              aHR0cDovL2xvY2FsaG9zdDo4MDAwL2FwaS92MC9vcmRlci9yZWRpcmVjdFRvQmFuaw==
                          param:
                            type: string
                            example: >-
                              srbElfodVAPxKZZP2RbSRvnMzoMr4ZxoXPHUzE7qqr80v9wRBsrg+56oeSStyTudKwPte1rhrmi3IR571JrQeZF6rx2YeuYa4mFTttVBH+kWMjkvqOfsjTdO0nqDWVjhGV0ValvMbd6/XDFFVIgHjkmbJt+kCAg6afwVOKjTlx2uBV3XXcvQCd+Yo6IdyjwvovzXYeWt2MAEPcq+MJ/csw1jZs+VHvMx2PD0QujxpU3/9dLLQF45DZ86cT6mEbN1sfgvM9j2PdLsMD35AeGeObM+OZY/HeeIWKbgXYpVwc5IuwKUV+aXcTApiTF0eBY+IlcnwXCBWSe9DZ9kbScmXlmj5WXYvKOkF3dklmBqUuhIuwKUV+aXcTApiTF0eBY+2YE8Uo35Q4E1/liaz4paDQjLhrLqBi4I22ebL8/CoqwXFgAh2FKP3cBfchwZtzwwDhkbnTDqMV7JJuyhcdHBKMBKf0FrHetVFL4rImV5EQviANE3SoofqyHMk2Ei3+DAhw17kJ1e5XB2+AdRRNmGfTkeMJX2DKh6VvIJ62kIaDnYIPlrAi3qh+IpKXChfrtawgSewthJEnUwwC5aJuHbuwBZVTQ9Jb7eVNjYQNB8WcIDvVlUKY8gIToONLhgVcNRut9VAHvi2HXJeu5sVzBdPBTx+H4cXxPLX2eV1p5wOe93Nc6Mh7WZurDUUYJKlysdoZL7wMo9Kpzn0uj7mKwMnpU0Gt52DhJew6JJtJ5gqgsL0AVnnQclo76Gts8WaNo19G1P5fMmC5Nw1KNeZrl3Jx9UFjW4fJK1D/vRwSsDwLDY8TQhAwDzFNCJhZQcXDfGqTNZABXfA/OKgyFCLxzEuiua5vOiBHCYVVplbP/Q2J3f8VH3WZYWuIYBNP5Id7QJI2emyB8pmkIWIyiIGXNRNxvV2OCrlr7wOTk42OQqBJgosVmLUehiiKaqTvWKPBFAr33Hlqb2O3bMsAx8airDsOYurrcRI1Adh4/cNrvdUCGpj5iMN0te9j1KP9x+UPV5z3qXX2iFSAZu09L8X30XRn8VTbWMxghYpdMK/eCXJG3xBv1QYVXevxX6EQLsnCuU5DW6ojqsYHB/UC18/hssZb0hjkc8SVOS3aTHxTG5tjLndHOFnfedhNjng26r9cF50Ir6Y6aR19VK39tr6aPWjN0BetJQXp+gzleFf6KDhFFa5rq+cLYKSvaT0DaoYuoMTRNlo6iIxFfIenO5nDIwMXeVBFZSLpMsTUmIV/SixiA=
                      request_id:
                        type: string
                        example: 665dafae78a94
                  - title: Validation Error
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: false
                        default: true
                      error:
                        type: object
                        properties:
                          message:
                            type: string
                            example: Invalid Data
                          code:
                            type: integer
                            example: 103
                            default: 0
                      validation:
                        type: object
                        properties:
                          hash:
                            type: array
                            items:
                              type: string
                              example: The hash field is required.
                      request_id:
                        type: string
                        example: 66c838e79bb52
                  - title: Error
                    type: object
                    properties:
                      status:
                        type: boolean
                        example: false
                        default: true
                      error:
                        type: object
                        properties:
                          message:
                            type: string
                            example: Hash is not verified
                          code:
                            type: integer
                            example: 204
                            default: 0
                      request_id:
                        type: string
                        example: 66c8391f9fd31
        '500':
          description: '500'
          content:
            application/json:
              examples:
                Result:
                  value: |-
                    {
                        "status": false,
                        "exception": {
                            "identifier": "known",
                            "message": "Invalid Data",
                            "log_id": "63b3d80490503"
                        }
                    }
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: false
                    default: true
                  exception:
                    type: object
                    properties:
                      identifier:
                        type: string
                        example: known
                      message:
                        type: string
                        example: Invalid Data
                      log_id:
                        type: string
                        example: 63b3d80490503
      deprecated: false
      security: []
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````