Bill Payments
Create bill payment with allocations
Create a bill payment with embedded allocations in a single atomic operation.
This endpoint follows the same pattern as invoice payments and vendor refund payments,
where allocations are embedded in the payment creation request.
**Key Features:**
- Atomic operation - all or nothing
- Comprehensive validation
- Support for multiple bill allocations
- Idempotency support via `Idempotency-Key` header
**Idempotency:**
Include an `Idempotency-Key` header to ensure the same request isn't processed twice.
If the same key is used again, the original response will be returned.
**Example Request:**
```json
{
"vendor_id": "uuid",
"amount_cents": 100000,
"payment_method": "bank_transfer",
"payment_date": "2025-01-15",
"allocations": [
{
"bill_id": "uuid",
"amount_cents": 60000,
"description": "Partial payment for Bill #123"
},
{
"bill_id": "uuid",
"amount_cents": 40000,
"description": "Full payment for Bill #124"
}
]
}
```
post/v1/platform/businesses/{business_id}/bills/payments/
Request
- Base URLhttps://docs.thredfi.com (the document declares no server; this is the origin it was published from)
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP basic
- or HTTP bearer
- or HTTP bearer
Path parameters
business_idstring uuid required
Business UUID
Headers
Idempotency-Keystring
Unique key for idempotent request processing
Request body
Response
Changes
No recorded changes to this operation across all 1 revision of this API.