Security
oauth2ClientCredentials(Required scopes: bills:write)
Selected team. The middleware derives budget_owner from its reviewers/employees before forwarding.
Budget ObjectId(s) this bill is assigned to (upstream stores budget: [ObjectId])
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/bills/{billId}
- Productionhttps://api.boyahq.com/v2/bills/{billId}
- Sandboxhttps://sandbox.api.boyahq.com/v2/bills/{billId}
curl -i -X PATCH \
'https://developer.boyahq.com/_mock/v2/openapi/bills/{billId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-H 'org_wallet_ref: string' \
-d '{
"invoice_no": "INV-001",
"invoice_amount": 12000,
"status": "draft",
"supplier": {},
"budget_owner": {},
"team": {},
"payments": [
"string"
],
"attachments": [
"string"
],
"withholding_taxes": [
"string"
],
"description": "Consulting services - June",
"due_date": "2026-06-30",
"budget": [
"string"
],
"is_draft": true,
"category": "string",
"category_code": "string",
"paid_amount": 0,
"send_on": "string",
"currency": "KES",
"wallet_currency": "KES",
"original_currency": "KES",
"tags": [
"string"
],
"fx_rate": 129.5
}'