Close
logo

Changing the Status of a Return

Git RepositoryEdit on Github
Last update: 3 years ago by Francesco de LorenziReading time: 2 min

In the process of managing the return flow of a Purchase Order, it may be necessary to change its state to Finalized or Cancel it altogether.

This task can be accomplished by making a PUT call to /sale-returns/:id.json where :id is the ID of the Sale Return.

curl --request PUT \
--url https://api.jetti.io/api/sale-returns/:id.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{"status":"finalized"}'

{"status":"finalized"} can be replaced with {"status":"cancelled"} based on the status that needs to be associated with the Sale Return.

๐Ÿ”ƒ Returns โ€” Previous
Creating Returns from a Sale
Next โ€” ๐Ÿ”ƒ Returns
Setting a Return Label