Update bill
Updates a bill by ID.
Request
- Base URL: https://api-sandbox.payabli.com/api
- URL: https://api-sandbox.payabli.com/api/Bill/{idBill}
- Auth: HTTP bearer
Path parameters
Payabli ID for the bill. Get this ID by querying /api/Query/bills/ for the entrypoint or the organization.
Request body
Optional custom field.
Optional custom field.
Custom dictionary of key:value pairs. You can use this field to store any data related to the object or for your system. If you are using custom identifiers, pass those in this object. Max length for a value is 100 characters.
{
"additionalData": {
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
}
Date of bill. Send the date in YYYY-MM-DD format. The API also accepts ISO 8601 date-time values but keeps only the date.
Unique identifier for the bill. Required when adding a bill.
Any comment or description.
Discount amount applied to the bill.
Due date of bill. Send the date in YYYY-MM-DD format. The API also accepts ISO 8601 date-time values but keeps only the date.
End date for scheduled bills. Applied only in Mode = 1. Accepted formats: YYYY-MM-DD, MM/DD/YYYY.
Frequency for operation. The firstofmonth, fifteenthofmonth, and endofmonth values are only valid on subscriptions — they aren't accepted by other endpoints (such as invoice scheduling) that use this enum.
Lot number associated with the bill.
Bill mode: value 0 for one-time bills, 1 for scheduled bills.
Net amount owed in bill. Required when adding a bill.
The bill's status. Values are:
- -99: deleted or canceled
- 1: Active
- 2: Sent to approval
- 5: Partially approved
- 11: Rejected
- 20: Approved
- 50: Payment in transit
- 75: Partially paid
- 100: Paid
Payment terms for invoice. If no terms are defined, then response data for this field defaults to NET30.
Total amount of the bill.
Response
Success
Code for the response. Learn more in API Response Codes.
Auxiliary validation used internally by payment pages and components.
Field not in use on this endpoint. It always returns 0.
Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.
Response text for operation: 'Success' or 'Declined'.
If isSuccess = true, this contains the bill identifier. If isSuccess = false, this contains the reason for the error.
Changes
No recorded changes to this operation across all 1 revision of this API.