Updates a vendor credit
Changed onIMPORTANT: This is a full-replace operation (PUT semantics). All fields must be included in the request body — omitting any field will set it to null, wiping existing data. Always call retrieve-a-vendor-credit first to fetch the current record, then include ALL existing fields in your update request along with your changes.
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
UUID of the vendor credit to be used in this operation.
Request body
Example request
{
"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"
}
}
]
}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
///////////////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 - 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