v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Goods Receipt

Create goods receipt for return

Creates a new goods receipt for a return.

post/api/v1/returns/{id}/goodsReceipts

Path parameters

idstring required

Resource identifier.

Example:17

The resource's identifier.

Request body

datestring date

Example request

{
  "date": "2024-09-18",
  "positions": [
    {
      "product": {
        "id": "17"
      },
      "quantity": 10.5,
      "returnPosition": {
        "id": "17"
      },
      "stockMovements": [
        {
          "quantity": 5,
          "warehouse": {
            "id": "17"
          },
          "storageLocation": {
            "id": "17"
          },
          "qualityControlAttributes": {
            "quantity": 2.5,
            "batch": "Batch-123",
            "bestBeforeDate": "2025-01-01",
            "serialNumbers": [
              {
                "number": "SN-123456789"
              }
            ]
          }
        }
      ]
    }
  ]
}

Response

Resource successfully created response