Acreum Docs
Payables

Payment runs

GET
/v1/payment-run-default-accounts

One row per active legal entity the caller may act on, sorted by name then id: the accounts it may pay a run from (its own, active, in its currency, with a linked GL cash account) and its default among them. A new payment run, manual or scheduled, pays each entity from its default, else from its only eligible account, else from none until one is chosen. A default that stopped being eligible reads as null. search matches the entity name.

Required scope: payment-runs:read

Pagination: cursor

Error codes: VALIDATION_FAILED, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

search?string

Case-insensitive substring match on the entity name.

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/payment-run-default-accounts'
{  "data": [    {      "currency_code": "string",      "default_bank_account_id": "6b1a369d-3d2d-42a7-bbbe-e6406a2848e0",      "eligible_account_count": 0,      "eligible_accounts": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "last4": "string",          "name": "string"        }      ],      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "legal_entity_name": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
PATCH
/v1/payment-run-default-accounts/{legalEntityId}

bank_account_id must be one of the entity's eligible accounts (its own, active, in its currency, with a linked GL cash account) — any other is refused with 422 PAYMENT_RUN_DEFAULT_ACCOUNT_NOT_ELIGIBLE. null clears the default and changes no run. A new default also fills, in the same transaction, the account of this entity on every draft run (any origin) that has none, one audit row per run; a draft with an account chosen, and any run past draft, keep theirs. drafts_updated says how many drafts took it; drafts_skipped how many were left alone (a run covering an entity the caller may not act on, or one the account cannot pay). New runs pay the entity from the default. Returns the entity’s row.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_DEFAULT_ACCOUNT_NOT_ELIGIBLE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

legalEntityId*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
bank_account_id*|

One of the entity's eligible_accounts, or null to clear the default.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/payment-run-default-accounts/string' \  -H 'Content-Type: application/json' \  -d '{  "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff"}'
{  "data": {    "currency_code": "string",    "default_bank_account_id": "6b1a369d-3d2d-42a7-bbbe-e6406a2848e0",    "drafts_skipped": 0,    "drafts_updated": 0,    "eligible_account_count": 0,    "eligible_accounts": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "last4": "string",        "name": "string"      }    ],    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "legal_entity_name": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-run-schedules

Sorted by name, then id. search matches the name. legal_entity_id and entity_group_id take lists (repeat or comma-separate); a schedule matches when its scope includes any of them — an entity listed directly or as a current member of one of its groups, or one of its groups. A caller restricted to some legal entities sees a schedule only when every entity in its scope and every current member of its groups is allowed, and may filter only by allowed entities. Each active schedule carries overlaps_with: the other active schedules it competes with for bills (spec D16) — null id and name for one the caller may not see — computed for the whole page in one read.

Required scope: payment-runs:read

Pagination: cursor

Error codes: VALIDATION_FAILED, INVALID_CURSOR, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

search?string

Case-insensitive substring match on the schedule name.

status?string
Value in"active""paused"
legal_entity_id?array<>

Legal entities. Repeat or comma-separate. A schedule is listed when one of them is in its scope, listed or as a current member of one of its groups. Each must be in the caller’s scope.

entity_group_id?array<>

Payment groups. Repeat or comma-separate. A schedule is listed when one of them is in its scope.

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/payment-run-schedules'
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "days_of_month": [        "string"      ],      "entity_group_ids": [        "0bad8a98-3e20-47e6-b1ef-f13d01add047"      ],      "entity_groups": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "member_count": 0,          "name": "string"        }      ],      "extra_days": 0,      "frequency": "weekly",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_execution": {        "absorbed": true,        "bill_count": 0,        "created_at": "2019-08-24T14:15:22Z",        "dropped_entities": [          {            "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",            "name": "string",            "reason": "no_access"          }        ],        "entity_count": 0,        "error_code": "string",        "error_message": "string",        "generated_on": "2019-08-24",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "left_out_count": 0,        "missing": [          {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "kind": "entity_without_account",            "name": "string"          }        ],        "open_draft": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "run_number": "string"        },        "payment_date": "2019-08-24",        "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",        "result": "draft_ready",        "run_number": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",        "scheduled_for": "2019-08-24",        "total_amount": "1234.50",        "trigger": "scheduled",        "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",        "vendor_count": 0      },      "legal_entities": [        {          "currency_code": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        }      ],      "legal_entity_ids": [        "66349575-4160-4a79-b2da-3eb801e491dd"      ],      "memo_template": "string",      "name": "string",      "next_run_date": "2019-08-24",      "non_usd_legal_entity_ids": [        "81ad2e88-b107-4121-8254-6388a90e27db"      ],      "overlaps": [        {          "entity_ids": [            "63d5b391-6678-4b1c-88e0-89fe98dcf022"          ],          "name": "string",          "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",          "vendor_scope": {            "mode": "all",            "party_ids": [              "04f3f248-946d-4f63-a4b5-cb044a77f1e0"            ],            "vendors": [              {                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",                "name": "string"              }            ]          }        }      ],      "overlaps_with": [        {          "name": "string",          "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58"        }      ],      "owner_name": "string",      "owner_user_id": "65139110-7c3c-4777-b692-80c218be3b9d",      "payment_offset_days": 0,      "start_date": "2019-08-24",      "status": "active",      "updated_at": "2019-08-24T14:15:22Z",      "vendor_mode": "all",      "vendor_party_ids": [        "05d5c076-96dc-41ed-934b-098691c98bf2"      ],      "vendors": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        }      ],      "weekday": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/payment-run-schedules

The owner is owner_user_id, or the caller when omitted: runs are created in the owner's name. An API key has no user, so it must send owner_user_id (PAYMENT_RUN_SCHEDULE_USER_REQUIRED otherwise). The scope needs at least one legal entity or payment group (a consolidation group is refused with ENTITY_GROUP_WRONG_TYPE); the caller and the owner must be allowed every entity in it and every current member of its groups. weekday (0 = Sunday) serves weekly and biweekly, days_of_month ('1'–'28', 'last') monthly (one day) and twice_monthly (two); sending the other one is refused, naming it. Defaults: vendor_mode all, extra_days 0, payment_offset_days 1, status active. An active schedule gets next_run_date: the first run date on or after the org’s today and start_date. non_usd_legal_entity_ids warns about entities its USD runs will leave out.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, ENTITY_GROUP_WRONG_TYPE, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_SCHEDULE_OWNER_INVALID, PAYMENT_RUN_SCHEDULE_OWNER_OUT_OF_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, IDEMPOTENCY_KEY_REQUIRED, PAYMENT_RUN_SCHEDULE_USER_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
days_of_month?array<>

'1'–'28' or 'last': one for monthly, two different ones for twice_monthly; empty for weekly and biweekly.

entity_group_ids?array<>

Payment groups in scope (group_type = payment; a consolidation group is refused with ENTITY_GROUP_WRONG_TYPE). Each is resolved to its current members every time the schedule runs.

extra_days?number

Days past the next run date a bill may be due and still be paid now. Default 0.

Range0 <= value <= 30
frequency*string
Value in"weekly""biweekly""twice_monthly""monthly"
legal_entity_ids?array<>

Legal entities in scope. With entity_group_ids, at least one entity or group is required.

memo_template?|

The runs' memo; every {date} becomes the generation date in MM/DD/YYYY. Null or blank for none.

Lengthlength <= 500
name*string
Length1 <= length <= 120
owner_user_id?string

Whose name the runs act in (spec D8): a live member who may create payment runs and access the whole scope. Defaults to the caller; required for an API key.

Formatuuid
payment_offset_days?number

Business days from the run date to the payment date. Default 1.

Range0 <= value <= 30
start_date*string

No run before it; a biweekly schedule counts from it.

Formatdate
status?string

Default active. A paused schedule never runs.

Value in"active""paused"
vendor_mode?string

all (default) pays every vendor; only / except need vendor_party_ids.

Value in"all""only""except"
vendor_party_ids?array<>
weekday?|

0 (Sunday) to 6. Required for weekly and biweekly; null otherwise.

Range0 <= value <= 6

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-run-schedules' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "frequency": "weekly",  "name": "string",  "start_date": "2019-08-24"}'
{  "data": {    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "days_of_month": [      "string"    ],    "entity_group_ids": [      "0bad8a98-3e20-47e6-b1ef-f13d01add047"    ],    "entity_groups": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "member_count": 0,        "name": "string"      }    ],    "extra_days": 0,    "frequency": "weekly",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "last_execution": {      "absorbed": true,      "bill_count": 0,      "created_at": "2019-08-24T14:15:22Z",      "dropped_entities": [        {          "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",          "name": "string",          "reason": "no_access"        }      ],      "entity_count": 0,      "error_code": "string",      "error_message": "string",      "generated_on": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "left_out_count": 0,      "missing": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "entity_without_account",          "name": "string"        }      ],      "open_draft": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "run_number": "string"      },      "payment_date": "2019-08-24",      "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",      "result": "draft_ready",      "run_number": "string",      "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",      "scheduled_for": "2019-08-24",      "total_amount": "1234.50",      "trigger": "scheduled",      "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",      "vendor_count": 0    },    "legal_entities": [      {        "currency_code": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "legal_entity_ids": [      "66349575-4160-4a79-b2da-3eb801e491dd"    ],    "memo_template": "string",    "name": "string",    "next_run_date": "2019-08-24",    "non_usd_legal_entity_ids": [      "81ad2e88-b107-4121-8254-6388a90e27db"    ],    "overlaps": [      {        "entity_ids": [          "63d5b391-6678-4b1c-88e0-89fe98dcf022"        ],        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",        "vendor_scope": {          "mode": "all",          "party_ids": [            "04f3f248-946d-4f63-a4b5-cb044a77f1e0"          ],          "vendors": [            {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "name": "string"            }          ]        }      }    ],    "overlaps_with": [      {        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58"      }    ],    "owner_name": "string",    "owner_user_id": "65139110-7c3c-4777-b692-80c218be3b9d",    "payment_offset_days": 0,    "start_date": "2019-08-24",    "status": "active",    "updated_at": "2019-08-24T14:15:22Z",    "vendor_mode": "all",    "vendor_party_ids": [      "05d5c076-96dc-41ed-934b-098691c98bf2"    ],    "vendors": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "weekday": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-run-schedules/preview

Takes a schedule as the editor holds it (saved or not): its scope, vendor and frequency fields plus extra_days and payment_offset_days, with the same validation and defaults as create. Answers with the run Generate now would build today: generated today, paying payment_offset_days business days later, taking the bills due before window_end (the run date after the next one, plus extra_days; a bill with no due date counts as due on its document date). The next one is, when schedule_id names a saved schedule, the next_run_date the body’s rule would get on save (the first run date on or after today while paused, or for a new schedule). Bills are taken oldest due first, at most 200, with left_out_count for the rest. A bill another run holds in part counts at what is still available; one held in full is not taken. Totals come per entity, with the account each would pay from (bank_account_is_default), the entities left out (non-USD, or not accessible to the caller) and what would keep the run in draft (missing). overlaps lists the active schedules it would compete with for bills: the body counts as active, and schedule_id is never compared with itself. Nothing is written.

Required scope: payment-runs:read

Error codes: VALIDATION_FAILED, ENTITY_GROUP_WRONG_TYPE, PAYMENT_RUN_SCHEDULE_GROUP_UNAVAILABLE, PAYMENT_RUN_SCHEDULE_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
days_of_month?array<>

'1'–'28' or 'last': one for monthly, two different ones for twice_monthly; empty for weekly and biweekly.

entity_group_ids?array<>

Payment groups in scope (group_type = payment; a consolidation group is refused with ENTITY_GROUP_WRONG_TYPE). Each is resolved to its current members every time the schedule runs.

extra_days?number

Days past the next run date a bill may be due and still be paid now. Default 0.

Range0 <= value <= 30
frequency*string
Value in"weekly""biweekly""twice_monthly""monthly"
legal_entity_ids?array<>

Legal entities in scope. With entity_group_ids, at least one entity or group is required.

owner_user_id?string

Whose name the runs act in (spec D8): a live member who may create payment runs and access the whole scope. Defaults to the caller; required for an API key.

Formatuuid
payment_offset_days?number

Business days from the run date to the payment date. Default 1.

Range0 <= value <= 30
schedule_id?string

The saved schedule being edited, if any. Its window then starts from the next_run_date the rule in this body would get on save — after its last scheduled run, so with the rule unchanged it is the stored date Generate now uses — or, while paused, from the first run date on or after today. Without it (a new schedule) the window starts from the first run date on or after today.

Formatuuid
start_date*string

No run before it; a biweekly schedule counts from it.

Formatdate
vendor_mode?string

all (default) pays every vendor; only / except need vendor_party_ids.

Value in"all""only""except"
vendor_party_ids?array<>
weekday?|

0 (Sunday) to 6. Required for weekly and biweekly; null otherwise.

Range0 <= value <= 6

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-run-schedules/preview' \  -H 'Content-Type: application/json' \  -d '{  "frequency": "weekly",  "start_date": "2019-08-24"}'
{  "data": {    "bill_count": 0,    "dropped_entities": [      {        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "name": "string",        "reason": "no_access"      }    ],    "entities": [      {        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "total_amount": "1234.50",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        }      }    ],    "entity_count": 0,    "generated_on": "2019-08-24",    "left_out_count": 0,    "missing": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "kind": "entity_without_account",        "name": "string"      }    ],    "next_payment_date": "2019-08-24",    "next_run_date": "2019-08-24",    "overlaps": [      {        "entity_ids": [          "63d5b391-6678-4b1c-88e0-89fe98dcf022"        ],        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",        "vendor_scope": {          "mode": "all",          "party_ids": [            "04f3f248-946d-4f63-a4b5-cb044a77f1e0"          ],          "vendors": [            {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "name": "string"            }          ]        }      }    ],    "payment_date": "2019-08-24",    "total_amount": "1234.50",    "vendor_count": 0,    "window_end": "2019-08-24"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-run-schedules/summary

Counts only the schedules the caller can see (the list’s all-entities rule).

Required scope: payment-runs:read

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/payment-run-schedules/summary'
{  "data": {    "active_count": 0,    "paused_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-run-schedules/{id}

With its entities, groups (current member counts), vendors, owner name and last execution, and overlaps: the other active schedules it competes with for bills (none while paused). A caller restricted to some legal entities gets 404 unless every entity in scope and every current member of its groups is allowed.

Required scope: payment-runs:read

Error codes: PAYMENT_RUN_SCHEDULE_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/payment-run-schedules/string'
{  "data": {    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "days_of_month": [      "string"    ],    "entity_group_ids": [      "0bad8a98-3e20-47e6-b1ef-f13d01add047"    ],    "entity_groups": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "member_count": 0,        "name": "string"      }    ],    "extra_days": 0,    "frequency": "weekly",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "last_execution": {      "absorbed": true,      "bill_count": 0,      "created_at": "2019-08-24T14:15:22Z",      "dropped_entities": [        {          "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",          "name": "string",          "reason": "no_access"        }      ],      "entity_count": 0,      "error_code": "string",      "error_message": "string",      "generated_on": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "left_out_count": 0,      "missing": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "entity_without_account",          "name": "string"        }      ],      "open_draft": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "run_number": "string"      },      "payment_date": "2019-08-24",      "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",      "result": "draft_ready",      "run_number": "string",      "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",      "scheduled_for": "2019-08-24",      "total_amount": "1234.50",      "trigger": "scheduled",      "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",      "vendor_count": 0    },    "legal_entities": [      {        "currency_code": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "legal_entity_ids": [      "66349575-4160-4a79-b2da-3eb801e491dd"    ],    "memo_template": "string",    "name": "string",    "next_run_date": "2019-08-24",    "non_usd_legal_entity_ids": [      "81ad2e88-b107-4121-8254-6388a90e27db"    ],    "overlaps": [      {        "entity_ids": [          "63d5b391-6678-4b1c-88e0-89fe98dcf022"        ],        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",        "vendor_scope": {          "mode": "all",          "party_ids": [            "04f3f248-946d-4f63-a4b5-cb044a77f1e0"          ],          "vendors": [            {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "name": "string"            }          ]        }      }    ],    "overlaps_with": [      {        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58"      }    ],    "owner_name": "string",    "owner_user_id": "65139110-7c3c-4777-b692-80c218be3b9d",    "payment_offset_days": 0,    "start_date": "2019-08-24",    "status": "active",    "updated_at": "2019-08-24T14:15:22Z",    "vendor_mode": "all",    "vendor_party_ids": [      "05d5c076-96dc-41ed-934b-098691c98bf2"    ],    "vendors": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "weekday": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/payment-run-schedules/{id}

Every field is optional. Changing frequency drops the stored weekday / days_of_month the new frequency does not use, unless sent; vendor_mode: all drops the stored vendors likewise. owner_user_id reassigns the schedule (spec D14). The owner is checked when it changes and when the schedule is resumed (PAYMENT_RUN_SCHEDULE_OWNER_INVALID / _OUT_OF_SCOPE). A scope edit checks a still-valid owner against what it adds only (new entities and the current members of new groups); removing never is. Pausing or editing is never blocked by an owner who has since lost access — entities they lost stay in scope and executions leave them out. Every save recomputes next_run_date from the org’s today without backfilling, never on a day the schedule already ran, clears it while paused, and resolves the schedule’s open "failed" alert.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, ENTITY_GROUP_WRONG_TYPE, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_SCHEDULE_OWNER_INVALID, PAYMENT_RUN_SCHEDULE_OWNER_OUT_OF_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, PAYMENT_RUN_SCHEDULE_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
days_of_month?array<>

'1'–'28' or 'last': one for monthly, two different ones for twice_monthly; empty for weekly and biweekly.

entity_group_ids?array<>

Payment groups in scope (group_type = payment; a consolidation group is refused with ENTITY_GROUP_WRONG_TYPE). Each is resolved to its current members every time the schedule runs.

extra_days?number

Days past the next run date a bill may be due and still be paid now. Default 0.

Range0 <= value <= 30
frequency?string

Changing it drops the stored field the new frequency does not use (weekday or days_of_month) unless the request sends it.

Value in"weekly""biweekly""twice_monthly""monthly"
legal_entity_ids?array<>

Legal entities in scope. With entity_group_ids, at least one entity or group is required.

memo_template?|

The runs' memo; every {date} becomes the generation date in MM/DD/YYYY. Null or blank for none.

Lengthlength <= 500
name?string
Length1 <= length <= 120
owner_user_id?string

Reassign the schedule (spec D14): a live member who may create payment runs and access the whole scope.

Formatuuid
payment_offset_days?number

Business days from the run date to the payment date. Default 1.

Range0 <= value <= 30
start_date?string
Formatdate
status?string

Default active. A paused schedule never runs.

Value in"active""paused"
vendor_mode?string

all (default) pays every vendor; only / except need vendor_party_ids.

Value in"all""only""except"
vendor_party_ids?array<>
weekday?|

0 (Sunday) to 6. Required for weekly and biweekly; null otherwise.

Range0 <= value <= 6

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/payment-run-schedules/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "days_of_month": [      "string"    ],    "entity_group_ids": [      "0bad8a98-3e20-47e6-b1ef-f13d01add047"    ],    "entity_groups": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "member_count": 0,        "name": "string"      }    ],    "extra_days": 0,    "frequency": "weekly",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "last_execution": {      "absorbed": true,      "bill_count": 0,      "created_at": "2019-08-24T14:15:22Z",      "dropped_entities": [        {          "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",          "name": "string",          "reason": "no_access"        }      ],      "entity_count": 0,      "error_code": "string",      "error_message": "string",      "generated_on": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "left_out_count": 0,      "missing": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "entity_without_account",          "name": "string"        }      ],      "open_draft": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "run_number": "string"      },      "payment_date": "2019-08-24",      "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",      "result": "draft_ready",      "run_number": "string",      "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",      "scheduled_for": "2019-08-24",      "total_amount": "1234.50",      "trigger": "scheduled",      "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",      "vendor_count": 0    },    "legal_entities": [      {        "currency_code": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "legal_entity_ids": [      "66349575-4160-4a79-b2da-3eb801e491dd"    ],    "memo_template": "string",    "name": "string",    "next_run_date": "2019-08-24",    "non_usd_legal_entity_ids": [      "81ad2e88-b107-4121-8254-6388a90e27db"    ],    "overlaps": [      {        "entity_ids": [          "63d5b391-6678-4b1c-88e0-89fe98dcf022"        ],        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",        "vendor_scope": {          "mode": "all",          "party_ids": [            "04f3f248-946d-4f63-a4b5-cb044a77f1e0"          ],          "vendors": [            {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "name": "string"            }          ]        }      }    ],    "overlaps_with": [      {        "name": "string",        "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58"      }    ],    "owner_name": "string",    "owner_user_id": "65139110-7c3c-4777-b692-80c218be3b9d",    "payment_offset_days": 0,    "start_date": "2019-08-24",    "status": "active",    "updated_at": "2019-08-24T14:15:22Z",    "vendor_mode": "all",    "vendor_party_ids": [      "05d5c076-96dc-41ed-934b-098691c98bf2"    ],    "vendors": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      }    ],    "weekday": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-run-schedules/{id}/executions

The history: every time the schedule ran, on its date (scheduled) or by Generate now (manual), newest first. Each carries its result, the run it made or added to (run_number while the run exists), its counts and total, and what was left out or missing. Same visibility as the schedule: 404 unless the caller may see it.

Required scope: payment-runs:read

Pagination: cursor

Error codes: INVALID_CURSOR, PAYMENT_RUN_SCHEDULE_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/payment-run-schedules/string/executions'
{  "data": [    {      "absorbed": true,      "bill_count": 0,      "created_at": "2019-08-24T14:15:22Z",      "dropped_entities": [        {          "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",          "name": "string",          "reason": "no_access"        }      ],      "entity_count": 0,      "error_code": "string",      "error_message": "string",      "generated_on": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "left_out_count": 0,      "missing": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "entity_without_account",          "name": "string"        }      ],      "open_draft": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "run_number": "string"      },      "payment_date": "2019-08-24",      "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",      "result": "draft_ready",      "run_number": "string",      "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",      "scheduled_for": "2019-08-24",      "total_amount": "1234.50",      "trigger": "scheduled",      "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",      "vendor_count": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/payment-run-schedules/{id}/generate

Runs the schedule today, active or paused, exactly as its date would — but in the CURRENT owner's name, whoever presses it (the run's created_by is the owner). Takes the bills due before the run date after the schedule’s next one (plus extra_days); bills an earlier run holds are not taken again. If the schedule’s last run is still a draft, the new bills are added to it and its payment date and memo refreshed instead of a second run (absorbed). The run is always left in draft, with an alert, for a person to review and submit: draft_ready, or draft_missing_info when something is missing. Answers with the execution it recorded — no_bills when nothing qualified, failed when the owner can no longer act (error_code). Never moves next_run_date; not limited per day.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_SCHEDULE_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-run-schedules/string/generate' \  -H 'Idempotency-Key: string'
{  "data": {    "absorbed": true,    "bill_count": 0,    "created_at": "2019-08-24T14:15:22Z",    "dropped_entities": [      {        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "name": "string",        "reason": "no_access"      }    ],    "entity_count": 0,    "error_code": "string",    "error_message": "string",    "generated_on": "2019-08-24",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "left_out_count": 0,    "missing": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "kind": "entity_without_account",        "name": "string"      }    ],    "open_draft": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "run_number": "string"    },    "payment_date": "2019-08-24",    "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0",    "result": "draft_ready",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "scheduled_for": "2019-08-24",    "total_amount": "1234.50",    "trigger": "scheduled",    "triggered_by": "694779fa-ba24-4706-ab88-146e01450129",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List payment runs

GET
/v1/payment-runs

A run may span several legal entities, each paying from its own bank account; every row names them in entities. legal_entity_id, bank_account_id and payment_method take lists (repeat or comma-separate) and match a run when ANY of its entities / bills matches. A caller restricted to some legal entities sees only runs whose EVERY entity is allowed. Sorts: created_at (default -created_at), run_number, payment_date (runs without a payment date sort last in both directions), total_amount and bill_count; ties break on id. Totals and counts leave out bills the run released unpaid. schedule_id lists only the runs that schedule generated.

Required scope: payment-runs:read

Pagination: cursor

Error codes: VALIDATION_FAILED, INVALID_CURSOR, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

status?string
Value in"draft""pending_approval""approved""partially_completed""completed""rejected""cancelled"
bank_account_id?array<>

Paying bank accounts. Repeat or comma-separate. A run is listed when ANY of its entities pays from one of them.

legal_entity_id?array<>

Legal entities. Repeat or comma-separate. A run is listed when ANY of its entities is one of them. Each id must be in the caller’s scope (403 LEGAL_ENTITY_NOT_IN_SCOPE otherwise); a run is only ever listed to a caller allowed for EVERY entity in it.

payment_method?array<>

Payment methods. Repeat or comma-separate. A run is listed when any of its bills is paid that way — the method frozen at submit, or the vendor’s live method while the run is a draft. none matches a bill whose vendor has no payment method.

schedule_id?string

Only the runs this payment run schedule generated.

Formatuuid
distribution_declaration_id?string

Only the runs generated for this distribution declaration.

Formatuuid
search?string

Case-insensitive substring match on the run number, the memo, the name of any vendor in the run, and the number of any bill in it.

date_field?string

Which date from_date/to_date bound: payment (the run’s payment_date, the default) or created (the org-local day the run was created).

Value in"payment""created"
from_date?string

Inclusive lower bound for date_field.

Formatdate
to_date?string

Inclusive upper bound for date_field.

Formatdate
cursor?string
limit?number

1..100, default 50

sort?string

Default: -created_at

Value in"-created_at""created_at""-run_number""run_number""-payment_date""payment_date""-total_amount""total_amount""-bill_count""bill_count"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/payment-runs'
{  "data": [    {      "approved_at": "string",      "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",      "bill_count": 0,      "completed_at": "string",      "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",      "created_at": "string",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "currency_code": "string",      "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",      "entities": [        {          "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",          "bank_account_name": "string",          "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",          "legal_entity_name": "string",          "status": "pending"        }      ],      "entity_count": 0,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "memo": "string",      "origin": "batch",      "paid_entity_count": 0,      "payment_date": "2019-08-24",      "payment_methods": [        "ach"      ],      "run_number": "string",      "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",      "schedule_name": "string",      "status": "draft",      "total_amount": "1234.50",      "vendor_count": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/payment-runs

Reserves the given bills (at least one; each must pass eligibility) and derives the run’s legal entities from them — one entity row per entity with a bill in the run. The run currency is the first bill’s entity’s; a bill in another currency is refused (PAYMENT_RUN_CURRENCY_MISMATCH). Each entity pays from the account bank_accounts gives it, else from its default paying account while still eligible (bank_account_is_default), else from its only eligible account, else from none yet — choose one with PATCH :id/entities/:legalEntityId before submitting. Every entity must be in the caller’s scope.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, PAYMENT_RUN_ENTITY_ACCOUNT_INVALID, PAYMENT_RUN_BILL_NOT_ELIGIBLE, PAYMENT_RUN_BILL_RESERVED, PAYMENT_RUN_BILL_AVAILABLE_EXCEEDED, PAYMENT_RUN_CURRENCY_MISMATCH, PAYMENT_RUN_TOO_MANY_BILLS, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
bank_accounts?array<>

Optional paying account per legal entity of the run. An entity left out gets its default paying account while still eligible, else its only eligible account (active, with a GL cash account, in the run currency), else none when it has several — choose it later with PATCH /v1/payment-runs/{id}/entities/{legalEntityId}; submit refuses an entity without one. Each entry must name an entity with a bill in the run.

bills*array<>

Bills to include (at least one). They may belong to several legal entities of the org: the run gets one entity row per entity, and takes its currency from the first bill’s entity — every bill must be in it (PAYMENT_RUN_CURRENCY_MISMATCH). Each must pass eligibility: posted bill, open balance, vendor party, not reserved by another active run, in an entity the caller may act in. An optional per-bill amount_to_pay requests a partial payment (0 < amount_to_pay <= its live balance); omitted pays the full balance. A run holds at most 200 bills in v1 (PAYMENT_RUN_TOO_MANY_BILLS) — deliberately NOT capped here via @ArrayMaxSize so the domain error (with the request's bill count) is what the client sees rather than a generic VALIDATION_FAILED.

memo?|
Lengthlength <= 500
payment_date?|

document_date of the generated payments. When empty at approval time, the approval date is used.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "bills": [    {      "bill_id": "50d9b44e-68b6-43d6-9c5e-0cb4e5e0080c"    }  ]}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-runs/eligible-bills

The picker query. Returns posted bills with an open balance and a vendor party, not reserved by another active run (draft/pending_approval/rejected/approved). Scope with EITHER legal_entity_id (a list — bills of any of those entities, no currency filter; the run currency is enforced at create/add-bills) OR bank_account_id (the account’s legal entity AND currency). At least one is required; when both are sent, bank_account_id wins. Every entity must be in the caller’s scope. Bills without a party are excluded: payments are generated per vendor. Each row says how its vendor is paid (payment_method, masked payment_method_detail), and payment_method filters on it (none = no method). search matches the bill number or the vendor name. min_amount/max_amount filter on the OPEN BALANCE (inclusive bounds), not the bill total. date_field selects which date from/to bound (default due).

Required scope: payment-runs:read

Pagination: cursor

Error codes: VALIDATION_FAILED, INVALID_CURSOR, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

bank_account_id?string

Scopes the picker to one bank account — only bills matching that account's legal entity and currency are eligible. Provide this OR legal_entity_id (at least one is required). When both are sent, bank_account_id wins (its currency filter is the stricter path).

Formatuuid
legal_entity_id?array<>

Scopes the picker to these legal entities (repeat or comma-separate), WITHOUT a currency filter — a bill of any of them is listed, so the builder loads bills before any bank account is chosen. The run currency is enforced at create/add-bills. Each id must be in the caller’s scope (403 LEGAL_ENTITY_NOT_IN_SCOPE otherwise). Provide this OR bank_account_id (at least one is required).

document_type?array<>

Which payable document types to list (repeat or comma-separate): bill, owner_distribution (a distribution leg). Default bill.

Default
[  "bill"]
payment_method?array<>

The vendor’s payment method (repeat or comma-separate). none matches a vendor with no payment method at all.

party_ids?array<string>

Comma-separated vendor (party) ids. Narrows to these vendors only.

date_field?string

Which date field from/to bound. Default due.

Value in"due""document"
from_date?string

Inclusive lower bound for date_field.

Formatdate
to_date?string

Inclusive upper bound for date_field.

Formatdate
from?stringDeprecated

Deprecated alias for from_date (inclusive lower bound for date_field).

Formatdate
to?stringDeprecated

Deprecated alias for to_date (inclusive upper bound for date_field).

Formatdate
search?string

Case-insensitive substring match on the bill document number or the vendor name. % and _ match themselves.

min_amount?number

Inclusive lower bound on the OPEN BALANCE (not the bill total).

max_amount?number

Inclusive upper bound on the OPEN BALANCE (not the bill total).

cursor?string
limit?number

1..100, default 50

sort?string

Default: -due_date

Value in"-due_date""due_date""-document_date""document_date""-created_at""created_at"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/payment-runs/eligible-bills'
{  "data": [    {      "available_amount": "1234.50",      "balance_amount": "1234.50",      "currency_code": "string",      "document_date": "2019-08-24",      "document_number": "string",      "document_type": "bill",      "due_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "legal_entity_name": "string",      "memo": "string",      "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",      "party_name": "string",      "payment_method": "ach",      "payment_method_detail": "string",      "reserved_amount": "1234.50",      "total_amount": "1234.50"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
GET
/v1/payment-runs/{id}

Required scope: payment-runs:read

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/payment-runs/string'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/payment-runs/{id}

Draft only. An entity’s paying account is set with PATCH :id/entities/:legalEntityId.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
memo?|
Lengthlength <= 500
payment_date?|

document_date of the generated payments. When empty at approval time, the approval date is used.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/payment-runs/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-runs/{id}/ach-file

One file for every entity of the run whose bank account originates through origin_routing, one batch each (its own company ID, name, SEC code and entry description), ordered by entity name; batch numbers are sequential and the file control totals every batch. The file header’s Immediate Origin is the shared company ID when every batch has the same one, otherwise the first batch’s — to be confirmed with the bank.

Each entity is checked and audited exactly as its own download (GET …/entities/{legalEntityId}/ach-file): one payment-runs.export_ach audit row per entity, marked combined, and nothing stamped — each entity is closed to Spark Pay by its own POST …/ach-file/confirm-submitted. An entity its own download would refuse is left out of the file; GET …/ach-files lists which and why. 404 PAYMENT_RUN_ACH_FILE_NOT_FOUND when no entity of the run originates through that routing number, 422 PAYMENT_RUN_ACH_FILE_EMPTY (naming each entity and reason) when all of them are left out. Streamed as text/plain, never stored; named ach-{run_number}-{bank}-{routing}-{yyyymmdd}.txt.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_NOT_APPROVED, PAYMENT_RUN_ACH_FILE_NOT_FOUND, PAYMENT_RUN_ACH_FILE_EMPTY

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

origin_routing*string

The bank’s originating routing number, 9 digits.

Match^\d{9}$

Response Body

NACHA ACH file (one batch per included entity)

response?stringtext/plain
curl -X GET 'https://api.acreum.io/v1/payment-runs/string/ach-file?origin_routing=021000021'
"string"
GET
/v1/payment-runs/{id}/ach-files

A NACHA file goes to one bank, so the run’s entities are grouped by the originating routing number of their bank account; each group is one file with a batch per entity (GET …/ach-file?origin_routing=). Every entity of the run appears once: in legal_entity_ids when its own download (GET …/entities/{legalEntityId}/ach-file) would succeed, otherwise in excluded with the code that download answers with — never silently dropped. An entity whose account has no originating routing number is listed under the group with origin_routing null. Same run-level rules as the downloads: the run must be approved or partially_completed (422 PAYMENT_RUN_NOT_APPROVED) and the caller allowed every entity of it. Discloses no bank number and writes nothing.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_NOT_APPROVED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/payment-runs/string/ach-files'
{  "data": {    "files": [      {        "bank_name": "string",        "excluded": [          {            "context": {},            "detail": "string",            "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",            "legal_entity_name": "string",            "reason": "BANK_ACCOUNT_ACH_NOT_CONFIGURED"          }        ],        "legal_entity_ids": [          "66349575-4160-4a79-b2da-3eb801e491dd"        ],        "origin_routing": "021000021"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/approval-requests/{requestId}/approve-with-changes

Edit and approve (spec 2026-10-23 D19). The caller must be able to decide this OPEN request of a pending_approval run — the same checks as POST /v1/approvals/{id}/decision, the authority limit included, against the run as it stands (403 FORBIDDEN APPROVAL_NOT_AUTHORIZED / APPROVAL_AUTHORITY_INSUFFICIENT, 409 CONFLICT APPROVAL_NOT_OPEN / APPROVAL_ALREADY_DECIDED). The changes only make the run smaller or route it differently: remove_bill_ids, lower amount_changes, and account_changes to another eligible account of the same entity. At least one change (400 VALIDATION_FAILED otherwise); there is no field for a payment date or a vendor’s method. An entity request may change only its own entity, a payment-group request only the members it was submitted with, an org-wide request any entity (403 PAYMENT_RUN_APPROVER_CHANGE_OUT_OF_SCOPE). Adding a bill or raising an amount is refused with 422 PAYMENT_RUN_APPROVER_CHANGE_INCREASE, removing every bill with 422 PAYMENT_RUN_APPROVER_CHANGE_EMPTIES_RUN. In one transaction the changes are applied (removed bills and lowered amounts release their reservation; an entity left with no bill leaves the run; one audit row per change under the manual edit’s action), then the request is approved as a normal decision whose note reads “Approved with changes:” followed by one line per change and the optional note. The submitter is notified (payment_run.approved_with_changes). When it was the run’s last open request the run becomes approved; other open requests stay open over the reduced amounts. Answers with the run detail.

Required scope: documents:approve

Error codes: VALIDATION_FAILED, FORBIDDEN, CONFLICT, PAYMENT_RUN_NOT_FOUND, PAYMENT_RUN_APPROVAL_REQUEST_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_APPROVER_CHANGE_OUT_OF_SCOPE, PAYMENT_RUN_APPROVER_CHANGE_INCREASE, PAYMENT_RUN_APPROVER_CHANGE_EMPTIES_RUN, PAYMENT_RUN_APPROVER_ACCOUNT_NOT_ELIGIBLE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
requestId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
account_changes?array<>

Another paying account for an entity of the run: one of its eligible accounts (its own, active, in the run currency, linked to a GL cash account), else 422 PAYMENT_RUN_APPROVER_ACCOUNT_NOT_ELIGIBLE.

amount_changes?array<>

Lower amounts to pay. The difference is released from the bill’s reservation.

note?|

Optional note, recorded on the decision after the list of changes.

Lengthlength <= 2000
remove_bill_ids?array<>

Bills to take out of the run. Their reservation is released; an entity left with no bill leaves the run. Removing every bill is refused (422 PAYMENT_RUN_APPROVER_CHANGE_EMPTIES_RUN): reject the run instead.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/approval-requests/string/approve-with-changes' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Add bills to a draft run

POST
/v1/payment-runs/{id}/bills

Draft only. Reuses the same eligibility gate as create — each bill must be a posted bill with an open balance, a vendor party, in the run currency and an entity the caller may act in, and must not be reserved by another active run. A bill of an entity new to the run adds that entity (its account chosen as on create; bank_accounts may set it). The resulting total (bills already in the run plus this batch) must stay at or under 200.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, PAYMENT_RUN_INVALID_STATUS, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_BILL_NOT_ELIGIBLE, PAYMENT_RUN_BILL_RESERVED, PAYMENT_RUN_BILL_AVAILABLE_EXCEEDED, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, PAYMENT_RUN_ENTITY_ACCOUNT_INVALID, PAYMENT_RUN_CURRENCY_MISMATCH, PAYMENT_RUN_TOO_MANY_BILLS, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
bank_accounts?array<>

Optional paying account per legal entity of the run. An entity left out gets its default paying account while still eligible, else its only eligible account (active, with a GL cash account, in the run currency), else none when it has several — choose it later with PATCH /v1/payment-runs/{id}/entities/{legalEntityId}; submit refuses an entity without one. Each entry must name an entity with a bill in the run.

bills*array<>

Bills to add to this draft run. Each must pass the same eligibility gate as create: posted bill, open balance, vendor party, in the run currency, and not reserved by another active run. A bill of an entity new to the run adds that entity. An optional per-bill amount_to_pay requests a partial payment (0 < amount_to_pay <= its live balance); omitted pays the full balance. The resulting total (bills already in the run plus this batch) must stay at or under 200 (PAYMENT_RUN_TOO_MANY_BILLS).

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/bills' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "bills": [    {      "bill_id": "50d9b44e-68b6-43d6-9c5e-0cb4e5e0080c"    }  ]}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/payment-runs/{id}/bills/{billId}

Draft only (v2, spec §1.1.1). amount_to_pay: null resets the line to pay the bill’s full live balance (needs the bill unreserved by other active runs, else PAYMENT_RUN_BILL_RESERVED); a positive number requests an exact partial, re-validated against the bill’s AVAILABLE amount (balance minus other active runs’ reservations, else PAYMENT_RUN_BILL_AVAILABLE_EXCEEDED).

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_BILL_RESERVED, PAYMENT_RUN_BILL_AVAILABLE_EXCEEDED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
billId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
amount_to_pay*|

Exact amount to pay for this bill; null resets it to the full live balance. Must be > 0 and <= the bill’s live open balance when non-null.

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/payment-runs/string/bills/string' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "amount_to_pay": "500.00"}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
DELETE
/v1/payment-runs/{id}/bills/{billId}

Draft only. Deletes the run's payment_run_bills row outright (not a soft release), freeing the bill for pickup by another run immediately. The bill’s entity leaves the run with its last bill, unless it is the run’s only entity.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
billId*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X DELETE 'https://api.acreum.io/v1/payment-runs/string/bills/string'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Cancel a run (terminal)

POST
/v1/payment-runs/{id}/cancel

From draft, pending_approval, or rejected. Withdraws any open approval request — any payment-runs:write holder may cancel, not just the submitter — and releases every bill reservation so they’re immediately reservable by another run. Cancelling a run a schedule generated resolves its “needs attention” work item.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/cancel' \  -H 'Idempotency-Key: string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/entities/mark-paid

Bulk form of POST …/entities/{legalEntityId}/mark-paid: every listed entity goes through exactly that path — same permission (OWNER/ADMIN, and the caller must be allowed every entity of the run), same refusals with the same codes — in ONE transaction. The first entity the single endpoint would refuse refuses the whole request and nothing is posted for any of them. paid_on (required, not after the org’s today, else 400 VALIDATION_FAILED) dates every payment. The run status is derived once, after the last entity: partially_completed while another entity is pending, completed once every entity is paid or released. Answers with the updated run.

ach_submitted: true declares the NACHA file sent through the bank for the listed entities on the NACHA/manual rail: each with ACH vendors and an unconfirmed file is first confirmed through the same path as …/ach-file/confirm-submitted (same audit, same Spark Pay closing), in the same transaction. Entities Spark Pay has claimed are not confirmed and settle by their own rail, so one call can mix both rails; sends still in flight are refused as without the flag. Without it, an unconfirmed ACH is still refused with 409 PAYMENT_RUN_ACH_NOT_SUBMITTED.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_ENTITY_NOTHING_TO_PAY, PAYMENT_RUN_VENDOR_METHOD_CHANGED, PAYMENT_RUN_SENDS_IN_FLIGHT, PAYMENT_RUN_ACH_NOT_SUBMITTED, PAYMENT_RUN_ACH_VENDORS_NOT_PAYABLE, PAYMENT_RUN_GENERATION_STALE_BILLS, PAYMENT_RUN_AMOUNT_EXCEEDS_BALANCE, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, DOCUMENT_STATUS_FORBIDS_ACTION, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
ach_submitted?boolean

The operator declares the listed entities’ ACH payments were sent through their banks (spec §13.5). When true, every listed entity on the NACHA/manual rail with ACH vendors whose file is not yet confirmed submitted is confirmed first — through the same path as POST …/ach-file/confirm-submitted, with its audit row — in the same transaction, then settled; any refusal refuses the whole request. Entities Spark Pay has claimed are not confirmed and settle by their own rail, so one request can mix both rails. Entities with no ACH vendor, or already confirmed, are untouched by it. Absent or false: an unconfirmed ACH is refused with 409 PAYMENT_RUN_ACH_NOT_SUBMITTED, as before.

legal_entity_ids*array<>

The run’s legal entities to mark paid, together. Each must be one the single-entity Mark paid would accept; the first that it would refuse refuses the whole request with that same code.

Items1 <= items <= 200
paid_on*string

The day the entities paid — the document_date of every payment they post. Not after the org’s today.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/mark-paid' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "legal_entity_ids": [    "66349575-4160-4a79-b2da-3eb801e491dd"  ],  "paid_on": "2019-08-24"}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/payment-runs/{id}/entities/{legalEntityId}

Draft only. The account must be the entity’s own, active, with a linked GL cash account, in the run currency — another entity’s or another currency’s is refused with 422 PAYMENT_RUN_ENTITY_ACCOUNT_INVALID. The entity must have a bill in the run (400 otherwise). Submit refuses a run while any entity has no account (PAYMENT_RUN_ENTITY_ACCOUNT_REQUIRED).

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_ENTITY_ACCOUNT_INVALID, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
bank_account_id*string

One of the entity's own bank accounts: active, with a linked GL cash account, in the run's currency.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/payment-runs/string/entities/string' \  -H 'Content-Type: application/json' \  -d '{  "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff"}'
{  "data": {    "approval_requests": [      {        "actionable": true,        "amount": "1234.50",        "decided_at": "string",        "decided_by": "4accc021-c0cc-4c2c-8a78-605a0ed6da31",        "decided_by_name": "string",        "entity_group_id": "3d94d49b-ac77-49ca-89b4-686413823c10",        "entity_group_name": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",        "resolution_note": "string",        "resolved_at": "string",        "scope_legal_entity_ids": [          "760b4f19-912e-4b0b-aeef-483fea6d3987"        ],        "status": "string",        "submitted_at": "string",        "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5"      }    ],    "approved_at": "string",    "approved_by": "02030314-b162-4b4d-8af1-88eabdcc615d",    "bill_count": 0,    "bills": [      {        "amount_paid": "1234.50",        "amount_to_pay": "1234.50",        "available_amount": "1234.50",        "balance_amount": "1234.50",        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_date": "2019-08-24",        "document_number": "string",        "document_type": "bill",        "due_date": "2019-08-24",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "memo": "string",        "open_before_run": "1234.50",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "party_name": "string",        "payment_destination": {          "account_last4": "string",          "bank_name": "string",          "city": "string",          "international": true,          "payee_name": "string",          "receive_currency_code": "string",          "swift_bic": "string"        },        "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab",        "payment_document_number": "string",        "payment_document_status": "draft",        "payment_method": "ach",        "payment_method_detail": "string",        "released_at": "string",        "total_amount": "1234.50"      }    ],    "completed_at": "string",    "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",    "created_at": "string",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "currency_code": "string",    "distribution_declaration_id": "d63474ca-6839-448e-a3c9-99e56f47f647",    "entities": [      {        "ach_exported_at": "2019-08-24T14:15:22Z",        "ach_origination_missing": [          "string"        ],        "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",        "bank_account_is_default": true,        "bank_account_last4": "string",        "bank_account_name": "string",        "completed_at": "2019-08-24T14:15:22Z",        "completed_by": "c9235180-61dd-4e9a-a3ba-27dfed282f7f",        "completed_by_name": "string",        "eligible_bank_account_count": 0,        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "legal_entity_name": "string",        "paid_on": "2019-08-24",        "spark_pay_enqueued_at": "2019-08-24T14:15:22Z",        "status": "pending",        "totals_by_method": {          "ach": "1234.50",          "check": "1234.50",          "none": "1234.50",          "wire": "1234.50"        },        "vendor_count": 0      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "memo": "string",    "origin": "batch",    "owners_without_tax_id": [      {        "name": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"      }    ],    "paired_sides_not_recordable": [      {        "bill_document_id": "dbe49992-9f30-447c-8c2b-f767997ddc69",        "document_number": "string",        "reason": "document_missing",        "receiver_legal_entity_id": "14154ff7-918e-4969-ab24-1754bfb5b51e",        "receiver_name": "string"      }    ],    "payment_date": "2019-08-24",    "run_number": "string",    "schedule_id": "8929bb67-0da1-406c-99d2-5447376a4f58",    "schedule_name": "string",    "sends": [      {        "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",        "failure_reason": "string",        "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",        "moov_transfer_id": "string",        "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",        "status": "created"      }    ],    "status": "draft",    "total_amount": "1234.50",    "vendor_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-runs/{id}/entities/{legalEntityId}/ach-file

One file per entity, from its bank account. The run must be approved or partially_completed and the entity pending, and the caller must be allowed every entity of the run. Holds only the entity’s ACH vendors (by the method frozen at submit) over its bills still reserved on the run; decrypts their bank details in-memory, builds an unbalanced (credits-only, Service Class 220) NACHA file, and streams it as text/plain — never written to disk/bucket. Refused with 422 PAYMENT_RUN_ACH_VENDORS_NOT_PAYABLE, naming them, when any of those vendors has missing bank numbers or a routing number failing the ABA check-digit validation — a file that silently left them out would have them posted as paid at Mark paid. Named ach-{run_number}-{entity}-{yyyymmdd}.txt. Refused with 409 PAYMENT_RUN_VENDOR_METHOD_CHANGED when a vendor’s method changed since submit, and with 409 PAYMENT_RUN_SEND_METHOD_CONFLICT once Spark Pay has claimed the entity — from the moment its send-payments is pressed. Safe and repeatable: this GET stamps nothing; the entity is closed to Spark Pay by POST …/ach-file/confirm-submitted. The disclosure is audited explicitly in the service (payment-runs.export_ach, with legal_entity_id and included/excluded/total_cents counts) — the AuditInterceptor does not fire on GET routes.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_NOT_APPROVED, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_VENDOR_METHOD_CHANGED, PAYMENT_RUN_SEND_METHOD_CONFLICT, BANK_ACCOUNT_ACH_NOT_CONFIGURED, PAYMENT_RUN_ACH_VENDORS_NOT_PAYABLE, PAYMENT_RUN_NO_ACH_ENTRIES

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Response Body

NACHA ACH file

response?stringtext/plain
curl -X GET 'https://api.acreum.io/v1/payment-runs/string/entities/string/ach-file'
"string"
POST
/v1/payment-runs/{id}/entities/{legalEntityId}/ach-file/confirm-submitted

Claims the entity for the NACHA rail, which closes it to Spark Pay. The run must be approved or partially_completed (422 PAYMENT_RUN_NOT_APPROVED otherwise) and the entity pending; OWNER/ADMIN only (403 otherwise), and the caller must be allowed every entity of the run.

Why it is a separate action rather than a side effect of downloading the file: nothing the server can observe distinguishes a real submission from a link prefetch or a curious clerk, and a claim written by either would permanently veto the Spark Pay rail. So the download stays free and repeatable and the operator declares the submission here.

Idempotent — confirming an already-confirmed entity succeeds and returns the existing stamp. Refused with 409 PAYMENT_RUN_SEND_METHOD_CONFLICT when Spark Pay has already claimed the entity (Send pressed, or transfers exist) — another entity’s rail does not matter. Use …/release-send-claim to undo a claim made in error.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_NOT_APPROVED, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_VENDOR_METHOD_CHANGED, PAYMENT_RUN_SEND_METHOD_CONFLICT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/string/ach-file/confirm-submitted' \  -H 'Idempotency-Key: string'
{  "data": {    "ach_exported_at": "2019-08-24T14:15:22Z",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",    "spark_pay_enqueued_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/entities/{legalEntityId}/mark-paid

The run must be approved or partially_completed and the entity pending (409 PAYMENT_RUN_ENTITY_NOT_PENDING otherwise); OWNER/ADMIN only (403 otherwise), and the caller must be allowed every entity of the run. Refused with 409 PAYMENT_RUN_VENDOR_METHOD_CHANGED while a vendor’s live payment method differs from the one frozen at submit. paid_on (default: the run’s payment date, capped at the org’s today; a later day is refused with 400 VALIDATION_FAILED) dates every payment the entity posts. An entity whose every bill was released unpaid, with no Spark Pay transfer, is refused with 409 PAYMENT_RUN_ENTITY_NOTHING_TO_PAY — release it instead. A Spark Pay entity whose every transfer already settled is not: it is marked paid with nothing left to post.

What is posted depends on the rail the ENTITY used. NACHA file / manual: refused with 409 PAYMENT_RUN_ACH_NOT_SUBMITTED while the entity has ACH vendors and its file was never confirmed submitted — unless the request says ach_submitted: true, which first confirms it through the same path as …/ach-file/confirm-submitted (same audit, same Spark Pay closing), in the same transaction; downloading the file is not required, and a Spark Pay entity is not confirmed but settled by its own rail as below — and with 422 PAYMENT_RUN_ACH_VENDORS_NOT_PAYABLE (naming them) while an ACH vendor lacks bank details a NACHA file can pay; then one posted payment_out per vendor (ACH, wire and check, by the frozen method) on the entity’s bank cash account, applied to its bills, which are released. Spark Pay: the entity’s ACH vendors are not posted here — each sent vendor’s draft posts when its transfer settles, and a vendor whose send failed has its draft deleted and its bills released; refused with 409 PAYMENT_RUN_SENDS_IN_FLIGHT while any of the entity’s sends is undecided or still queued. Its wire and check vendors are posted as above.

The entity becomes paid and the run follows its entities: partially_completed while another entity is pending, completed once every entity is paid or released. Atomic: any failure rolls back and the entity stays pending to retry.

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_ENTITY_NOTHING_TO_PAY, PAYMENT_RUN_VENDOR_METHOD_CHANGED, PAYMENT_RUN_SENDS_IN_FLIGHT, PAYMENT_RUN_ACH_NOT_SUBMITTED, PAYMENT_RUN_ACH_VENDORS_NOT_PAYABLE, PAYMENT_RUN_GENERATION_STALE_BILLS, PAYMENT_RUN_AMOUNT_EXCEEDS_BALANCE, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, DOCUMENT_STATUS_FORBIDS_ACTION, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
ach_submitted?boolean

The operator declares the entity’s ACH payments were sent through its bank (spec §13.5). When true and the entity, on the NACHA/manual rail, has ACH vendors whose file is not yet confirmed submitted, it is confirmed first — through the same path as POST …/ach-file/confirm-submitted, with its audit row — in the same transaction, then settled. An entity Spark Pay has claimed is not confirmed: it settles by its own rail, as without the flag. Absent or false: an unconfirmed ACH is refused with 409 PAYMENT_RUN_ACH_NOT_SUBMITTED, as before. Downloading the file first is not required.

paid_on?string

The day the entity paid — the document_date of every payment it posts. Absent: the run’s payment date, capped at the org’s today (today when the run has none).

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/string/mark-paid' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/entities/{legalEntityId}/release

The run must be approved or partially_completed and the entity pending; OWNER/ADMIN only (403 otherwise), and the caller must be allowed every entity of the run. Releases the entity’s bills back to the pool without touching the other entities. The run follows its entities: completed once every entity is paid or released with at least one paid, cancelled when every entity was released. Refused with 409 PAYMENT_RUN_SEND_METHOD_CONFLICT while either rail holds the entity (a Spark Pay send or transfer, or a confirmed NACHA file — release that claim first) and 409 PAYMENT_RUN_SENDS_IN_FLIGHT while one of its send jobs is still queued.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_SEND_METHOD_CONFLICT, PAYMENT_RUN_SENDS_IN_FLIGHT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/string/release' \  -H 'Idempotency-Key: string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/entities/{legalEntityId}/release-send-claim

Clears the entity’s ach_exported_at and spark_pay_enqueued_at, reopening it to either rail. The run must be approved or partially_completed and the entity pending; OWNER/ADMIN only (403 otherwise), and the caller must be allowed every entity of the run.

It exists because a claim is written before anything moves. Pressing Send stamps spark_pay_enqueued_at before the first job runs, so an entity whose every vendor send then failed for a reason outside the operator’s control — bank not linked, Moov unavailable — is claimed by a rail that paid nobody, while the NACHA fallback stays 409’d. Same shape for a NACHA file confirmed as submitted and then rejected by the bank.

Refused with 409 PAYMENT_RUN_SEND_METHOD_CONFLICT once ANY Spark Pay transfer exists for the entity: money has moved, and reopening the other rail would pay those vendors twice. Refused with 409 PAYMENT_RUN_SENDS_IN_FLIGHT while any of the entity’s send jobs is still queued or running — a queued job cannot be cancelled. A blocked vendor’s job terminates normally on its final attempt, so this is a wait bounded by the queue’s backoff, not a permanent refusal.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_SEND_METHOD_CONFLICT, PAYMENT_RUN_SENDS_IN_FLIGHT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/string/release-send-claim' \  -H 'Idempotency-Key: string'
{  "data": {    "ach_exported_at": "2019-08-24T14:15:22Z",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",    "spark_pay_enqueued_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/entities/{legalEntityId}/send-payments

Enqueues one background send per ACH vendor of the entity (by the method frozen at submit) and returns 202 immediately (a Moov call can take 25s; fifty cannot sit in one request). Wire and check vendors are not sent: they are posted when the entity is marked paid. The run must be approved or partially_completed and the entity pending; OWNER/ADMIN only (403 otherwise), and the caller must be allowed every entity of the run. Each vendor gets one draft payment_out and exactly one transfer from the entity’s bank account; each payment posts when its transfer settles, days later. Mutually exclusive with the entity’s NACHA file: refused once its file was confirmed submitted (PAYMENT_RUN_ALREADY_EXPORTED); another entity’s rail does not matter. Refused with PAYMENT_RUN_VENDORS_NOT_PAYABLE when one of the entity’s ACH vendors has no Moov destination, and with PAYMENT_RUN_VENDOR_METHOD_CHANGED when a vendor’s method changed since submit. Re-pressing is the recovery path — vendors already sent are skipped, so nothing is ever paid twice. Per-vendor state is read back from GET /v1/payment-runs/{id}.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_COMPLETE_FORBIDDEN, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_VENDOR_METHOD_CHANGED, PAYMENT_RUN_ALREADY_EXPORTED, PAYMENT_RUN_SPARK_PAY_DISTRIBUTION_LEGS, PAYMENT_RUN_BANK_NOT_MOOV_LINKED, PAYMENT_RUN_VENDORS_NOT_PAYABLE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
legalEntityId*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

Accepted — one send job enqueued per ACH vendor.

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/entities/string/send-payments' \  -H 'Idempotency-Key: string'
{  "data": {    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "run_id": "dded282c-8ebd-44cf-8ba5-9a234973d1ec",    "vendors_enqueued": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/payment-runs/{id}/manual-payments-file

One row per (entity, vendor) paid by wire or check — by the method frozen at submit — over the bills still reserved on the run, with what whoever pays by hand needs: for a wire the beneficiary, bank, SWIFT/BIC, ABA routing and the full account number or IBAN; for a check the payee and mailing address. The run must be approved or partially_completed and the caller allowed every entity of the run. Covers every pending entity, or only legal_entity_id when given. Streamed as text/csv, never stored. Refused with 409 PAYMENT_RUN_VENDOR_METHOD_CHANGED when a vendor’s method changed since submit. Named manual-payments-{run_number}[-{entity}]-{yyyymmdd}.csv. The disclosure is audited explicitly in the service (payment-runs.export_manual_payments, counts only) — the AuditInterceptor does not fire on GET routes.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_NOT_APPROVED, PAYMENT_RUN_ENTITY_NOT_PENDING, PAYMENT_RUN_VENDOR_METHOD_CHANGED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

legal_entity_id?string

Narrows the file to one legal entity of the run. Omitted, the file lists the wire and check payments of every entity that is still pending. The entity must belong to the run (404 PAYMENT_RUN_NOT_FOUND otherwise) and be pending (409 PAYMENT_RUN_ENTITY_NOT_PENDING).

Formatuuid

Response Body

Manual-payments CSV

response?stringtext/csv
curl -X GET 'https://api.acreum.io/v1/payment-runs/string/manual-payments-file'
"string"
POST
/v1/payment-runs/{id}/revert-to-draft

rejected only. Restricted to the run's creator, except for a run generated by a schedule, which any user with payment-runs:write may revert (and submit). Anyone else gets 403 PAYMENT_RUN_REVERT_FORBIDDEN. Bill reservations are kept.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_REVERT_FORBIDDEN, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/revert-to-draft' \  -H 'Idempotency-Key: string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/submit

Draft only. Restricted to the run's creator, except for a run generated by a schedule, which any user with payment-runs:write may submit (and revert). Anyone else gets 403 PAYMENT_RUN_SUBMIT_FORBIDDEN. A run generated by a schedule carries its schedule_id; submitting it resolves its “needs attention” work item. Refused while any entity has no paying account (PAYMENT_RUN_ENTITY_ACCOUNT_REQUIRED) or one that can no longer pay it — deactivated, unlinked from its cash account, another entity’s or another currency’s (PAYMENT_RUN_ENTITY_ACCOUNT_INVALID) — or any vendor has no payment method (PAYMENT_RUN_VENDORS_WITHOUT_METHOD), or any owner paid by ACH has no tax ID type (PAYMENT_RUN_OWNERS_WITHOUT_TAX_ID), naming them. Freezes each bill’s payment method from its vendor’s current one — revert to draft or a rejection clears it. Evaluates payment_run approval rules per entity on its share, per payment group on its total and org-wide on the run total (each bill’s amount_to_pay, or its open balance when unset). A matching rule holds the run in pending_approval and materializes one request per triggering evaluation (visible in the Approval Inbox); no matching rule takes the run straight to approved. Either way, approval only LOCKS INTENT — the bills stay reserved and NO payments are posted here. payment_out generation + GL posting happen later, when an owner/admin marks each entity paid (POST /:id/entities/{legalEntityId}/mark-paid).

Required scope: payment-runs:write

Error codes: VALIDATION_FAILED, PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, PAYMENT_RUN_SUBMIT_FORBIDDEN, PAYMENT_RUN_ENTITY_ACCOUNT_REQUIRED, PAYMENT_RUN_ENTITY_ACCOUNT_INVALID, PAYMENT_RUN_VENDORS_WITHOUT_METHOD, PAYMENT_RUN_OWNERS_WITHOUT_TAX_ID, PAYMENT_RUN_GENERATION_STALE_BILLS, PAYMENT_RUN_TOO_MANY_BILLS, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/submit' \  -H 'Idempotency-Key: string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/payment-runs/{id}/withdraw

The creator’s fast path off an approval gate. pending_approval only — withdraws the open approval request and returns the run to draft. Submitter-enforced by the approval engine: any other org member gets 403. Bill reservations are kept — only the approval request is cancelled, not the run’s bill selection.

Required scope: payment-runs:write

Error codes: PAYMENT_RUN_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, PAYMENT_RUN_INVALID_STATUS, FORBIDDEN, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key*string

Client-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/payment-runs/string/withdraw' \  -H 'Idempotency-Key: string'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}