curl --request POST \
--url https://app.equated.co/api/documents/{id}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transactionId": 1,
"amount": "<string>",
"resolveWithAdjustment": true
}
'import requests
url = "https://app.equated.co/api/documents/{id}/payments"
payload = {
"transactionId": 1,
"amount": "<string>",
"resolveWithAdjustment": True
}
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({transactionId: 1, amount: '<string>', resolveWithAdjustment: true})
};
fetch('https://app.equated.co/api/documents/{id}/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://app.equated.co/api/documents/{id}/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([
'transactionId' => 1,
'amount' => '<string>',
'resolveWithAdjustment' => true
]),
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://app.equated.co/api/documents/{id}/payments"
payload := strings.NewReader("{\n \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\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://app.equated.co/api/documents/{id}/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.equated.co/api/documents/{id}/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 \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\n}"
response = http.request(request)
puts response.read_body{
"actionRequestId": "<string>",
"status": "<string>",
"changed": true,
"result": {
"journalEntryIds": [
1
],
"documentRelationIds": [
1
],
"deletedJournalEntryIds": [
1
],
"voidedJournalEntryIds": [
1
]
},
"error": "<string>"
}Apply a payment transaction to a confirmed bill
Bills only. Records a settlement allocation linking a payment transaction to a POSTED bill. Applying posts the payment if it’s a draft (attach = confirm) and relieves its whole non-bank side onto the bill’s accrual AP account with a reversible reclass correction — DRAFT or POSTED alike, no unconfirm needed; a split payment collapses onto AP. Unapplying deletes that correction and restores the payment’s categorization; a linked transaction cannot be edited until unlinked. The allocation is derived from the payment (same-currency = the payment amount; cross-currency = posting base at the bill’s accrual rate, optional guarded amount override). Each link may create its own realized-FX SYSTEM journal entry; resolveWithAdjustment books the remaining outstanding as a vendor-credit adjustment and closes the bill. Audited as an action_request.
curl --request POST \
--url https://app.equated.co/api/documents/{id}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transactionId": 1,
"amount": "<string>",
"resolveWithAdjustment": true
}
'import requests
url = "https://app.equated.co/api/documents/{id}/payments"
payload = {
"transactionId": 1,
"amount": "<string>",
"resolveWithAdjustment": True
}
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({transactionId: 1, amount: '<string>', resolveWithAdjustment: true})
};
fetch('https://app.equated.co/api/documents/{id}/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://app.equated.co/api/documents/{id}/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([
'transactionId' => 1,
'amount' => '<string>',
'resolveWithAdjustment' => true
]),
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://app.equated.co/api/documents/{id}/payments"
payload := strings.NewReader("{\n \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\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://app.equated.co/api/documents/{id}/payments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.equated.co/api/documents/{id}/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 \"transactionId\": 1,\n \"amount\": \"<string>\",\n \"resolveWithAdjustment\": true\n}"
response = http.request(request)
puts response.read_body{
"actionRequestId": "<string>",
"status": "<string>",
"changed": true,
"result": {
"journalEntryIds": [
1
],
"documentRelationIds": [
1
],
"deletedJournalEntryIds": [
1
],
"voidedJournalEntryIds": [
1
]
},
"error": "<string>"
}Authorizations
API token issued from the Equated app under Settings → API Tokens.
Path Parameters
x > 0