invoice No/ID for newly created order  Topic is solved

Discussions relating to the REST API of Jiwa 7.

invoice No/ID for newly created order

Postby pricerc » Wed Nov 23, 2022 3:44 pm

Is there something in the DTO returned by Quote/.../MakeOrder that will give me a clue about where to find my new sales order?

(I'm looking, but I ain't seeing it)
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: invoice No/ID for newly created order  Topic is solved

Postby Scott.Pearce » Wed Nov 23, 2022 4:40 pm

HATEOAS dictates creating a new resource should indicate the location of that new resource in the response header. Have a look for a "Location" property in the response headers that you get back from Quote/.../MakeOrder.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: invoice No/ID for newly created order

Postby pricerc » Wed Nov 23, 2022 6:21 pm

Found it, thanks.

2022-11-23 20_20_07-Clipboard.png
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20


Return to REST API

Who is online

Users browsing this forum: No registered users and 3 guests