Create an invoice item
POST /api/2.0/crm/invoiceitem
Request
Creates an invoice item with the parameters (title, description, price, etc.) specified in the request.
Authorization
An API key is a token that you provide when making API calls. Include the token in a header parameter called Authorization
.
Example: Authorization: 864FE52C-1C1C-469F-9308-51DAFEFE7436
.
Headers
- Accept
enum of string
Can be one of:
application/json
.- Content-Type
enum of string
Can be one of:
application/json
.
Body
- title
string
Invoice item title
- description
string
Invoice item description
- price
number
Invoice item price
- sku
string
Invoice item stock keeping unit
- stockQuantity
number
Invoice item stock quantity
- trackInventory
boolean
Specifies if the inventory is tracked or not
- invoiceTax1id
integer
First invoice item tax ID
- invoiceTax2id
integer
Second invoice item tax ID
Examples
POST /api/2.0/crm/invoiceitem HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: example.com
curl --request POST \
--url https://example.com/api/2.0/crm/invoiceitem \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
200
Invoice item
- Title
string
- StockKeepingUnit
string
- Description
string
- Price
number
double - Currency
object
- Title
string
- Symbol
string
- Abbreviation
string
- CultureName
string
- IsConvertable
boolean
- IsBasic
boolean
- StockQuantity
number
double - TrackInvenory
boolean
- InvoiceTax1
object
- Name
string
- Description
string
- Rate
number
double - CreateOn
string
- CreateBy
object
- Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
- CanEdit
boolean
- CanDelete
boolean
- ID
integer
int32
- InvoiceTax2
object
- Name
string
- Description
string
- Rate
number
double - CreateOn
string
- CreateBy
object
- Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
- CanEdit
boolean
- CanDelete
boolean
- ID
integer
int32
- CreateOn
string
- CreateBy
object
- Id
string
uuid - DisplayName
string
- Title
string
- AvatarSmall
string
- ProfileUrl
string
- CanEdit
boolean
- CanDelete
boolean
- ID
integer
int32
401
Unauthorized