Receive Procurement

🔒

Requires write_product access scope. More access scope

The Receive Procurement API processes the receipt of procurement items by updating their quantities (received and rejected) and recording any rejection reasons. This API is used for managing procurement workflows and tracking item status upon receipt.This API is especially useful for:

  1. Recording quantities of items received and rejected during the procurement process.
  2. Providing reasons for rejected items to ensure transparency in procurement workflows.
  3. Tracking and updating the state of procurement items for better inventory management.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

ParameterTypeRequiredExampleDescription
idstringYes"382451985837728044"The unique identifier of the procurement record.

Body Parameters

ParameterTypeRequiredExampleDescription
itemsarrayYesSee belowThe array of items to update with received and rejected quantities.
items.
procurement_item_id
stringYes"382453603 865993516"The unique identifier of the procurement item.
items.
received_quantity
integerYes5The quantity of the item that was successfully received.
items.
rejected_quantity
integerYes2The quantity of the item that was rejected.
items.
rejected_reason
stringNo"Damaged during shipping"The reason for rejecting the item.

Response Explanation

📘

Public Response Parameters

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray["Supplier not found"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorArray"error": "store is not active"Indicates an error encountered during the process.

Error Details

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).invalid
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
422Invalid InputOne or more of the following conditions apply:
- procurement_item_id is invalid, missing or not found.
- received_quantity is negative or exceeds pending quantity.
- rejected_quantity is negative or exceeds pending quantity.
Duplicated procurement item idAPI request contains multiple entries with the same procurement_item_id
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!