stabisoDocs

API reference

ACH debits

ACH debits of US customers: a customer's authorization to debit its US account (CCD for a business, PPD for a person), approved by a person; the invoices due proposed and debited into receipts that wait in transit until the bank shows the money; and the debits released in a NACHA file, which the person uploads in their bank's online banking.

Operation Summary Scope Idempotency-Key
PUT /v1/ach-authorizations/{authorization_id}/account Change the account of an ACH authorization draft
POST /v1/ach-authorizations/{authorization_id}/revoke Revoke an ACH authorization draft
POST /v1/ach-debit-exports Release ACH debits in a NACHA file post required
POST /v1/entities/{entity}/ach-debit-proposals Suggest invoices to debit by ACH read
POST /v1/entities/{entity}/ach-debit-runs Debit the invoices of a proposal draft required
GET /v1/entities/{entity}/ach-debits List ACH debits read
GET /v1/entities/{entity}/customers/{party}/ach-authorizations List a customer's ACH debit authorizations read
POST /v1/entities/{entity}/customers/{party}/ach-authorizations Record a customer's ACH debit authorization draft required

PUT /v1/ach-authorizations/{authorization_id}/account

Change the account of an ACH authorization

A new account holder's name applies at once; a new account waits for a person who may approve (pending_change), and nothing is debited under the authorization meanwhile. 409 when it is not active or a change of it already waits; 403 for an agent.

Required scope draft (admin implies every scope)
Idempotency-Key not used
Operation id change_authorization_account_v1_ach_authorizations__authorization_id__account_put

Parameters

In Name Type Required Description
path authorization_id string (uuid) yes Authorization id (GET /v1/entities/{entity}/customers/{party}/ach-authorizations).

Request body

application/json (required): AuthorizationAccountInput

Field Type Required Description
account_holder string or null Who holds the account. (min length 1; max length 140)
routing_number string yes The bank's ABA routing number. (max length 20)
account_number string yes The account number. (min length 4; max length 20)
account_type "checking" | "savings" checking or savings. (default "checking")

Example request

curl -X PUT "$ERP_URL/v1/ach-authorizations/3fa85f64-5717-4562-b3fc-2c963f66afa6/account" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "account_number": "4400221188",
  "routing_number": "011000015"
}'

Responses

Status Meaning Body
200 OK AuthorizationOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "entity": "string",
  "customer": "string",
  "customer_name": "string",
  "reference": "string",
  "signed_on": "2026-09-21",
  "account_holder": "string",
  "routing_number": "string",
  "account_number": "string",
  "account_type": "checking",
  "sec": "CCD",
  "recurring": true,
  "notice_days": 1,
  "status": "active",
  "last_collected_on": "2026-09-21",
  "pending_change": {
    "approval_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "account",
    "routing_number": "string",
    "account_number": "string",
    "account_type": "checking",
    "account_holder": "string",
    "requested_by": {}
  },
  "revoked_on": "2026-09-21",
  "created_by": {},
  "created_at": "2026-09-21T09:30:00Z"
}

POST /v1/ach-authorizations/{authorization_id}/revoke

Revoke an ACH authorization

The customer withdrew the authorization: nothing more is debited under it. Debits made already stay; reverse a receipt that is not to be sent. 409 when it is not active or a change of it waits for approval; 403 for an agent.

Required scope draft (admin implies every scope)
Idempotency-Key not used
Operation id revoke_authorization_v1_ach_authorizations__authorization_id__revoke_post

Parameters

In Name Type Required Description
path authorization_id string (uuid) yes Authorization id (GET /v1/entities/{entity}/customers/{party}/ach-authorizations).

Example request

curl -X POST "$ERP_URL/v1/ach-authorizations/3fa85f64-5717-4562-b3fc-2c963f66afa6/revoke" \
  -H "Authorization: Bearer $ERP_KEY"

Responses

Status Meaning Body
200 OK AuthorizationOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "entity": "string",
  "customer": "string",
  "customer_name": "string",
  "reference": "string",
  "signed_on": "2026-09-21",
  "account_holder": "string",
  "routing_number": "string",
  "account_number": "string",
  "account_type": "checking",
  "sec": "CCD",
  "recurring": true,
  "notice_days": 1,
  "status": "active",
  "last_collected_on": "2026-09-21",
  "pending_change": {
    "approval_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "account",
    "routing_number": "string",
    "account_number": "string",
    "account_type": "checking",
    "account_holder": "string",
    "requested_by": {}
  },
  "revoked_on": "2026-09-21",
  "created_by": {},
  "created_at": "2026-09-21T09:30:00Z"
}

