Acknowledge a specific purchase order
Acknowledge a specific purchase order. (Only the vendor to which order is issued can acknowledge the order)
application/json
POST
/api/purchase_orders/{id}/acknowledge/
cURL (application/json)
curl \
--request POST 'https://vendorms.pythonanywhere.com/api/purchase_orders/{id}/acknowledge/' \
--header "Authorization: Token $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"quality_rating":42.0}'
curl \
--request POST 'https://vendorms.pythonanywhere.com/api/purchase_orders/{id}/acknowledge/' \
--header "Authorization: Token $ACCESS_TOKEN" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'quality_rating=42.0'
curl \
--request POST 'https://vendorms.pythonanywhere.com/api/purchase_orders/{id}/acknowledge/' \
--header "Authorization: Token $ACCESS_TOKEN" \
--header "Content-Type: multipart/form-data" \
--form "quality_rating=42.0"
Request examples
{
"quality_rating": 42.0
}
Response examples (201)
{
"id": 42,
"items": {},
"po_number": "string",
"order_date": "2025-05-04",
"delivery_date": "2025-05-04",
"quantity": 42,
"status": "pending",
"quality_rating": 42.0,
"issue_date": "2025-05-04",
"acknowledgment_date": "2025-05-04",
"vendor_reference": 42
}
Response examples (401)
{
"message": "string"
}