Jump to content

Discovering WebService Paths


mukherjeerohit93

Recommended Posts

Hi guys,

 

My shop integrates with a web service that needs to update it's order status and tracking number. I've been through the official documentation. I'm aware that I can access JSON versions of the API's by providing the query parameter output_format=JSON

 

1. Is there any place I can get a comprehensive list of the API's with the query parameters they accept (/api?output_format=JSON)

 

2. Is it possible for me to provide data for POST/PUT api's via query parameters or do I have to always provide XML?

 

3. I want to update the order status, what api should I hit and what XML schema/JSON parameters do I have to provide for this? I can update the tracking number by hitting: api/order_carriers/{id}?output_format=JSON. I don't know how to pass in the parameters though.

 

Sorry if this information is documented there, I'd appreciate any help in this direction.

 

Thanks,

Rohit

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys,

 

My shop integrates with a web service that needs to update it's order status and tracking number. I've been through the official documentation. I'm aware that I can access JSON versions of the API's by providing the query parameter output_format=JSON

 

1. Is there any place I can get a comprehensive list of the API's with the query parameters they accept (/api?output_format=JSON)

 

2. Is it possible for me to provide data for POST/PUT api's via query parameters or do I have to always provide XML?

 

3. I want to update the order status, what api should I hit and what XML schema/JSON parameters do I have to provide for this? I can update the tracking number by hitting: api/order_carriers/{id}?output_format=JSON. I don't know how to pass in the parameters though.

 

Sorry if this information is documented there, I'd appreciate any help in this direction.

 

Thanks,

Rohit

 

Hello,

 

As far as I know there is no PATCH method. You can use PUT. You should pass as parameter the entire value of the new object in XML format. It worked for me in various programming languages though. I haven't tried it for JSON

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...