Vendor Credit Applications
Applies a vendor credit to bills
Changed onAllocates an existing vendor credit balance against specific open bills, reducing net amounts payable similar to a targeted vendor payment. Use after reviewing retrieve-a-vendor-credit so you apply only the remaining unapplied balance.
post/vendor-credits/{vendor_credit_id}/applications
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
vendor_credit_idstring uuid required
UUID of the vendor credit to be used in this operation.
Request body
Example request
{
"applications": [
{
"amount": {
"amount": "1.01",
"currency": "USD"
}
}
]
}Response
OK
Example response
{
"credit_number": "VC-001",
"line_items": [
{
"account_code": "11112",
"amount": {
"amount": "1.01",
"currency": "USD"
},
"tax_rate": {
"percentage": "0",
"tax_amount": {
"amount": "1.01",
"currency": "USD"
},
"country": "US"
},
"net_amount": {
"amount": "1.01",
"currency": "USD"
},
"tax_amount": {
"amount": "1.01",
"currency": "USD"
}
}
],
"amount": {
"amount": "1.01",
"currency": "USD"
},
"applied_amount": {
"amount": "1.01",
"currency": "USD"
},
"remaining_amount": {
"amount": "1.01",
"currency": "USD"
},
"applications": [
{
"amount": {
"amount": "1.01",
"currency": "USD"
}
}
]
}Changes
- 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 - 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
- breaking