POST /v1/ach-debit-exports

Release ACH debits in a NACHA file

Release posted ACH debits as a NACHA ACH file of debits (service class 225, CCD or PPD batches).

The rules of every payment file apply: agents cannot release (403), and the person who created a debit only where the AI reviewer stands in (at the screen, with a fresh passkey touch); each is sent once (409 when already sent); a test copy makes no file (409). The debit date is the receipt's date, at the earliest the Federal Reserve business day after the next one, rolled forward onto a business day. 422 when a debit cannot be released (see problems in GET /v1/entities/{entity}/ach-debits) or is no ACH debit. Download the file with GET /v1/payment-exports/{id}/file.

Required scope post (admin implies every scope)
Idempotency-Key required
Operation id export_debits_v1_ach_debit_exports_post

Request body

application/json (required): AchExportInput

Field Type Required Description
entity string yes Code (or id) of the company collecting, e.g. US01.
debits array of string (uuid) yes Ids of the receipts to release (GET /v1/entities/{entity}/ach-debits): posted, not yet sent, each listed once. (min items 1; max items 5000)

Example request

curl -X POST "$ERP_URL/v1/ach-debit-exports" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "debits": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "entity": "US01"
}'

Responses

Status Meaning Body
201 Created PaymentExportOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "entity": "string",
  "message_id": "string",
  "format": "string",
  "filename": "string",
  "sha256": "string",
  "payment_count": 1,
  "control_sum": "string",
  "totals": [
    {
      "currency": "string",
      "amount": "string"
    }
  ],
  "created_by": {},
  "created_at": "2026-09-21T09:30:00Z",
  "payments": [
    "string"
  ],
  "execution_dates": [
    {
      "payment": "string",
      "currency": "string",
      "requested": "2026-09-21",
      "execution_date": "2026-09-21",
      "adjusted": true,
      "calendars": [
        "string"
      ],
      "convention": "string",
      "dataset_version": "string"
    }
  ]
}

POST /v1/entities/{entity}/ach-debit-proposals

Suggest invoices to debit by ACH

Open posted USD sales invoices of customers with an ACH authorization that are due by the debit date, or whose cash discount is still open on it (debited less the discount), with the authorization each is debited under. Nothing is stored; confirm the reviewed lines with POST /v1/entities/{entity}/ach-debit-runs. The date moves to the first Federal Reserve business day the file can reach (the day after the next one). skipped lists the invoices of such customers that cannot be debited on the date, and why (no usable authorization, the notice too short, not due yet); problems what stops debiting at all (no US bank account in USD, no payments-in-transit account).

Required scope read (admin implies every scope)
Idempotency-Key not used
Operation id propose_debits_v1_entities__entity__ach_debit_proposals_post

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).

Request body

application/json (required): AchCriteria

Field Type Required Description
collection_date string (date) yes When the money is to be debited.
customers array of string or null Only these customers (codes); default all with one.
bank_account string or null The company's US bank account debited into (its GL code); default the first USD account with a routing number.

Example request

curl -X POST "$ERP_URL/v1/entities/CH01/ach-debit-proposals" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "collection_date": "2026-11-20",
  "customers": [
    "C-LA"
  ]
}'

Responses

Status Meaning Body
200 OK AchProposal
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "entity": "string",
  "collection_date": "2026-09-21",
  "bank_account": "string",
  "bank_account_number": "string",
  "company_id": "string",
  "lines": [
    {
      "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "number": "string",
      "customer": "string",
      "customer_name": "string",
      "document_date": "2026-09-21",
      "due_date": "2026-09-21",
      "open": "string",
      "amount": "string",
      "discount": "string",
      "authorization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "authorization_reference": "string",
      "sec": "CCD"
    }
  ],
  "skipped": [
    {
      "document_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "number": "string",
      "customer": "string",
      "customer_name": "string",
      "open": "string",
      "code": "string",
      "reason": "string",
      "details": {}
    }
  ],
  "total": "string",
  "problems": [
    {
      "code": "string",
      "message": "string",
      "details": {}
    }
  ]
}

POST /v1/entities/{entity}/ach-debit-runs

Debit the invoices of a proposal

Create the receipts of a reviewed proposal, all or none: one per authorization, dated the debit date and booked on the payments-in-transit account until the bank statement shows the money, each through the approval policy. 422 when an invoice is not a posted USD sales invoice, is listed twice, its customer has no usable authorization or its notice is too short. Release them with POST /v1/ach-debit-exports.

