You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Initiate Order Cancel

Received Response
48
Views
6
Comments
edited Feb 28, 2024 7:04AM in Commerce 6 comments

Summary:

Q1. I wanted to understand how order cancel works.

I tried the endpoint from OCC API documentation : /ccadmin/v1/orders/cancel. But this API does not seem to work even after setting the headers and the body etc.

The response I get in Postman is :

{

"message": "HTTP 404 Not Found",

"type": "HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4",

"status": "404"

}

I also tried using the API available in the REST API for OCC documentation: /ccagent/v1/orders/initiateCancelOrder

I added the headers and because both of the APIs are POST APIs I also modified and added their body.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!