Acreum Docs
Organization structure

Payments (Legal Entities)

GET
/v1/legal-entities/{id}/payments

Current Spark Payments state, served from our database — this endpoint does not call Moov, so a Moov outage cannot take the legal-entity page down. Freshness is owned by the scheduled reconciliation job; stale: true means the stored status is older than its refresh cadence and should be treated with suspicion. not_connected means the legal entity has no Moov account at all. To force a read-through (right after the onboarding Drop closes, say) call POST /v1/legal-entities/{id}/payments/refresh.

Required scope: payments:read

Error codes: VALIDATION_FAILED, 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/legal-entities/string/payments'
{  "data": {    "last_synced_at": "2019-08-24T14:15:22Z",    "moov_account_id": "string",    "stale": true,    "status": "not_connected"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/{id}/payments/bank-accounts

Every active bank account on the legal entity, with whether a Moov payment method is stored (linked_for_payments), whether one could be created (linkable), and whether Moov will actually debit it right now (funding_account_status). The last is read from Moov's live payment-method list on each call, so an account Moov disabled after an ACH return reports unusable rather than linked-and-ready, with the remedy Moov documents for that state in status_detail; if Moov cannot be reached it reports unknown instead of failing the request.

Required scope: payments:read

Pagination: cursor-optional

Error codes: LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..500. Omit to receive the full collection in one page.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities/string/payments/bank-accounts'
{  "data": [    {      "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",      "funding_account_status": "ready",      "institution_name": "string",      "linkable": true,      "linked_for_payments": true,      "name": "string",      "status_detail": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/legal-entities/{id}/payments/bank-accounts/{bankAccountId}/link

Exchanges the existing Plaid connection for a Moov processor token and registers the bank as a funding source. Requires a live Plaid connection because funds are pulled from this side, and Moov only permits debits from a verified account. An account that is already linked is re-checked against Moov's live payment-method list: if Moov will not debit it (typically after an ACH return) this refuses with PAYMENTS_FUNDING_ACCOUNT_DISABLED instead of reporting already_linked. Read context.required_action on that error — add_different_bank_account for an errored account, where re-linking cannot work, or reverify for a verificationFailed one, which Moov documents as recoverable and which must NOT be replaced.

Required scope: payments:write

Error codes: VALIDATION_FAILED, PAYMENTS_ACCOUNT_NOT_CONNECTED, PAYMENTS_BANK_ACCOUNT_NOT_FOUND, PAYMENTS_BANK_ACCOUNT_NOT_LINKABLE, PAYMENTS_FUNDING_ACCOUNT_DISABLED, PAYMENTS_PROVIDER_ERROR, PAYMENTS_NOT_CONFIGURED, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
bankAccountId*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/legal-entities/string/payments/bank-accounts/string/link' \  -H 'Idempotency-Key: string'
{  "data": {    "already_linked": true,    "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff",    "moov_payment_method_id": "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/legal-entities/{id}/payments/connect

Creates the legal entity's Moov business account (or reuses the one already carrying its foreignID) and requests the Spark Payments capabilities. Prefills only business facts we already hold — legal name, EIN and business address. Representatives, beneficial owners and identity documents are never sent from here: the browser collects those directly through the embedded Moov onboarding Drop, using a token from POST /v1/legal-entities/{id}/payments/onboarding-token. Safe to retry; an already-connected legal entity returns its current status unchanged.

Required scope: payments:write

Error codes: VALIDATION_FAILED, PAYMENTS_LEGAL_ENTITY_NOT_FOUND, PAYMENTS_BUSINESS_TYPE_REQUIRED, PAYMENTS_BUSINESS_TYPE_INVALID, PAYMENTS_PROVIDER_ERROR, PAYMENTS_NOT_CONFIGURED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE

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
business_type?string

Moov business type for this legal entity. Omit to derive it from the entity's entity_type; required when that mapping is ambiguous (other), and accepted as an override when it is not (e.g. publicCorporation instead of the suggested privateCorporation). An unaccepted value returns 422 PAYMENTS_BUSINESS_TYPE_INVALID with the full list in context.valid_business_types.

Value in"soleProprietorship""llc""partnership""privateCorporation""publicCorporation""unincorporatedAssociation""trust""unincorporatedNonProfit""incorporatedNonProfit""governmentEntity"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/payments/connect' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "last_synced_at": "2019-08-24T14:15:22Z",    "moov_account_id": "string",    "stale": true,    "status": "not_connected"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/legal-entities/{id}/payments/onboarding-token

Issues a short-lived Moov access token for the browser-side <moov-onboarding> Drop, scoped exclusively to this legal entity's Moov account. Call it once to open the Drop (scope_set: initial) and again when the Drop begins writing representatives and ownership (scope_set: full). Returns 409 PAYMENTS_ACCOUNT_NOT_CONNECTED when the legal entity has no Moov account yet — connect it first; an account-less token would carry our platform key's authority and is never minted. Hand the token straight to the Drop: do not store it, log it, or send it anywhere other than Moov.

Required scope: payments:write

Error codes: VALIDATION_FAILED, PAYMENTS_LEGAL_ENTITY_NOT_FOUND, PAYMENTS_ACCOUNT_NOT_CONNECTED, PAYMENTS_PROVIDER_ERROR, PAYMENTS_NOT_CONFIGURED, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
scope_set?string

Which phase of the embedded <moov-onboarding> Drop the token is for. initial grants read-only access to this legal entity's Moov account plus document upload — enough to open the dialog — and is the default, so an omitted scope_set never over-grants. full adds the writes the Drop needs once the user starts entering representatives and ownership; ask for it explicitly at that point. Both are scoped exclusively to this legal entity's Moov account; neither can create accounts or touch another account.

Default"initial"
Value in"initial""full"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/payments/onboarding-token' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "access_token": "string",    "expires_in": 1736964352,    "facilitator_account_id": "67bdcbcb-28d5-4494-ad7b-a5fd4f0f8a50",    "scope": "string",    "token_type": "Bearer"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/legal-entities/{id}/payments/refresh

Re-reads this legal entity's account from Moov and returns the updated status. Use it when a stale answer is unacceptable — immediately after the onboarding Drop closes, for example. Ordinary page loads should use GET /v1/legal-entities/{id}/payments, which is served from our database and does not depend on Moov being reachable. Returns 409 PAYMENTS_ACCOUNT_NOT_CONNECTED when the legal entity has no Moov account yet.

Required scope: payments:read

Error codes: VALIDATION_FAILED, PAYMENTS_ACCOUNT_NOT_CONNECTED, PAYMENTS_PROVIDER_ERROR, PAYMENTS_NOT_CONFIGURED, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/payments/refresh'
{  "data": {    "last_synced_at": "2019-08-24T14:15:22Z",    "moov_account_id": "string",    "stale": true,    "status": "not_connected"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/legal-entities/{id}/payments/transfers

Deprecated. Sunset on 2027-03-01T00:00:00Z. Replacement: POST /v1/payment-runs/:id/send-payments. Moves money bank-to-bank in a single Moov transfer but writes no document — the payment never reaches the ledger or the bill it paid. Pay a single bill as a run of one via the replacement route instead.

Required scope: payments:write

Error codes: VALIDATION_FAILED, PAYMENTS_ACCOUNT_NOT_CONNECTED, PAYMENTS_SOURCE_BANK_NOT_LINKED, PAYMENTS_SOURCE_BANK_AMBIGUOUS, PAYMENTS_SOURCE_BANK_NOT_ELIGIBLE, PAYMENTS_VENDOR_BANK_MISSING, PAYMENTS_IDEMPOTENCY_KEY_REUSED, PAYMENTS_TRANSFER_PROCESSING, PAYMENTS_TRANSFER_IN_FLIGHT, PAYMENTS_TRANSFER_NOT_FOUND, PAYMENTS_PROVIDER_ERROR, PAYMENTS_NOT_CONFIGURED, LEGAL_ENTITY_NOT_IN_SCOPE, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
amount_cents*number

Amount in cents. 24750 = $247.50.

Rangevalue <= 2147483647
bank_account_id?string
Formatuuid
description?string
idempotency_key*string

Replay guard, minted once per payment intent (not per attempt). Retrying with the same key returns the original transfer.

party_id*string

The vendor being paid.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/payments/transfers' \  -H 'Content-Type: application/json' \  -d '{  "amount_cents": 24750,  "idempotency_key": "string",  "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1"}'
{  "data": {    "amount_cents": 24750,    "created_at": "string",    "currency": "USD",    "description": "string",    "failure_reason": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "moov_transfer_id": "string",    "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",    "status": "created"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/legal-entities/{id}/payments/transfers/{transferId}

Required scope: payments:read

Error codes: PAYMENTS_TRANSFER_NOT_FOUND, PAYMENTS_PROVIDER_ERROR, LEGAL_ENTITY_NOT_IN_SCOPE, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
transferId*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/legal-entities/string/payments/transfers/string'
{  "data": {    "amount_cents": 24750,    "created_at": "string",    "currency": "USD",    "description": "string",    "failure_reason": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "moov_transfer_id": "string",    "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1",    "status": "created"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}