---
search:
  tags:
    - Commerce and CPQ
    - POST
seo:
  description: >-
    Record a purchase cost. Reference for the POST /api/v1/purchase-costs
    endpoint in the Taylorz CRM API.
sidebar:
  label: Record a purchase cost
  badge: POST
title: Record a purchase cost
type: openapi-operation
---
`POST /api/v1/purchase-costs`

**Request body** (`application/json`, required)

- `currency` (string, required)
- `productId` (string, required)
- `purchasedOn` (string<date>, required)
- `reference` (string, required)
- `supplierRecordId` (string)
- `unitCost` (string, required)

Request body example:

```json
{
  "currency": "string",
  "productId": "string",
  "purchasedOn": "2019-08-24",
  "reference": "string",
  "supplierRecordId": "string",
  "unitCost": "string"
}
```

**Responses**

- `201` — The purchase cost was recorded
- `400` — The request body, query or parameters were refused
- `401` — The access token is missing, invalid or revoked
- `403` — The tenant's module is off, or the token's scope or the member's role does not permit the action
- `404` — No such record, or none the caller may read
- `409` — The operation conflicts with the current state
- `413` — The request exceeds the route's body limit
- `500` — An unexpected failure

Response example, 201:

```json
{
  "id": "string"
}
```
