Bills
Number of items to return
100Cursor for forward pagination
Cursor for backward pagination
Filter by vendor ID
Filter by bill status (draft, needs_approval, processing, paid, deleted, failed)
Filter by bill number
Filter by bill source (manual, quickbooks, ocr)
Include soft-deleted bills
OK
gaFpxBACEaXBVABEYbHG+X9LyLnHtruegaFpxBACEaXBVABEYbHG+X9LyLnHGET /bills HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
{
"data": [
{
"amount": 1,
"created_at": "text",
"description": "text",
"due_date": "text",
"id": "text",
"issue_date": "text",
"last_status": {
"created_at": "text",
"reason": "text",
"status": "draft",
"user_id": "text"
},
"line_items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"sequence": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"number": "text",
"pay_date": "text",
"source": "manual",
"status": "draft",
"updated_at": "text",
"vendor_id": "text",
"vendor_payments": [
{
"attempt_number": 1,
"estimated_arrival_date": "text",
"failure_reason": "text",
"hold_until": "text",
"id": "text",
"payment_method_id": "text",
"payment_speed": "standard",
"sent_at": "text",
"status": "hold"
}
]
}
],
"end_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH",
"has_next_page": true,
"has_previous_page": false,
"start_cursor": "gaFpxBACEaXBVABEYbHG+X9LyLnH"
}Bill creation request
Created
Bill details
Bill source enum
Bill status enum
Bad Request
Unprocessable Entity
POST /bills HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"amount": 1,
"description": "text",
"due_date": "text",
"issue_date": "text",
"line_items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"number": "text",
"status": "text",
"vendor_id": "text"
}{
"amount": 1,
"created_at": "text",
"description": "text",
"due_date": "text",
"id": "text",
"issue_date": "text",
"last_status": {
"created_at": "text",
"reason": "text",
"status": "draft",
"user_id": "text"
},
"line_items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"sequence": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"number": "text",
"pay_date": "text",
"source": "manual",
"status": "draft",
"updated_at": "text",
"vendor_id": "text",
"vendor_payments": [
{
"attempt_number": 1,
"estimated_arrival_date": "text",
"failure_reason": "text",
"hold_until": "text",
"id": "text",
"payment_method_id": "text",
"payment_speed": "standard",
"sent_at": "text",
"status": "hold"
}
]
}Bill ID
OK
Bill details
Bill source enum
Bill status enum
Not Found
GET /bills/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"amount": 1,
"created_at": "text",
"description": "text",
"due_date": "text",
"id": "text",
"issue_date": "text",
"last_status": {
"created_at": "text",
"reason": "text",
"status": "draft",
"user_id": "text"
},
"line_items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"sequence": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"number": "text",
"pay_date": "text",
"source": "manual",
"status": "draft",
"updated_at": "text",
"vendor_id": "text",
"vendor_payments": [
{
"attempt_number": 1,
"estimated_arrival_date": "text",
"failure_reason": "text",
"hold_until": "text",
"id": "text",
"payment_method_id": "text",
"payment_speed": "standard",
"sent_at": "text",
"status": "hold"
}
]
}Bill ID
OK
Bill deletion result
Not Found
Conflict
DELETE /bills/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"bill_id": "text",
"success": true
}Bill ID
Bill patch request (partial update)
OK
Bill details
Bill source enum
Bill status enum
Bad Request
Not Found
Conflict
PATCH /bills/{id} HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 260
{
"amount": 1,
"description": "text",
"due_date": "text",
"issue_date": "text",
"line_items": {
"items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"replace": true
},
"vendor_id": "text"
}{
"amount": 1,
"created_at": "text",
"description": "text",
"due_date": "text",
"id": "text",
"issue_date": "text",
"last_status": {
"created_at": "text",
"reason": "text",
"status": "draft",
"user_id": "text"
},
"line_items": [
{
"description": "text",
"expense_account_id": "text",
"name": "text",
"quantity": 1,
"sequence": 1,
"tax": 1,
"total": 1,
"unit_price": 1,
"unit_type": "text"
}
],
"number": "text",
"pay_date": "text",
"source": "manual",
"status": "draft",
"updated_at": "text",
"vendor_id": "text",
"vendor_payments": [
{
"attempt_number": 1,
"estimated_arrival_date": "text",
"failure_reason": "text",
"hold_until": "text",
"id": "text",
"payment_method_id": "text",
"payment_speed": "standard",
"sent_at": "text",
"status": "hold"
}
]
}Bill ID
OK
Bill document download details
Not Found
GET /bills/{id}/document HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"download_url": "text",
"filename": "text",
"mime_type": "text"
}Bill ID
Pay date update request
OK
Pay date update result
Bad Request
Not Found
Conflict
POST /bills/{id}/pay-date HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"pay_date": "text"
}{
"bill_id": "text"
}Bill ID
Bill rejection request
OK
Bill rejection result
Bad Request
Not Found
Conflict
POST /bills/{id}/reject HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"reason": "text"
}{
"bill_id": "text"
}Bill ID
OK
Bill submission result
Not Found
Conflict
POST /bills/{id}/submit HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"bill_id": "text",
"success": true
}Bulk bill deletion request
OK
Bulk operation results
Bad Request
POST /bills/bulk-delete HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"bill_ids": [
"text"
]
}{
"results": [
{
"bill_id": "text",
"error_reason": "text",
"success": true
}
]
}Bulk bill submission request
OK
Bulk operation results
Bad Request
POST /bills/bulk-submit HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"bill_ids": [
"text"
]
}{
"results": [
{
"bill_id": "text",
"error_reason": "text",
"success": true
}
]
}Bill document upload request
Created
Bill upload result with OCR data
Bad Request
POST /bills/upload HTTP/1.1
Host: public-api.alternativepayments.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"content": "text",
"content_type": "text",
"filename": "text"
}{
"bill_id": "text",
"bill_number": "text",
"document_path": "text",
"extracted_data": {
"description": "text",
"due_date": "text",
"invoice_number": "text",
"issue_date": "text",
"line_items": [
{
"description": "text",
"name": "text",
"quantity": 1,
"total": 1,
"unit_price": 1
}
],
"total": 1,
"vendor_email": "text",
"vendor_name": "text"
},
"warnings": [
"text"
]
}Last updated
Was this helpful?