Required scope draft (admin implies every scope)
Idempotency-Key required
Operation id run_debits_v1_entities__entity__ach_debit_runs_post

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).

Request body

application/json (required): AchRunInput

Field Type Required Description
collection_date string (date) yes The day the money is debited.
bank_account string or null The US bank account debited into (see the proposal).
lines array of AchRunLine yes The invoices to debit, each once. (min items 1; max items 5000)

Example request

curl -X POST "$ERP_URL/v1/entities/CH01/ach-debit-runs" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "collection_date": "2026-11-20",
  "lines": [
    {
      "amount": "1500.00",
      "document": "INV-2026-000003"
    }
  ]
}'

Responses

Status Meaning Body
201 Created AchRunResult
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "entity": "string",
  "collection_date": "2026-09-21",
  "debits": [
    {
      "payment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "customer": "string",
      "customer_name": "string",
      "authorization_reference": "string",
      "amount": "string",
      "documents": [
        "string"
      ],
      "status": "string",
      "approval_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  ],
  "posted": 1,
  "pending_approval": 1
}

GET /v1/entities/{entity}/ach-debits

List ACH debits

The receipts debited by ACH, newest first (at most 200): authorization, entry class, debit date, whether the bank booked them, the file they were sent in, and problems, what stops releasing one now.

Required scope read (admin implies every scope)
Operation id list_debits_v1_entities__entity__ach_debits_get

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
query sent boolean or null false: not yet in a file; true: sent. Default both.

Example request

curl "$ERP_URL/v1/entities/CH01/ach-debits" \
  -H "Authorization: Bearer $ERP_KEY"

Responses

Status Meaning Body
200 OK array of AchDebitRow
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

[
  {
    "payment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "number": "string",
    "customer": "string",
    "customer_name": "string",
    "authorization_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "authorization_reference": "string",
    "sec": "CCD",
    "collection_date": "2026-09-21",
    "amount": "string",
    "currency": "string",
    "status": "string",
    "bank_account": "string",
    "bank_status": "executed",
    "export": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "message_id": "string",
      "created_at": "2026-09-21T09:30:00Z",
      "created_by": {}
    },
    "problems": [
      {
        "code": "string",
        "message": "string",
        "details": {}
      }
    ],
    "bank_refusal": {
      "kind": "rejected",
      "code": null,
      "text": null,
      "source": "string",
      "on": "2026-09-21",
      "status": "pending_approval"
    }
  }
]

GET /v1/entities/{entity}/customers/{party}/ach-authorizations

List a customer's ACH debit authorizations

The customer's authorizations to debit its US account, newest signature first, each with its status (pending_approval, active, rejected, revoked, used for one debit only made), its entry class (CCD, PPD) and any change waiting for approval. 404 for an unknown customer.

Required scope read (admin implies every scope)
Operation id list_authorizations_v1_entities__entity__customers__party__ach_authorizations_get

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
path party string yes Customer code, e.g. C-DE, or its id. A vendor is not a customer: its statement is GET .../vendors/{party}/statement.

Example request

curl "$ERP_URL/v1/entities/CH01/customers/C-DE/ach-authorizations" \
  -H "Authorization: Bearer $ERP_KEY"

Responses

Status Meaning Body
200 OK array of AuthorizationOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

[
  {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "entity": "string",
    "customer": "string",
    "customer_name": "string",
    "reference": "string",
    "signed_on": "2026-09-21",
    "account_holder": "string",
    "routing_number": "string",
    "account_number": "string",
    "account_type": "checking",
    "sec": "CCD",
    "recurring": true,
    "notice_days": 1,
    "status": "active",
    "last_collected_on": "2026-09-21",
    "pending_change": {
      "approval_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "kind": "account",
      "routing_number": null,
      "account_number": null,
      "account_type": null,
      "account_holder": null,
      "requested_by": {}
    },
    "revoked_on": "2026-09-21",
    "created_by": {},
    "created_at": "2026-09-21T09:30:00Z"
  }
]

POST /v1/entities/{entity}/customers/{party}/ach-authorizations

Record a customer's ACH debit authorization

Record the authorization the customer gave to debit its US account: the account on its card unless another is given, CCD for a business and PPD for a person, the next number (DA-00001) unless the form has its own reference. It waits for a person who may approve (POST /v1/approvals/{id}/approve) before anything is debited under it; agents cannot record authorizations (403). 422 when the company does not collect by ACH (its country), the account is missing or not a valid routing or account number, or the date is after today; 409 when the reference is already used in the company.

