Send bill for approval

Send a bill to a user or list of users to approve.

Path parameters

idBillintegerRequired

Payabli ID for the bill. Get this ID by querying /api/Query/bills/ for the entrypoint or the organization.

Headers

requestTokenstringRequired
idempotencyKeystringOptional

Optional but recommended A unique ID that you can include to prevent duplicating objects or transactions in the case that a request is sent more than once. This key isn’t generated in Payabli, you must generate it yourself.

Query parameters

autocreateUserbooleanOptionalDefaults to false
Automatically create the target user for approval if they don't exist.

Request

This endpoint expects a list of strings.

Response

Success
responseCodeinteger or null

Code for the response. Learn more in API Response Codes.

pageIdentifierstring or null
Auxiliary validation used internally by payment pages and components.
roomIdlong or null

Field not in use on this endpoint. It always returns 0.

isSuccessboolean or null

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

responseTextstring or null

Response text for operation: ‘Success’ or ‘Declined’.

responseDatastring or integer or null

If isSuccess = true, this contains the bill identifier. If isSuccess = false, this contains the reason for the error.

Errors