---
updatedAt: 2025-09-09T20:37:17.000Z
agentTools:
  projectIndex: https://docs.qorcommerce.io/llms.txt
---

# Create a Payment Form (linq)

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "QorCommerce Endpoints",
    "description": "API Version 3"
  },
  "paths": {
    "/payment/linq": {
      "post": {
        "operationId": "forms-linq",
        "summary": "Create a Payment Form (linq)",
        "tags": [
          "Payment Form (linq)"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-App-Key"
          },
          {
            "$ref": "#/components/parameters/trait_qorHeaderAuthentication_Qor-Client-Key"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction_data": {
                    "type": "object",
                    "properties": {
                      "mid": {
                        "type": "string",
                        "description": "the merchant id assigned by QorCommerce or your merchant service provider (MSP)"
                      },
                      "form_id": {
                        "type": "string",
                        "description": "Form template id you would like to use from the **Fetch Payment Forms (linq templates)** endpoint"
                      },
                      "description": {
                        "type": "string",
                        "description": "Description for this order. If left blank, this will be left off the form",
                        "default": "Online Payment Linq for John Doe"
                      },
                      "expires": {
                        "type": "integer",
                        "description": "Expiration time for this linq. Possible values are 1 day (86400), 1 week (604800) or 1 month (2592000) or a time in seconds of your choice",
                        "default": 604800
                      },
                      "amount": {
                        "type": "string",
                        "description": "The total amount to process"
                      },
                      "order_id": {
                        "type": "string",
                        "description": "Unique merchant order tracking number"
                      },
                      "po_number": {
                        "type": "string",
                        "description": "Unique purchase order tracking number"
                      },
                      "via": {
                        "type": "string",
                        "description": "Whether you intend to send this linq via `SMS` or `Email`",
                        "enum": [
                          "sms",
                          "email"
                        ],
                        "default": "email"
                      }
                    },
                    "required": [
                      "mid",
                      "form_id",
                      "description",
                      "amount"
                    ]
                  }
                },
                "required": [
                  "transaction_data"
                ],
                "example": {
                  "transaction_data": {}
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The status of the transaction.\n\nPossible response values are `ok` or `error` ",
                      "example": "ok"
                    },
                    "code": {
                      "type": "string",
                      "description": "See [Payment Response Codes](doc:payment-response-codes) for more detail.",
                      "example": "GW00"
                    },
                    "message": {
                      "type": "string",
                      "description": "A payment gateway status code message.",
                      "example": "Payment Linq successfully created"
                    },
                    "data": {
                      "type": "string",
                      "description": "The http link for this payment form that you can send to a customer for online payment",
                      "example": "https://..."
                    },
                    "request_id": {
                      "type": "string",
                      "description": "The request id for this payment form - this is used in the **Send Payment Form Linq** endpoint",
                      "example": "req_..."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.qorcommerce.io/v3"
    }
  ],
  "components": {
    "parameters": {
      "trait_qorHeaderAuthentication_Qor-App-Key": {
        "name": "Qor-App-Key",
        "in": "header",
        "description": "The unique key identifying the app making this request.\n\nNOTE: If testing use **`T6554252567241061980`** for the **`Qor-App-Key`** header key.",
        "required": true,
        "schema": {
          "type": "string",
          "maxLength": 24,
          "default": "T6554252567241061980"
        }
      },
      "trait_qorHeaderAuthentication_Qor-Client-Key": {
        "name": "Qor-Client-Key",
        "in": "header",
        "description": "The Client key represents an authorized **merchant account**  and is assigned by QorCommerce or your merchant service account provider.\n\n**NOTE:**  If testing use `01dffeb784c64d098c8c691ea589eb82 `  for the `Qor-Client-Key` header key.",
        "required": true,
        "schema": {
          "type": "string",
          "default": "01dffeb784c64d098c8c691ea589eb82"
        }
      }
    }
  },
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "node",
    "ruby",
    "java",
    "javascript",
    "php",
    "python",
    "swift"
  ]
}
```