POST
/
Bill
/
approval
/
{idBill}

Authorizations

requestToken
string
header
required

Most endpoints require an organization token. Some endpoints require an application token, and those endpoints are noted.

Headers

idempotencyKey
string

A unique ID you can include to prevent duplicating objects or transactions if a request is sent more than once. This key is not generated in Payabli, you must generate it yourself.

Path Parameters

idBill
integer
required

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

Query Parameters

autocreateUser
boolean
default:
false

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

Body

The body is of type string[].

Response

200 - application/json
isSuccess
boolean

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

pageidentifier
string | null

Auxiliary validation used internally by payment pages and components.

responseCode
integer | null

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

responseData

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

responseText
string | null

Response text for operation: 'Success' or 'Declined'.