POST
Approve a purchase shipment
Scope:
inventory:purchase-shipments.writehttps://api.holded.com/api/v2/purchase-shipments/{purchaseShipmentId}/approveApproves the purchase shipment by setting the approval date.
Parameters
Path parameters
purchaseShipmentId
stringrequiredPurchase Shipment ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/purchase-shipments/{purchaseShipmentId}/approve"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())Responses
Success responses
200Purchase shipment approvedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Purchase shipment not foundapplication/json429Rate limit exceededapplication/json