Generate Invoice

Generate Invoice

Request

POST /v1/invoice/generate HTTP/1.1
Content-Type: application/json

Body

{
  "template_id": 6,
  "text_type_invoice": "Invoice",
  "ref": "Reference",
  "version": "1.0.0",
  "description": "Description",
  "notes": "Notes",
  "date": "01.09.2023",
  "payment_term": "Term",
  "default_tax": {
    "percent": "20",
    "amount": "33"
  },
  "discount": {
    "percent": "1",
    "amount": "2"
  },
  "customer": {
    "name": "name",
    "address": {
      "address": "Address 1 ",
      "address_2": "address 2",
      "postal_code": "38478",
      "city": "Ag",
      "country": "Tkm"
    }
  },
  "items": [
    {
      "name": "Item 1",
      "description": "desc 1  ",
      "unit_cost": "1",
      "quantity": "3",
      "tax": {
        "percent": "34",
        "amount": "3"
      },
      "discount": {
        "percent": "1",
        "amount": "2"
      }
    }
  ]
}