Required scope draft (admin implies every scope)
Idempotency-Key required
Operation id create_authorization_v1_entities__entity__customers__party__ach_authorizations_post

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
path party string yes Customer code, e.g. C-DE, or its id. A vendor is not a customer: its statement is GET .../vendors/{party}/statement.

Request body

application/json (required): AuthorizationInput

Field Type Required Description
signed_on string (date) yes The day the customer signed (or agreed online to) the authorization.
reference string or null The authorization's reference, unique for the company in any case; default the next number (DA-00001). 1 to 35 letters, digits or / ( ) . , ' + -. (pattern ^[A-Za-z0-9/().,'+\-]{1,35}$)
account_holder string or null Who holds the account debited; default the customer's name. (min length 1; max length 140)
routing_number string or null The ABA routing number of the customer's bank (nine digits); default the one on the customer's card. (max length 20)
account_number string or null The customer's account number (4 to 17 digits); default the one on the customer's card. (min length 4; max length 20)
account_type "checking" | "savings" or null checking or savings; default the customer's card, else checking.
recurring boolean true: every invoice is debited when due; false: one debit only, after which the authorization is used. (default true)
notice_days integer or null Calendar days the customer is told of a debit before its date (the invoice tells it); default the company's country (10 in the US, for a debit whose amount varies). Shorter only as agreed with the customer. (min 1; max 60)

Example request

curl -X POST "$ERP_URL/v1/entities/CH01/customers/C-DE/ach-authorizations" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "recurring": true,
  "signed_on": "2026-10-01"
}'

Responses

Status Meaning Body
201 Created AuthorizationOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "entity": "string",
  "customer": "string",
  "customer_name": "string",
  "reference": "string",
  "signed_on": "2026-09-21",
  "account_holder": "string",
  "routing_number": "string",
  "account_number": "string",
  "account_type": "checking",
  "sec": "CCD",
  "recurring": true,
  "notice_days": 1,
  "status": "active",
  "last_collected_on": "2026-09-21",
  "pending_change": {
    "approval_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "kind": "account",
    "routing_number": "string",
    "account_number": "string",
    "account_type": "checking",
    "account_holder": "string",
    "requested_by": {}
  },
  "revoked_on": "2026-09-21",
  "created_by": {},
  "created_at": "2026-09-21T09:30:00Z"
}

Schemas

AchCriteria

Field Type Required Description
collection_date string (date) yes When the money is to be debited.
customers array of string or null Only these customers (codes); default all with one.
bank_account string or null The company's US bank account debited into (its GL code); default the first USD account with a routing number.

AchDebitRow

