Openapi
Return a purchase bill with its approval state and purchase order match.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
billId*stringuuidorganizationId*stringuuidReturns the result.
application/jsonapproval*bill*match*|nullcurl -X GET 'https://app.localhost/api/v1/organizations/123/bills/123e4567-e89b-12d3-a456-426614174000'{ "approval": { "approved": [ 0 ], "pending": [ { "approverId": "c4cb1502-f1f4-43be-8940-63247031d1fd", "level": 0 } ], "required": [ 0 ], "status": "not_required" }, "bill": { "balance": 0, "currency": "string", "dueOn": "2019-08-24", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifier": "string", "issuedOn": "2019-08-24", "purchaseOrderId": "84a099d9-2935-4997-a6ac-0d3ee9bbef72", "status": "draft", "supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db", "supplierName": "string", "supplierReference": "string", "title": "string", "total": 0 }, "match": { "lines": [ { "amount": 0, "billedQuantity": "string", "expectedAmount": 0, "orderedQuantity": "string", "quantity": "string", "receivedQuantity": "string", "status": "matched", "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf" } ], "status": "matched" }}