latestOpenAPI 3.0.02026-08-10233809957.8 KB
5cdfae3fa1fa
Invoices
Creates an individual invoice for a business.
post/invoices
Request body
Example request
{
"connection": {
"businessName": "Railz",
"serviceName": "quickbooks"
},
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"invoiceNumber": "INV-10546",
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"currency": "CAD",
"currencyRate": 1.13,
"memo": "Example invoice memo.",
"customerRef": "132",
"lines": [
{
"description": "Services rendered.",
"quantity": 3,
"inventoryRef": "240",
"locationRef": "3",
"accountRef": "145",
"discountPercentage": 30,
"subTotal": 301.5,
"totalAmount": 322,
"unitAmount": 100.5,
"taxAmount": 20.5,
"taxRef": "24"
}
]
}
}Response
Example response
{
"pushCommunicationId": "60473b57f0cdd1683ca71f60",
"requestedOn": "2021-03-09T08:15:22.035Z",
"status": "pending",
"businessName": "Railz",
"serviceName": "quickbooks",
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"invoiceNumber": "INV-10546",
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"currency": "CAD",
"currencyRate": 1.13,
"memo": "Example invoice memo.",
"customerRef": "132",
"lines": [
{
"description": "Services rendered.",
"quantity": 3,
"inventoryRef": "240",
"locationRef": "3",
"accountRef": "145",
"discountPercentage": 30,
"subTotal": 301.5,
"totalAmount": 322,
"unitAmount": 100.5,
"taxAmount": 20.5,
"taxRef": "24"
}
]
}
}