Skip to main content
POST
/
api
/
receive_tasks
/
{id}
/
receive
Receive stock against a receive task
curl --request POST \
  --url https://clarus-api.com/api/receive_tasks/{id}/receive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Clarus-Subdomain: <api-key>' \
  --data '
{
  "data": {
    "type": "tasks",
    "attributes": {
      "location_to_id": 25,
      "storage_unit_to_id": 18,
      "confirmed_quantity": 10,
      "serial_numbers": [
        "SN-001",
        "SN-002"
      ]
    }
  }
}
'
{
  "error": "<string>"
}

Request Structure

{
  "data": {
    "type": "tasks",
    "attributes": {
      "location_to_id": 25,
      "storage_unit_to_id": 18,
      "confirmed_quantity": 10.0,
      "serial_numbers": ["SN-001", "SN-002"]
    }
  }
}

Key Fields

FieldRequiredDescription
location_to_idNoLocation into which the stock is received
storage_unit_to_idNoStorage unit the received stock lands in
confirmed_quantityNoQuantity actually received (>= 0). Defaults to the task’s start_quantity when omitted.
serial_numbersNoSerial numbers to assign to the received stock
base_storage_unit_type_idNoBase storage unit type for the received stock, when relevant

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

id
integer
required

The unique identifier of the receive task

Body

application/json
data
object
required

Response

Operation completed successfully with no content to return