curl --request POST \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"currency": "GBP",
"payment_method": "bank_transfer",
"payment_date": "2023-12-25",
"payment_reference": "<string>",
"check_number": "<string>",
"description": "<string>",
"memo": "<string>",
"processing_fee_cents": 0,
"external_id": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"description": "<string>"
}
]
}
'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/"
payload = {
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"currency": "GBP",
"payment_method": "bank_transfer",
"payment_date": "2023-12-25",
"payment_reference": "<string>",
"check_number": "<string>",
"description": "<string>",
"memo": "<string>",
"processing_fee_cents": 0,
"external_id": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"description": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount_cents: 2,
currency: 'GBP',
payment_method: 'bank_transfer',
payment_date: '2023-12-25',
payment_reference: '<string>',
check_number: '<string>',
description: '<string>',
memo: '<string>',
processing_fee_cents: 0,
external_id: '<string>',
metadata: '<unknown>',
allocations: [
{
bill_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount_cents: 2,
description: '<string>'
}
]
})
};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount_cents' => 2,
'currency' => 'GBP',
'payment_method' => 'bank_transfer',
'payment_date' => '2023-12-25',
'payment_reference' => '<string>',
'check_number' => '<string>',
'description' => '<string>',
'memo' => '<string>',
'processing_fee_cents' => 0,
'external_id' => '<string>',
'metadata' => '<unknown>',
'allocations' => [
[
'bill_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount_cents' => 2,
'description' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/"
payload := strings.NewReader("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"payment_reference": "<string>",
"external_id": "<string>",
"processor_payment_id": "<string>",
"check_number": "<string>",
"amount_cents": 123,
"currency": "<string>",
"processing_fee_cents": 123,
"net_amount_cents": 123,
"allocated_amount_cents": 123,
"unallocated_amount_cents": 123,
"is_fully_allocated": true,
"payment_method": "<string>",
"status": "<string>",
"payment_date": "2023-12-25",
"value_date": "2023-12-25",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"memo": "<string>",
"failure_reason": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"bill_status": "<string>",
"amount_cents": 123,
"allocation_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"payment_reference": "<string>",
"external_id": "<string>",
"processor_payment_id": "<string>",
"check_number": "<string>",
"amount_cents": 123,
"currency": "<string>",
"processing_fee_cents": 123,
"net_amount_cents": 123,
"allocated_amount_cents": 123,
"unallocated_amount_cents": 123,
"is_fully_allocated": true,
"payment_method": "<string>",
"status": "<string>",
"payment_date": "2023-12-25",
"value_date": "2023-12-25",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"memo": "<string>",
"failure_reason": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"bill_status": "<string>",
"amount_cents": 123,
"allocation_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}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-Keyheader
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:
{
"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"
}
]
}
curl --request POST \
--url https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"currency": "GBP",
"payment_method": "bank_transfer",
"payment_date": "2023-12-25",
"payment_reference": "<string>",
"check_number": "<string>",
"description": "<string>",
"memo": "<string>",
"processing_fee_cents": 0,
"external_id": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"description": "<string>"
}
]
}
'import requests
url = "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/"
payload = {
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"currency": "GBP",
"payment_method": "bank_transfer",
"payment_date": "2023-12-25",
"payment_reference": "<string>",
"check_number": "<string>",
"description": "<string>",
"memo": "<string>",
"processing_fee_cents": 0,
"external_id": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 2,
"description": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount_cents: 2,
currency: 'GBP',
payment_method: 'bank_transfer',
payment_date: '2023-12-25',
payment_reference: '<string>',
check_number: '<string>',
description: '<string>',
memo: '<string>',
processing_fee_cents: 0,
external_id: '<string>',
metadata: '<unknown>',
allocations: [
{
bill_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount_cents: 2,
description: '<string>'
}
]
})
};
fetch('https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount_cents' => 2,
'currency' => 'GBP',
'payment_method' => 'bank_transfer',
'payment_date' => '2023-12-25',
'payment_reference' => '<string>',
'check_number' => '<string>',
'description' => '<string>',
'memo' => '<string>',
'processing_fee_cents' => 0,
'external_id' => '<string>',
'metadata' => '<unknown>',
'allocations' => [
[
'bill_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount_cents' => 2,
'description' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/"
payload := strings.NewReader("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev-backend.thredfi.com/v1/platform/businesses/{business_id}/bills/payments/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"currency\": \"GBP\",\n \"payment_method\": \"bank_transfer\",\n \"payment_date\": \"2023-12-25\",\n \"payment_reference\": \"<string>\",\n \"check_number\": \"<string>\",\n \"description\": \"<string>\",\n \"memo\": \"<string>\",\n \"processing_fee_cents\": 0,\n \"external_id\": \"<string>\",\n \"metadata\": \"<unknown>\",\n \"allocations\": [\n {\n \"bill_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount_cents\": 2,\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"payment_reference": "<string>",
"external_id": "<string>",
"processor_payment_id": "<string>",
"check_number": "<string>",
"amount_cents": 123,
"currency": "<string>",
"processing_fee_cents": 123,
"net_amount_cents": 123,
"allocated_amount_cents": 123,
"unallocated_amount_cents": 123,
"is_fully_allocated": true,
"payment_method": "<string>",
"status": "<string>",
"payment_date": "2023-12-25",
"value_date": "2023-12-25",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"memo": "<string>",
"failure_reason": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"bill_status": "<string>",
"amount_cents": 123,
"allocation_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"payment_reference": "<string>",
"external_id": "<string>",
"processor_payment_id": "<string>",
"check_number": "<string>",
"amount_cents": 123,
"currency": "<string>",
"processing_fee_cents": 123,
"net_amount_cents": 123,
"allocated_amount_cents": 123,
"unallocated_amount_cents": 123,
"is_fully_allocated": true,
"payment_method": "<string>",
"status": "<string>",
"payment_date": "2023-12-25",
"value_date": "2023-12-25",
"submitted_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"memo": "<string>",
"failure_reason": "<string>",
"metadata": "<unknown>",
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_bill_number": "<string>",
"bill_status": "<string>",
"amount_cents": 123,
"allocation_date": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}
],
"vendor_refund_allocations": [
{
"vendor_refund_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"allocated_at": "2023-11-07T05:31:56Z",
"reference_number": "<string>"
}
],
"reconciled_bank_transactions": [
{
"bank_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_transaction_date": "2023-11-07T05:31:56Z",
"bank_transaction_amount_cents": 123,
"bank_transaction_direction": "<string>",
"reconciled_amount_cents": 123,
"reconciliation_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reconciled_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"payment_type": "<string>",
"bank_account_name": "<string>",
"notes": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}{
"error_code": "<string>",
"message": "<string>",
"detail": {},
"request_id": "<string>"
}Authorizations
Body
Serializer for creating bill payments with allocations.
This follows the same pattern as vendor refund payments and invoice payments, where allocations are embedded in the payment creation request.
Payment method: bank_transfer, ach, wire, check, credit_card, cash, or other
bank_transfer- bank_transferach- achwire- wirecheck- checkcredit_card- credit_cardcash- cashother- other
bank_transfer, ach, wire, check, credit_card, cash, other Response
Detailed response serializer for bill payment with all related data.
Returns payment details along with vendor info and allocations. All amounts in cents.
Was this page helpful?