My Products
Help
ExactGebruiker
CONTRIBUTOR ***

GET SupplierInvoice no. after creating in order to add attachment

by ExactGebruiker

Hi,

 

We are currently working on a Service to Service app, in which we CREATE a SupplierInvoice. However, as adding an attachment is only possible via another endpoint in which we are obligated to GET by Invoice ID. We need to retrieve the Invoice ID of the invoice we created with the other call, but when succesfully created, we do not get a response containing the ID. How are we supposed to add an attachment to these invoices we create if we cannot retrieve them?

 

Thanks.

4 REPLIES 4

by Magnus Johnsen

Hi,

The nextGen salesOrder inforoms you of the documents reference Number when in the headers of the response as with earlier endpoints, this is also shown in Swagger:

2023-03-21 12_15_38-Swagger UI - Brave.png

ExactGebruiker
CONTRIBUTOR ***

by ExactGebruiker

We are using the Service API in order to create SupplierInvoices. I don't know wht the nextGen salesOrder would help with this. Please elaborate.

 

Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

I missread, but none the less, the location header should be returned on all of the endpoints when the document has been created. 

2023-03-21 12_51_00-POST SupplierInvoice - My Workspace.png

ExactGebruiker
CONTRIBUTOR ***

by ExactGebruiker

Ah ok. That is what I am looking for. Thank you!