API Documentation
DocumentsEdit Document
Method: /documents/[id].[format]
Document Fields:
| Name: | Data Type: | Description: | 
| customer_id | String | Customer ID | 
| context_id | String | Determines if it’s an estimate, invoice, or PO | 
| total_cost | String | Total cost of all items added to the document | 
| total_tax | String | Total amount of tax (tax1) to be added to subtotal | 
| total_tax2 | String | Total amount of tax (tax2) to be added to subtotal | 
| total_price | String | The subtotal of all items without taxes added | 
| issue_date | String | The date this document was issued (in YYYY-MM-DD format) | 
| shipping_address | String | This is used when the shipping address is different than the mailing address | 
Document Item Fields:
| Name | Data Type | Description | 
| item_id | String | Item ID | 
| description | String | Used for overriding the items actual description | 
| quantity | String | The number of items added to this document | 
| tax | String | Tax 1 rate for this item | 
| tax2 | String | Tax 2 rate for this item | 
| cost | String | The cost per unit | 
| price | String | The price you’re selling each unit for | 
Success:
If you have been successful in updating a document, the response will return the updated data object along with a “message” value of “Saved” as seen below.