Acreum Docs
Properties & leasing

Tenant Sales

GET
/v1/contracts/{id}/sales-category-mappings

The tenant's own sales labels mapped to the org's categories, each over a half-open [effective_from, effective_to) range. Used by CSV import.

Required scope: sales:read

Pagination: none

Error codes: NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/contracts/string/sales-category-mappings'
{  "data": [    {      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704",      "source_label": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/contracts/{id}/sales-category-mappings

Full replacement; [] clears them. effective_to is exclusive and null for open-ended. One source label may not map twice on the same day.

Required scope: sales:write

Error codes: VALIDATION_FAILED, NOT_FOUND, SALES_CONFIG_INVALID

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
mappings*array<>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X PUT 'https://api.acreum.io/v1/contracts/string/sales-category-mappings' \  -H 'Content-Type: application/json' \  -d '{  "mappings": [    {      "effective_from": "2019-08-24",      "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704",      "source_label": "string"    }  ]}'
{  "data": [    {      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704",      "source_label": "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/contracts/{id}/sales-config

The reporting obligation: cadence, due days, annual statement terms, measurement basis and the required categories with their allowed deductions. effective_reporting_start_date is the stored start, else the lease anchor (rent commencement, else start date). 404 SALES_CONFIG_NOT_FOUND when the lease does not report sales.

Required scope: sales:read

Error codes: NOT_FOUND, SALES_CONFIG_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/contracts/string/sales-config'
{  "data": {    "annual_statement_certified": true,    "annual_statement_due_days": 0,    "annual_statement_required": true,    "categories": [      {        "allowed_deductions": [          "sales_tax"        ],        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "effective_reporting_start_date": "2019-08-24",    "fiscal_year_end_month": 1,    "measurement_basis": "lease_year",    "reminder_emails": "inherit",    "report_due_days": 0,    "reporting_cadence": "monthly",    "reporting_start_date": "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  }}
PUT
/v1/contracts/{id}/sales-config

Full replacement, so PUT: an omitted optional field takes its default (monthly, due 20 days after period end, annual statement required and due 60 days after the measurement year, not certified, calendar year, reminder emails inherit the org switch), and allowed_deductions defaults to sales tax and returns. The category list replaces the old one. Every category must be an active category of the org. 422 SALES_CONFIG_INVALID when a calendar change (cadence, basis, fiscal month, reporting start, annual statement) would take a submitted report off the reporting calendar; errors[] names each period. 422 SALES_CONFIG_NOT_A_LEASE when the contract is not a lease: only a lease reports sales.

Required scope: sales:write

Error codes: VALIDATION_FAILED, NOT_FOUND, SALES_CONFIG_INVALID, SALES_CONFIG_NOT_A_LEASE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
annual_statement_certified?boolean
Defaultfalse
annual_statement_due_days?number
Range0 <= value
Default60
annual_statement_required?boolean
Defaulttrue
categories*array<>

At least one; each category at most once.

fiscal_year_end_month?|

Required (1-12) exactly when measurement_basis is tenant_fiscal.

Range1 <= value <= 12
measurement_basis?string
Default"calendar_year"
Value in"lease_year""calendar_year""tenant_fiscal"
reminder_emails?string
Default"inherit"
Value in"inherit""on""off"
report_due_days?number
Range0 <= value
Default20
reporting_cadence?string
Default"monthly"
Value in"monthly""quarterly""annual"
reporting_start_date?|

Omit or null to derive it from the lease.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/contracts/string/sales-config' \  -H 'Content-Type: application/json' \  -d '{  "categories": [    {      "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"    }  ]}'
{  "data": {    "annual_statement_certified": true,    "annual_statement_due_days": 0,    "annual_statement_required": true,    "categories": [      {        "allowed_deductions": [          "sales_tax"        ],        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "effective_reporting_start_date": "2019-08-24",    "fiscal_year_end_month": 1,    "measurement_basis": "lease_year",    "reminder_emails": "inherit",    "report_due_days": 0,    "reporting_cadence": "monthly",    "reporting_start_date": "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/contracts/{id}/sales/reminders

Every reminder email sent (or attempted) for the lease, newest first: its report period, kind, sequence, status, the addresses it went to, attempts and the last error. search matches the last error.

Required scope: sales:read

Pagination: cursor

Error codes: NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: -created_at

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

Case-insensitive substring match on: error.

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/contracts/string/sales/reminders'
{  "data": [    {      "attempt_count": 0,      "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",      "created_at": "2019-08-24T14:15:22Z",      "error": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_annual_statement": true,      "kind": "due_soon",      "period_end": "2019-08-24",      "period_start": "2019-08-24",      "recipients": [        "string"      ],      "sent_at": "2019-08-24T14:15:22Z",      "sequence": 0,      "status": "pending"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
GET
/v1/contracts/{id}/sales/summary

Reported sales by period and category (current submitted versions, last 24 months, newest first) with year-over-year change, plus the trailing 12 whole months: total sales, sales per square foot, the pre-tax subtotal of posted contract invoices minus contract credit memos (rent and the charges on the rent invoice; year-end recovery reconciliations excluded), and occupancy cost % (billed ÷ sales). Ratios are exact, 2 decimals, rounded half-up. 404 SALES_CONFIG_NOT_FOUND when the lease does not report sales.

Required scope: sales:read

Error codes: VALIDATION_FAILED, NOT_FOUND, SALES_CONFIG_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/contracts/string/sales/summary'
{  "data": {    "as_of": "2019-08-24",    "breakpoint_progress": {},    "currency_code": "USD",    "occupancy_cost_pct": "8.00",    "periods": [      {        "by_category": [          {            "name": "string",            "qualifying_amount": "1234.50",            "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"          }        ],        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "prior_year_total": "1234.50",        "qualifying_total": "1234.50",        "version": 0,        "yoy_change_pct": "8.00"      }    ],    "rentable_sqft": "1000.00",    "sales_per_sqft": "120.00",    "trailing_12_billed": "1234.50",    "trailing_12_total": "1234.50"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List sales categories

GET
/v1/sales/categories

The org's sales categories, active and inactive unless is_active filters them. search matches code or name.

Required scope: sales:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

is_active?boolean

Filter by active state. Omit to return both.

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: name

Value in"name""code"
search?string

Case-insensitive substring match on: name, code.

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/sales/categories'
{  "data": [    {      "code": "string",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_active": true,      "name": "string",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}

Create a sales category

POST
/v1/sales/categories

Adds a category. code is upper snake case and unique per org, inactive categories included.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_CATEGORY_CODE_TAKEN, 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
code*string

Upper snake case, unique per org.

Match^[A-Z][A-Z0-9_]*$
Length1 <= length <= 64
name*string
Length1 <= length <= 128

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/sales/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_active": true,    "name": "string",    "updated_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  }}

Update a sales category

PATCH
/v1/sales/categories/{id}

Renames, deactivates or reactivates a category. The code is fixed. Deactivating keeps every config and report that uses it intact; a config cannot newly require an inactive category.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_CATEGORY_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
is_active?boolean

Set false to retire the category; categories are never deleted.

name?string
Length1 <= length <= 128

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/sales/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_active": true,    "name": "string",    "updated_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  }}
GET
/v1/sales/imports

Newest first by default, each with its outcome counts as of now. search matches the file name.

Required scope: sales:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

status?string
Value in"open""committed""discarded"
cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: -created_at

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

Case-insensitive substring match on: file_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/sales/imports'
{  "data": [    {      "committed_at": "2019-08-24T14:15:22Z",      "counts": {        "blocked": 0,        "committed": 0,        "ready": 0,        "restatement": 0      },      "created_at": "2019-08-24T14:15:22Z",      "discarded_at": "2019-08-24T14:15:22Z",      "file_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "row_count": 0,      "status": "open",      "updated_at": "2019-08-24T14:15:22Z",      "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/sales/imports

Parses the CSV and stages its rows for review; nothing is reported until commit. Columns: contract_ref (contract id or external ref), period_start, period_end (YYYY-MM-DD or M/D/YYYY), category (a category code or name, or a label mapped on the lease's /sales-category-mappings), gross, and optional deduction columns named by deduction type. Header names are case-insensitive; other columns are ignored. At most 2 MiB and 5,000 rows. The same file cannot be uploaded twice while its import is open or committed.

Required scope: sales:write

Error codes: VALIDATION_FAILED, EMPTY_FILE, SALES_IMPORT_NOT_CSV, SALES_IMPORT_TOO_LARGE, SALES_IMPORT_FILE_INVALID, SALES_IMPORT_DUPLICATE_FILE, 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

multipart/form-data
  1. body
file*unknown

The CSV.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/sales/imports' \  -H 'Idempotency-Key: string' \  -F 'file=null'
{  "data": {    "committed_at": "2019-08-24T14:15:22Z",    "counts": {      "blocked": 0,      "committed": 0,      "ready": 0,      "restatement": 0    },    "created_at": "2019-08-24T14:15:22Z",    "discarded_at": "2019-08-24T14:15:22Z",    "file_name": "string",    "groups": [      {        "blocked_by": {          "code": "INVALID_DATE",          "message": "string"        },        "committed_report_id": "198d4e75-e95b-4ab5-9692-cad0eb4e9749",        "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",        "contract_title": "string",        "is_annual_statement": true,        "lines": [          {            "deductions": {              "property1": "string",              "property2": "string"            },            "gross_amount": "1234.50",            "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"          }        ],        "outcome": "ready",        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "prior_report_id": "b0ef8651-8992-480e-9b5c-31371fe53c1d",        "row_numbers": [          0        ]      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows": [      {        "issue": {          "code": "INVALID_DATE",          "message": "string"        },        "raw": {          "property1": "string",          "property2": "string"        },        "row_number": 0,        "status": "pending"      }    ],    "status": "open",    "updated_at": "2019-08-24T14:15:22Z",    "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/sales/imports/{id}

The import, its rows, and one group per (contract, period) saying what committing would do: ready (a new report), restatement (a new version of a submitted report), blocked (with the reason), or committed. Evaluated live: a mapping added since upload applies.

Required scope: sales:read

Error codes: SALES_IMPORT_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/sales/imports/string'
{  "data": {    "committed_at": "2019-08-24T14:15:22Z",    "counts": {      "blocked": 0,      "committed": 0,      "ready": 0,      "restatement": 0    },    "created_at": "2019-08-24T14:15:22Z",    "discarded_at": "2019-08-24T14:15:22Z",    "file_name": "string",    "groups": [      {        "blocked_by": {          "code": "INVALID_DATE",          "message": "string"        },        "committed_report_id": "198d4e75-e95b-4ab5-9692-cad0eb4e9749",        "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",        "contract_title": "string",        "is_annual_statement": true,        "lines": [          {            "deductions": {              "property1": "string",              "property2": "string"            },            "gross_amount": "1234.50",            "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"          }        ],        "outcome": "ready",        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "prior_report_id": "b0ef8651-8992-480e-9b5c-31371fe53c1d",        "row_numbers": [          0        ]      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows": [      {        "issue": {          "code": "INVALID_DATE",          "message": "string"        },        "raw": {          "property1": "string",          "property2": "string"        },        "row_number": 0,        "status": "pending"      }    ],    "status": "open",    "updated_at": "2019-08-24T14:15:22Z",    "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/sales/imports/{id}/commit

Re-evaluates the import and submits one csv report per group that is ready (a restatement supersedes the period's submitted version). Blocked groups stay pending: fix them (map a label, fix the lease) and commit again. The import becomes committed once nothing is pending. Nothing ready is not an error: the review comes back as is.

Required scope: sales:write

Error codes: SALES_IMPORT_NOT_FOUND, SALES_IMPORT_NOT_OPEN, SALES_IMPORT_CONFLICT, 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/sales/imports/string/commit' \  -H 'Idempotency-Key: string'
{  "data": {    "committed_at": "2019-08-24T14:15:22Z",    "counts": {      "blocked": 0,      "committed": 0,      "ready": 0,      "restatement": 0    },    "created_at": "2019-08-24T14:15:22Z",    "discarded_at": "2019-08-24T14:15:22Z",    "file_name": "string",    "groups": [      {        "blocked_by": {          "code": "INVALID_DATE",          "message": "string"        },        "committed_report_id": "198d4e75-e95b-4ab5-9692-cad0eb4e9749",        "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",        "contract_title": "string",        "is_annual_statement": true,        "lines": [          {            "deductions": {              "property1": "string",              "property2": "string"            },            "gross_amount": "1234.50",            "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"          }        ],        "outcome": "ready",        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "prior_report_id": "b0ef8651-8992-480e-9b5c-31371fe53c1d",        "row_numbers": [          0        ]      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows": [      {        "issue": {          "code": "INVALID_DATE",          "message": "string"        },        "raw": {          "property1": "string",          "property2": "string"        },        "row_number": 0,        "status": "pending"      }    ],    "status": "open",    "updated_at": "2019-08-24T14:15:22Z",    "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/sales/imports/{id}/discard

Skips every pending row and closes the import. Reports already committed from it stay. Refused unless the import is open.

Required scope: sales:write

Error codes: SALES_IMPORT_NOT_FOUND, SALES_IMPORT_NOT_OPEN

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

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/sales/imports/string/discard'
{  "data": {    "committed_at": "2019-08-24T14:15:22Z",    "counts": {      "blocked": 0,      "committed": 0,      "ready": 0,      "restatement": 0    },    "created_at": "2019-08-24T14:15:22Z",    "discarded_at": "2019-08-24T14:15:22Z",    "file_name": "string",    "groups": [      {        "blocked_by": {          "code": "INVALID_DATE",          "message": "string"        },        "committed_report_id": "198d4e75-e95b-4ab5-9692-cad0eb4e9749",        "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",        "contract_title": "string",        "is_annual_statement": true,        "lines": [          {            "deductions": {              "property1": "string",              "property2": "string"            },            "gross_amount": "1234.50",            "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"          }        ],        "outcome": "ready",        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "prior_report_id": "b0ef8651-8992-480e-9b5c-31371fe53c1d",        "row_numbers": [          0        ]      }    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "row_count": 0,    "rows": [      {        "issue": {          "code": "INVALID_DATE",          "message": "string"        },        "raw": {          "property1": "string",          "property2": "string"        },        "row_number": 0,        "status": "pending"      }    ],    "status": "open",    "updated_at": "2019-08-24T14:15:22Z",    "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/sales/reminders/send

Emails the tenant's contacts that receive notices a reminder for one expected report on the lease's calendar, whether or not automatic reminders are on (kind manual, the next free sequence). Returns the send row, failed when the email provider refused it. 422 SALES_REMINDER_NOT_OWED for a period off the calendar, not yet ended, or already received (a period covered only by an estimate is still owed); 422 SALES_REMINDER_NO_RECIPIENT when the tenant has no active contact that receives notices.

Required scope: sales:write

Error codes: VALIDATION_FAILED, NOT_FOUND, SALES_CONFIG_NOT_FOUND, SALES_REMINDER_NOT_OWED, SALES_REMINDER_NO_RECIPIENT

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
contract_id*string
Formatuuid
is_annual_statement?boolean

True for the annual statement of a measurement year.

Defaultfalse
period_end*string
Formatdate
period_start*string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/sales/reminders/send' \  -H 'Content-Type: application/json' \  -d '{  "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",  "period_end": "2019-08-24",  "period_start": "2019-08-24"}'
{  "data": {    "attempt_count": 0,    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "error": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "kind": "due_soon",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "recipients": [      "string"    ],    "sent_at": "2019-08-24T14:15:22Z",    "sequence": 0,    "status": "pending"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List sales reports

GET
/v1/sales/reports

Every version of every report, newest period first by default. from_date/to_date filter on period_end. Lines are not included; read one report for its lines and qualifying sales.

Required scope: sales:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

contract_id?string
Formatuuid
status?string
Value in"draft""submitted""superseded""verified"
from_date?string

Only reports whose period ends on or after this date.

Formatdate
to_date?string

Only reports whose period ends on or before this date.

Formatdate
is_annual_statement?boolean

Annual statements only (true) or periods only (false).

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: -period_start

Value in"-period_start""period_start"
search?string

Case-insensitive substring match on: notes.

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/sales/reports'
{  "data": [    {      "certified_at": "2019-08-24T14:15:22Z",      "certified_by": "string",      "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_annual_statement": true,      "notes": "string",      "period_end": "2019-08-24",      "period_start": "2019-08-24",      "source": "manual",      "status": "draft",      "submitted_at": "2019-08-24T14:15:22Z",      "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",      "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",      "updated_at": "2019-08-24T14:15:22Z",      "version": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/sales/reports

A manual version-1 draft for one period on the lease's reporting calendar (or one measurement year with is_annual_statement). Lines may be partial. Refused for an off-calendar period, a period that already has a real submitted version (restate it instead) or a draft. A period holding only an estimate is not refused: the draft is version 2 and submitting it replaces the estimate.

Required scope: sales:write

Error codes: VALIDATION_FAILED, NOT_FOUND, SALES_CONFIG_NOT_FOUND, SALES_REPORT_OFF_CALENDAR, SALES_REPORT_LINES_INVALID, SALES_REPORT_PERIOD_ALREADY_REPORTED, SALES_REPORT_DRAFT_EXISTS

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
contract_id*string
Formatuuid
is_annual_statement?boolean

True for the annual statement of a measurement year.

Defaultfalse
lines?array<>

Category lines; may be partial on a draft. Submit requires every category the config requires.

notes?|
Lengthlength <= 2000
period_end*string
Formatdate
period_start*string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/sales/reports' \  -H 'Content-Type: application/json' \  -d '{  "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",  "period_end": "2019-08-24",  "period_start": "2019-08-24"}'
{  "data": {    "certified_at": "2019-08-24T14:15:22Z",    "certified_by": "string",    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "lines": [      {        "deductions": {          "returns": "25.00",          "sales_tax": "80.00"        },        "gross_amount": "1234.50",        "qualifying_amount": "1234.50",        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "notes": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "qualifying_total": "1234.50",    "source": "manual",    "status": "draft",    "submitted_at": "2019-08-24T14:15:22Z",    "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",    "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",    "updated_at": "2019-08-24T14:15:22Z",    "version": 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/sales/reports/bulk

One submitted report per contract (1-500, each contract once) for one regular period — the bulk entry grid. All or nothing: every row is validated first, and any failure answers 422 SALES_REPORT_BULK_INVALID naming each failing row in context.errors and writes nothing. Each period must have no real submitted version and no draft. A period holding an estimate is replaced: the estimate is superseded by the submitted report.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_REPORT_BULK_INVALID

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
period_end*string
Formatdate
period_start*string
Formatdate
reports*array<>
Items1 <= items <= 500

Response Body

application/json
  1. response
data*array<>
meta*
curl -X POST 'https://api.acreum.io/v1/sales/reports/bulk' \  -H 'Content-Type: application/json' \  -d '{  "period_end": "2019-08-24",  "period_start": "2019-08-24",  "reports": [    {      "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",      "lines": [        {          "gross_amount": "1234.50",          "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"        }      ]    }  ]}'
{  "data": [    {      "certified_at": "2019-08-24T14:15:22Z",      "certified_by": "string",      "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_annual_statement": true,      "lines": [        {          "deductions": {            "returns": "25.00",            "sales_tax": "80.00"          },          "gross_amount": "1234.50",          "qualifying_amount": "1234.50",          "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"        }      ],      "notes": "string",      "period_end": "2019-08-24",      "period_start": "2019-08-24",      "qualifying_total": "1234.50",      "source": "manual",      "status": "draft",      "submitted_at": "2019-08-24T14:15:22Z",      "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",      "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",      "updated_at": "2019-08-24T14:15:22Z",      "version": 0    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get a sales report

GET
/v1/sales/reports/{id}

One report version with its lines. qualifying_amount per line and qualifying_total use the lease's current allowed deductions.

Required scope: sales:read

Error codes: VALIDATION_FAILED, SALES_REPORT_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/sales/reports/string'
{  "data": {    "certified_at": "2019-08-24T14:15:22Z",    "certified_by": "string",    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "lines": [      {        "deductions": {          "returns": "25.00",          "sales_tax": "80.00"        },        "gross_amount": "1234.50",        "qualifying_amount": "1234.50",        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "notes": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "qualifying_total": "1234.50",    "source": "manual",    "status": "draft",    "submitted_at": "2019-08-24T14:15:22Z",    "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",    "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",    "updated_at": "2019-08-24T14:15:22Z",    "version": 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/sales/reports/{id}

Draft only. lines, when sent, replaces every line. A submitted report answers 409 SALES_REPORT_NOT_DRAFT: restate it instead.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_REPORT_NOT_FOUND, SALES_CONFIG_NOT_FOUND, SALES_REPORT_NOT_DRAFT, SALES_REPORT_LINES_INVALID

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
certified_at?|
Formatdate-time
certified_by?|

Who certified an annual statement (name and title).

Lengthlength <= 200
lines?array<>

Replaces every line of the draft; [] clears them.

notes?|
Lengthlength <= 2000

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/sales/reports/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "certified_at": "2019-08-24T14:15:22Z",    "certified_by": "string",    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "lines": [      {        "deductions": {          "returns": "25.00",          "sales_tax": "80.00"        },        "gross_amount": "1234.50",        "qualifying_amount": "1234.50",        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "notes": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "qualifying_total": "1234.50",    "source": "manual",    "status": "draft",    "submitted_at": "2019-08-24T14:15:22Z",    "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",    "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",    "updated_at": "2019-08-24T14:15:22Z",    "version": 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/sales/reports/{id}/restate

:id must be the period's current submitted version. Creates a draft version + 1 with its lines copied; submitting that draft supersedes :id. Refused while the period already has a draft.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_REPORT_NOT_FOUND, SALES_REPORT_NOT_CURRENT, SALES_REPORT_DRAFT_EXISTS

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/sales/reports/string/restate'
{  "data": {    "certified_at": "2019-08-24T14:15:22Z",    "certified_by": "string",    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "lines": [      {        "deductions": {          "returns": "25.00",          "sales_tax": "80.00"        },        "gross_amount": "1234.50",        "qualifying_amount": "1234.50",        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "notes": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "qualifying_total": "1234.50",    "source": "manual",    "status": "draft",    "submitted_at": "2019-08-24T14:15:22Z",    "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",    "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",    "updated_at": "2019-08-24T14:15:22Z",    "version": 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/sales/reports/{id}/submit

Draft only; every category the config requires must have a line. The period's submitted version, if any, becomes superseded with superseded_by_id set to this report, in the same transaction.

Required scope: sales:write

Error codes: VALIDATION_FAILED, SALES_REPORT_NOT_FOUND, SALES_CONFIG_NOT_FOUND, SALES_REPORT_NOT_DRAFT, SALES_REPORT_LINES_INVALID, SALES_REPORT_PERIOD_ALREADY_REPORTED, SALES_REPORT_DRAFT_EXISTS

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/sales/reports/string/submit'
{  "data": {    "certified_at": "2019-08-24T14:15:22Z",    "certified_by": "string",    "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",    "created_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_annual_statement": true,    "lines": [      {        "deductions": {          "returns": "25.00",          "sales_tax": "80.00"        },        "gross_amount": "1234.50",        "qualifying_amount": "1234.50",        "sales_category_id": "2cf259a7-9720-47c9-a4e7-a641ae172704"      }    ],    "notes": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "qualifying_total": "1234.50",    "source": "manual",    "status": "draft",    "submitted_at": "2019-08-24T14:15:22Z",    "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5",    "superseded_by_id": "6b86439a-ba84-4137-9924-cffddd52399a",    "updated_at": "2019-08-24T14:15:22Z",    "version": 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/sales/tracker

A tenant × period grid: one row per lease with a sales config, one cell per expected report (period or annual statement) overlapping [from_date, to_date], with its due date, derived status, days late and the current version's qualifying total. Statuses are judged on the org's local today. Rows are sorted by property name, then tenant name. Not paged: one envelope for the whole grid; the window is at most 36 months (400 VALIDATION_FAILED beyond that, or when from_date is after to_date).

Required scope: sales:read

Error codes: VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

property_id?string

Only leases with a location on this property.

Formatuuid
from_date?string

Window start. Defaults to the first day of the month 11 months before to_date, so the default window is 12 calendar months.

Formatdate
to_date?string

Window end. Defaults to the org's today (its time zone). The window is at most 36 months.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/sales/tracker'
{  "data": {    "as_of": "2019-08-24",    "from_date": "2019-08-24",    "rows": [      {        "cells": [          {            "days_late": 0,            "due_date": "2019-08-24",            "is_annual_statement": true,            "last_reminder": {              "kind": "due_soon",              "sent_at": "2019-08-24T14:15:22Z",              "sequence": 0,              "status": "pending"            },            "period_end": "2019-08-24",            "period_start": "2019-08-24",            "qualifying_total": "1234.50",            "reminder_count": 0,            "report_id": "5ed7905a-4735-4cf7-b1ab-521e066fb971",            "status": "upcoming",            "version": 0          }        ],        "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4",        "contract_name": "string",        "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5",        "property_name": "string",        "space_label": "string",        "tenant_name": "string"      }    ],    "to_date": "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  }}