---
title: "Create goods receipt for purchase order"
method: POST
path: "/api/v1/purchaseOrders/{id}/goodsReceipts"
tags: ["Goods Receipt"]
---

# Create goods receipt for purchase order

`POST /api/v1/purchaseOrders/{id}/goodsReceipts`

Creates a new goods receipt for a purchase order.

## Path parameters

- `id` string, required — Resource identifier.

## Request body

- object
  - `date` string, date
  - `positions` object[]
    - `product` object
      - `id` string — Resource identifier.
    - `quantity` number, double
    - `purchaseOrderPosition` object
      - `id` string — Resource identifier.
    - `stockMovements` object[]
      - `quantity` number, double
      - `warehouse` object
        - `id` string — Resource identifier.
      - `storageLocation` object
        - `id` string — Resource identifier.
      - `qualityControlAttributes` object
        - `batch` string
        - `bestBeforeDate` string, date
        - `serialNumbers` object[]
          - `number` string

## Response `201`

Resource successfully created response

## Other responses

- `400` — IETF RFC 9457 Problem API compliant response
- `401` — Unable to authenticate the client
- `403` — Unable to authorize the client
- `404` — Resource was not found or not enough access privileges
- `415` — Resource representation send in the request is not supported.
- `429` — Too many API calls made.

---

[API](https://skmtc.net/xentral/apis/xentral-api.md) · [All operations](https://skmtc.net/xentral/apis/xentral-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xentral/xentral-api/revisions/8a27ba392442/schema)
