Ability to Cancel Back orders through the API  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Ability to Cancel Back orders through the API

Postby SBarnes » Fri Jan 25, 2019 6:51 pm

Can SalesOrderPATCHRequest be used to cancel back orders?

And what happens on an update if there is no open snapshot?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Ability to Cancel Back orders through the API  Topic is solved

Postby Mike.Sheen » Fri Feb 01, 2019 3:45 pm

SBarnes wrote:Can SalesOrderPATCHRequest be used to cancel back orders?


Sure - as long as you provide the appropriate field values, the backorder amount can be moved to the demand amount, indicating a cancellation.

SBarnes wrote:And what happens on an update if there is no open snapshot?


You'll get an exception - at which point you could catch that and create a new snapshot - but we don't have a route out of the box for that, so you'd need to create one.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Ability to Cancel Back orders through the API

Postby SBarnes » Fri Feb 01, 2019 3:53 pm

Yeah I was thinking of inventing a route called CreateSnapShot to be called first or create a plugin and attached to the Sales Order deSerialisation start and do the check there
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Ability to Cancel Back orders through the API

Postby Mike.Sheen » Fri Feb 01, 2019 3:56 pm

SBarnes wrote:Yeah I was thinking of inventing a route called CreateSnapShot to be called first or create a plugin and attached to the Sales Order deSerialisation start and do the check there


That'd be ideal - saves a round trip.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to REST API

Who is online

Users browsing this forum: No registered users and 2 guests

cron