Acreum Docs
Parties

Party Categories

List party categories

GET
/v1/parties/categories

Required scope: parties:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: code

Value in"-created_at""created_at""-code""code""-name""name"
search?string

Case-insensitive substring match on: code, name.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/parties/categories'
{  "data": [    {      "code": "string",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_system": true,      "name": "string",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}

Create party category

POST
/v1/parties/categories

Required scope: parties:write

Error codes: VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, 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
code*string
Length1 <= length <= 64
name*string
Length1 <= length <= 128

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/parties/categories' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "code": "string",  "name": "string"}'
{  "data": {    "code": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_system": true,    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get party category by id

GET
/v1/parties/categories/{id}

Required scope: parties:read

Error codes: 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/parties/categories/string'
{  "data": {    "code": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_system": true,    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Delete party category

DELETE
/v1/parties/categories/{id}

Required scope: parties:write

Error codes: NOT_FOUND, CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

Possible error codes: NOT_FOUND

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -X DELETE 'https://api.acreum.io/v1/parties/categories/string'
{  "code": "DOCUMENT_ALREADY_POSTED",  "detail": "Document doc_01 is already posted.",  "errors": [    {      "code": "INVALID_VALUE",      "field": "amount",      "message": "must be > 0"    }  ],  "instance": "/v1/documents/doc_01/post",  "next_action": "fix_step",  "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",  "retryable": true,  "status": 409,  "title": "Document already posted",  "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}

Update party category

PUT
/v1/parties/categories/{id}

Required scope: parties:write

Error codes: NOT_FOUND, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
name?string
Length1 <= length <= 128

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/parties/categories/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "code": "string",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_system": true,    "name": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}