Approve releasing holds on a purchase order (signed-in ADMIN or higher)
POST
/purchase-orders/{poId}/approve-release
const url = 'https://api.invogi.com/v1/purchase-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approve-release';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/purchase-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approve-release \ --header 'Authorization: Bearer <token>'When someone below Admin corrects an invoice or confirms a duplicate in a way that would clear holds on other invoices of the order, those holds wait for this approval, and imports don’t clear them meanwhile. API keys can’t approve.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”poId
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”Approved, and the order’s invoices are being re-checked.
Media typeapplication/json
object
id
required
string format: uuid
po_number
required
string
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "po_number": "example"}Not an Admin or Owner
No such purchase order.
Nothing on this order is waiting for approval.