POST

Create Invoice

Creates a new invoice.

Important

Calls to this method must include the cookie .LawPanel.AuthCookie in order to identify you at user level. For more details about authentication please check this link. To obtain the cookie you can use the method Login.

Request URL

Request headers

string
Subscription key which provides access to this API.

Request body

Payload must contain information about the Invoice to be created.

  • array Required invoice_items_id: An array of Invoice Items ID to compose the Invoice. To get a list of Invoice Items available please check this link.
  • string Required client_id: The Company ID for the Invoice. (Who is the Invoice for?). To get details of Companies available please check this link.
  • string Required invoice_type_id: The Invoice Type ID for the Invoice. To get details about Invoice Types available please check this link.

Loading...
                  {
  "type": "object",
  "properties": {
    "invoice_items_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "client_id": {
      "type": "string"
    },
    "date_time": {
      "type": "integer"
    },
    "date_time_due": {
      "type": "integer"
    },
    "invoice_type_id": {
      "type": "string"
    },
    "invoice_number": {
      "type": "integer"
    },
    "observations": {
      "type": "string"
    }
  },
  "example": {
    "invoice_items_ids": [
      "ce30d5d7-1ce9-498e-a386-ac31015949f1"
    ],
    "client_id": "1c71c9bd-0603-4e95-8596-abb400efe5f3",
    "date_time": 1599609600,
    "date_time_due": 1599609600,
    "invoice_type_id": "de08d07a-b45b-4c53-8622-a7ec017b5dc1",
    "invoice_number": 1,
    "observations": "Invoice notes"
  }
}
                  
              

Response 201

This code is returned when the client was created successfully.

* See getting started for more information on how to use this API. You can also check the API change history.