latestOpenAPI 3.0.02026-08-10233809957.8 KB
5cdfae3fa1fa
Bills
Update a Bill
Supported for:
quickbooks xero oracleNetsuite sageBusinessCloud sageIntacct myob
put/v2/accounting/bills/{id}
Path parameters
idstring required
Request body
Example request
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"data": {
"vendorInvoiceNumber": "254",
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"currencyRate": 1.13,
"memo": "Example bill memo.",
"vendorRef": {
"id": "130"
},
"currency": "CAD",
"subsidiaryRefs": [
{
"id": "4"
}
],
"lines": [
{
"description": "Services rendered.",
"unitAmount": 50.5,
"quantity": 202,
"billableStatus": "notBillable",
"customerRef": {
"id": "124"
},
"id": "8a3fdcc9-83eb-4fdd-83e0-52ec1b40b072",
"accountRef": {
"id": "200"
},
"trackingCategoryRefs": [
{
"id": "4040",
"type": "class"
}
],
"discountPercentage": 100.5,
"inventoryRef": {
"id": "32"
},
"taxRateRef": {
"id": "12"
},
"taxAmount": 20.5
}
],
"purchaseOrderRefs": [
{
"id": "21"
}
],
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"billType": "item"
}
}Response
Example response
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"businessName": "Railz",
"serviceName": "xero",
"pushCommunicationId": "60473b57f0cdd1683ca71f60",
"requestedOn": "2021-03-09T08:15:22.035Z",
"status": "pending",
"data": {
"vendorInvoiceNumber": "254",
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"currencyRate": 1.13,
"memo": "Example bill memo.",
"vendorRef": {
"id": "130"
},
"currency": "CAD",
"subsidiaryRefs": [
{
"id": "4"
}
],
"lines": [
{
"description": "Services rendered.",
"unitAmount": 50.5,
"quantity": 202,
"billableStatus": "notBillable",
"customerRef": {
"id": "124"
},
"id": "8a3fdcc9-83eb-4fdd-83e0-52ec1b40b072",
"accountRef": {
"id": "200"
},
"trackingCategoryRefs": [
{
"id": "4040",
"type": "class"
}
],
"discountPercentage": 100.5,
"inventoryRef": {
"id": "32"
},
"taxRateRef": {
"id": "12"
},
"taxAmount": 20.5
}
],
"purchaseOrderRefs": [
{
"id": "21"
}
],
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"billType": "item"
}
}