Create an invoice / Overriding tax calculations on an invoice
POST/api/v3/invoice
Requirements
- You must specify an existing
customer_id
,customer_token
, orcustomer_external_key
value. - You must specify at least one line item.
- Each line item must refer to an existing
item_id
value.
Notes
- The response/id value is the invoice_id value of the newly created invoice.
- The
Location:
header will provide a direct API link to the newly created invoice. - Additionally, you can override the tax configurations in your account and specify a specific tax amount to charge when creating an invoice.
Request
- application/json
Body
Array [
]
Invoice reference number
External key value
Customer ID #
Invoice date
Currency ID #
Class ID #
Payment cycle
Possible values: [evy
, dly
, 1wk
, 2wk
, 116
, 4wk
, 8wk
, 30d
, mon
, 2mn
, 12w
, fst
, lst
, qtr
, six
, yrl
, 2yr
, 3yr
, 4yr
, 5yr
, 10y
, one
]
Terms ID #
Admin/Worker ID number
Billing address line 1
Billing address line 2
(Deprecated)
Billing address city
Billing address state
Billing address postal code
Billing address country
(deprecated)
Shipping address line 1
Shipping address line 2
(Deprecated)
Shipping address city
Shipping address state
Shipping address postal code
Shipping address country
(deprecated)
Is invoice exempt from dunning?
Is invoice exempt from late fees?
Is invoice exempt from processing fees?
Memo/notes to customer
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Custom field #6
Custom field #7
Custom field #8
Custom field #9
Custom field #10
Custom field #11
Custom field #12
Custom field #13
Custom field #14
Custom field #15
Custom field #16
Custom field #17
Custom field #18
Custom field #19
Custom field #20
line_items
object[]
A list of line items for the invoice
Item ID # for this line
Payment cycle
Description
Rate
Quantity
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Custom field #6
Custom field #7
Custom field #8
Custom field #9
Custom field #10
A list of tags
Responses
- 201
- 400
- 401
Object was created successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
response
object
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {
"id": 0
}
}
{
"code": 201,
"status": "OK",
"message": "",
"details": {},
"response": {
"id": 1234
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}