Creates a bill
Changed onAccrues a new accounts-payable bill against a vendor with subsidiary context, line items, and due dates your approval workflow consumes. Attach supporting metadata now so matching payments, amortization schedules, and document uploads stay aligned with the payable.
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"expense_number": "B123",
"items": [
{
"description": "API Bill",
"account_code": "11112",
"amount": {
"amount": "1.01",
"currency": "USD"
},
"tax_rate": {
"percentage": "0",
"tax_amount": {
"amount": "1.01",
"currency": "USD"
},
"country": "US"
}
}
],
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
],
"exchange_rate": {
"base": "USD",
"target": "USD"
}
}Response
The bill was created; approval details are populated when approval is required
Example response
{
"expense_number": "B123",
"items": [
{
"description": "API Bill",
"account_code": "11112",
"amount": {
"amount": "1.01",
"currency": "USD"
},
"tax_rate": {
"percentage": "0",
"tax_amount": {
"amount": "1.01",
"currency": "USD"
},
"country": "US"
}
}
],
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
],
"exchange_rate": {
"base": "USD",
"target": "USD"
}
}Changes
- breaking
the
///////////request property type changed fromnumbertostring, and format from no format tonumber - breaking
the
///////////////response's property type changed fromnumbertostring, and format from no format tonumberfor status - breaking
the
////////////////response's property type changed fromnumbertostring, and format from no format tonumberfor status - warning
added the new
DRAFTenum value to the/response property for the response status - info
added the new optional request property
- info
added the optional property
////to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking