Accounts Payable API Reference
Last updated
Was this helpful?
API Version: v1.2.0
The Accounts Payable API extends the existing Alternative Payments Partner API with endpoints for managing vendors, bills, and outbound payments. Partners can programmatically create vendors, submit bills for approval, initiate payments to vendors, and track the full bill-to-payment lifecycle.
All endpoints follow the same conventions as the existing Accounts Receivable API: OAuth2 client credentials authentication, cursor-based pagination, snake_case JSON, idempotency keys on mutating operations, and standard error responses.
https://public-api.alternativepayments.ioSame OAuth2 client credentials flow as the AR API. Authenticate with your API key and secret to /oauth/token, then use the returned Bearer token for all requests.
All list endpoints use cursor-based pagination:
limit
integer
Items per page (default 100)
after
string
Forward pagination cursor
before
string
Backward pagination cursor
Response includes:
Include an Idempotency-Key header on POST requests that create resources or initiate payments. The key must be a UUID. Duplicate requests with the same key return the original response.
All JSON fields use snake_case
All IDs are UUID strings
All dates use RFC3339 format
All monetary amounts are decimal strings (e.g., "1500.00")
Last updated
Was this helpful?
Was this helpful?
{
"data": [...],
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "abc123",
"end_cursor": "xyz789"
}{
"code": "BILL_NOT_FOUND",
"message": "Bill with ID xyz not found",
"validation_errors": {}
}