Field Type Required Description
payment_id string (uuid) yes Id of the receipt.
number string or null yes Receipt number: the entry's id in the file.
customer string yes Customer code.
customer_name string yes Customer name.
authorization_id string (uuid) yes The authorization.
authorization_reference string yes Its reference.
sec "CCD" | "PPD" yes CCD or PPD.
collection_date string (date) yes The day debited (the receipt's date).
amount string yes Amount.
currency string yes Always USD.
status string yes Receipt status: posted, pending_approval, reversed.
bank_account string yes The bank account debited into.
bank_status "executed" | "in_transit" or null yes in_transit until a bank line shows the money arrived, then executed.
export ExportInfo or null yes The NACHA file it was sent in, if any.
problems array of BlockerOut yes What stops releasing it now.
bank_refusal BankRefusal or null When the customer's bank returned it (an R code).

AchExportInput

Field Type Required Description
entity string yes Code (or id) of the company collecting, e.g. US01.
debits array of string (uuid) yes Ids of the receipts to release (GET /v1/entities/{entity}/ach-debits): posted, not yet sent, each listed once. (min items 1; max items 5000)

AchLine

Field Type Required Description
document_id string (uuid) yes Id of the invoice.
number string yes Invoice number.
customer string yes Customer code.
customer_name string yes Customer name.
document_date string (date) yes Invoice date: the customer's notice.
due_date string (date) yes Due date.
open string yes Open amount in USD.
amount string yes Amount to debit: the open amount less the discount.
discount string yes Cash discount taken, when the date is within the invoice's discount period.
authorization_id string (uuid) yes The authorization debited under.
authorization_reference string yes Its reference.
sec "CCD" | "PPD" yes CCD or PPD.

AchProposal

Field Type Required Description
entity string yes Code of the company.
collection_date string (date) yes The day the money is debited: the date asked for, at the earliest the next business day of the Federal Reserve after today.
bank_account string or null yes The bank account debited into.
bank_account_number string or null Its account number at the bank, where the money goes.
company_id string or null yes The company's ACH identification in the file: 1 and its EIN, else the account's routing number.
lines array of AchLine yes The invoices proposed.
skipped array of SkippedInvoice yes Invoices due of customers with an authorization that are not proposed, and why.
total string yes Sum of the amounts proposed.
problems array of BlockerOut yes What stops debiting at all (no US bank account in USD, no payments-in-transit account).

AchRunDebit

Field Type Required Description
payment_id string (uuid) yes Id of the receipt created.
customer string yes Customer code.
customer_name string yes Customer name.
authorization_reference string yes The authorization debited under.
amount string yes Amount debited.
documents array of string yes Invoice numbers settled.
status string yes posted or pending_approval.
approval_id string (uuid) or null When it waits for approval.

AchRunInput

Field Type Required Description
collection_date string (date) yes The day the money is debited.
bank_account string or null The US bank account debited into (see the proposal).
lines array of AchRunLine yes The invoices to debit, each once. (min items 1; max items 5000)

AchRunLine

Field Type Required Description
document string yes Invoice id or number.
amount decimal string yes Amount to debit, at most the open amount. (greater than 0)
discount decimal string Cash discount taken (see the proposal), only within the discount period. (min 0; default "0")

AchRunResult

Field Type Required Description
entity string yes Code of the company.
collection_date string (date) yes The day the money is debited.
debits array of AchRunDebit yes One receipt per authorization.
posted integer yes How many are posted.
pending_approval integer yes How many wait for approval.

AuthorizationAccountInput

Field Type Required Description
account_holder string or null Who holds the account. (min length 1; max length 140)
routing_number string yes The bank's ABA routing number. (max length 20)
account_number string yes The account number. (min length 4; max length 20)
account_type "checking" | "savings" checking or savings. (default "checking")

AuthorizationChange

Field Type Required Description
approval_id string (uuid) yes The approval request a person decides.
kind "account" | "new" yes new: the authorization itself waits; account: a new account of the customer.
routing_number string or null The proposed routing number.
account_number string or null The proposed account number.
account_type "checking" | "savings" or null The proposed kind.
account_holder string or null The proposed holder.
requested_by object yes Who asked.

AuthorizationInput

Field Type Required Description
signed_on string (date) yes The day the customer signed (or agreed online to) the authorization.
reference string or null The authorization's reference, unique for the company in any case; default the next number (DA-00001). 1 to 35 letters, digits or / ( ) . , ' + -. (pattern ^[A-Za-z0-9/().,'+\-]{1,35}$)
account_holder string or null Who holds the account debited; default the customer's name. (min length 1; max length 140)
routing_number string or null The ABA routing number of the customer's bank (nine digits); default the one on the customer's card. (max length 20)
account_number string or null The customer's account number (4 to 17 digits); default the one on the customer's card. (min length 4; max length 20)
account_type "checking" | "savings" or null checking or savings; default the customer's card, else checking.
recurring boolean true: every invoice is debited when due; false: one debit only, after which the authorization is used. (default true)
notice_days integer or null Calendar days the customer is told of a debit before its date (the invoice tells it); default the company's country (10 in the US, for a debit whose amount varies). Shorter only as agreed with the customer. (min 1; max 60)

AuthorizationOut

Field Type Required Description
id string (uuid) yes Id of the authorization.
entity string yes Code of the company collecting.
customer string yes Code of the customer.
customer_name string yes Name of the customer.
reference string yes The authorization's reference.
signed_on string (date) yes Date the customer signed it.
account_holder string yes Who holds the account debited.
routing_number string yes ABA routing number of the customer's bank.
account_number string yes The account debited.
account_type "checking" | "savings" yes checking or savings.
sec "CCD" | "PPD" yes The entry class of its debits: CCD for a business, PPD for a person (from the customer's card).
recurring boolean yes Every invoice when due (true) or one debit only.
notice_days integer yes Days' notice of a debit.
status "active" | "pending_approval" | "rejected" | "revoked" | "used" yes pending_approval (a person decides), active, rejected, revoked or used (one debit only, made).
last_collected_on string (date) or null yes Date of the last debit sent.
pending_change AuthorizationChange or null yes What waits for approval, if anything.
revoked_on string (date) or null yes When it was revoked.
created_by object yes Who recorded it.
created_at string (date-time) yes When it was recorded (UTC).
Stabiso, the Enterprise System of Record · generated from the code and its guides · release 3262ae655e81