Skip to main content
POST

Approve a purchase

Scope:accounting:purchases.write
https://api.holded.com/api/v2/purchases/{purchaseId}/approve

Approves the purchase by setting the approval date.

Parameters

Path parameters

purchaseIdstringrequired

Purchase ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/purchases/{purchaseId}/approve"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.post(url, headers=headers)
print(response.json())

Responses

Success responses

200Purchase approved

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Purchase not foundapplication/json
429Rate limit exceededapplication/json