Move a bill payment
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_bill_id": 812,
"amount": 250
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move"
payload = {
"target_bill_id": 812,
"amount": 250
}
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({target_bill_id: 812, amount: 250})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move', 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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move",
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([
'target_bill_id' => 812,
'amount' => 250
]),
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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move"
payload := strings.NewReader("{\n \"target_bill_id\": 812,\n \"amount\": 250\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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"target_bill_id\": 812,\n \"amount\": 250\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move")
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 \"target_bill_id\": 812,\n \"amount\": 250\n}"
response = http.request(request)
puts response.read_body{
"source_bill": {},
"target_bill": {}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Bill Payments
Move a bill payment
Move all or part of a recorded payment from one bill to another bill of the same vendor.
A payment is a booked fact, so it is reversed rather than rewritten: the source payment is voided, any remainder is recorded back on the source bill as a new payment, and the moved amount is recorded on the target bill as a new payment. The new payments keep the original’s dates, reference, notes and exchange rate. The GL and QuickBooks follow the normal void and record-payment paths. Both bills log a “payment moved” event.
Refusals (422)
- The target is the same bill (
The payment is already on this bill.) - Either bill is managed by a connected bill-pay platform — move the payment in the platform
- The payment was made in a connected bill-pay platform, or is not a manually recorded payment (e.g. ACH) — only manual payments can be moved
- The payment is voided or not applied
- The payment falls in a closed accounting period
- The target bill belongs to a different vendor, or is in a different currency from the payment
- The target bill is a draft, cancelled, or on hold / disputed
amountis not greater than zero, exceeds the payment amount, or exceeds the target bill’s outstanding amount; or the target bill has no remaining balance
POST
/
bills
/
{id}
/
payments
/
{paymentId}
/
move
Move a bill payment
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_bill_id": 812,
"amount": 250
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move"
payload = {
"target_bill_id": 812,
"amount": 250
}
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({target_bill_id: 812, amount: 250})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move', 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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move",
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([
'target_bill_id' => 812,
'amount' => 250
]),
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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move"
payload := strings.NewReader("{\n \"target_bill_id\": 812,\n \"amount\": 250\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://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"target_bill_id\": 812,\n \"amount\": 250\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/bills/{id}/payments/{paymentId}/move")
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 \"target_bill_id\": 812,\n \"amount\": 250\n}"
response = http.request(request)
puts response.read_body{
"source_bill": {},
"target_bill": {}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Path Parameters
Body
application/json