Run GET {{API}}/api/v1.0/organizations/{{organizationId}}/clients/{{clientId}}/invoicesin order to list all invoices ready for posting to the ERP system. Response Note "InvoiceStatus":"Posting"
Run GET {{API}}/api/v1.0/organizations/{{organizationId}}/clients/{{clientId}}/invoices/88b5c889-ca6b-43bf-84e5-9c297e168c6c Use the "invoiceId" value from the previous request to retrieve the processed invoice with all details. The response contains all invoice details as well as generated accounting lines. 2.1 Cost Invoice Example Note that all necessary data should be contained in the array "invoiceAccountingLines"
2.2 Purchase Order Invoice Example All required information should be contained in the array "purchaseInvoiceLines"
Run PUT {{API}}/api/v1.0/organizations/{{organizationId}}/clients/{{clientId}}/invoices/88b5c889-ca6b-43bf-84e5-9c297e168c6c/status Request body:
Response: 200 OK.
The invoice should now have invoiceStatus: Posted Verify this by repeating GET {{API}}/api/v1.0/organizations/{{organizationId}}/clients/{{clientId}}/invoices/88b5c889-ca6b-43bf-84e5-9c297e168c6c Expected response:
Kommentarer
0 kommentarer
Artikkelen er stengt for kommentarer.