---
agentTools:
  projectIndex: https://sadadpay.readme.io/llms.txt
---

# /api/Invoice/createproductlinkinvoice

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "servers": [
    {
      "url": "https://apisandbox.sadadpay.net"
    }
  ],
  "info": {
    "title": "Sadad API",
    "description": "Sadad API",
    "contact": {
      "name": "Sadad Pay",
      "url": "https://www.sadadpay.net/",
      "email": "support@sadadpay.net"
    },
    "license": {
      "name": "Sadad License",
      "url": "https://www.sadadpay.net/"
    },
    "version": "v1"
  },
  "paths": {
    "/api/Invoice/createproductlinkinvoice": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DTOProductLinkInvoice"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DTOProductLinkInvoice"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DTOProductLinkInvoice"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DTOProductLinkInvoice": {
        "type": "object",
        "properties": {
          "productLink_Key": {
            "type": "integer",
            "format": "int64"
          },
          "customer_Name": {
            "type": "string",
            "nullable": true
          },
          "customer_Mobile": {
            "type": "string",
            "nullable": true
          },
          "customer_Email": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "lang": {
            "type": "string",
            "nullable": true
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DTOProductLinkInvoiceItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DTOProductLinkInvoiceItem": {
        "type": "object",
        "properties": {
          "product_Id": {
            "type": "integer",
            "format": "int64"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 192,
      "2": 48,
      "3": 2,
      "4": 246,
      "5": 118,
      "6": 125,
      "7": 0,
      "8": 20,
      "9": 236,
      "10": 187,
      "11": 156
    }
  }
}
```