Retrieve a purchase type

Operation ID: getPurchaseType

Group: Accounting › Purchase Types

Open in the interactive reference

GET /accounting/purchase-types/{id}

Read-only: Reads and returns; changes nothing.

Retrieves a purchase type. Use its id as the purchase type of a purchase order. Only an active type can be chosen for a new order.

To find a type by name, use POST accounting/purchase-types/search.

Parameters

Name In Type Required Description
Api-Version header string · v1 yes The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1.
id path string yes The unique identifier of the purchase type you want to retrieve. Example: "9c1b7e40-3a6d-4f52-8f0b-1d2c7a5e93b1".

Response

200 Success

Under data (getPurchaseTypeOutput):

Field Type Required Description
id string yes The unique identifier for the purchase type.
name string yes The name of the purchase type, for example 'New purchase'. Unique within the tenant, ignoring case.
description string no What the purchase type is for.
status string yes The lifecycle status of the purchase type. Possible values: 'active', 'inactive'. Only an active type can be chosen for a new purchase order. An inactive type stays readable so orders that carry it still resolve.
lastModifiedDate date-time yes The date and time the purchase type last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ.
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "<name>",
    "description": "<description>",
    "status": "<status>",
    "lastModifiedDate": "2026-01-15T09:30:00.000Z"
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}

Errors

Code Status
NOT_FOUND 400

Statuses