Here, I am calling ebay api to change the order status "shipped".
I found some api call like,
setshipmenttrackinginfo, setshipmentinfo etc.
Can anyone know what is the main api call to change the order status "shipped"?
Or is there one of them above two?
I got answer for calling api to ebay to change the order status that is,
CompleteSale
Using http://developer.ebay.com/devzone/xml/docs/Reference/eBay/CompleteSale.html#CompleteSale API you can update status in eBay.
You can update status using Shipped tab & you can also update feedback using this API.
In this API you need only Auth Token & Item Id(Which is provide by eBay with Order)
Thanks,
Related
I would like to update the order in shopware 6 using API, As I have checked we can fetch order using the below URL
https://www.test.shop/api/order/54d47cc4d612345678901f7608fbebe2
But, I would like to update the order using API.
As I have checked it was in shopware 5 with the below link
https://developers.shopware.com/developers-guide/rest-api/examples/order/#example-3-update-an-order
What the details should be pass and how we can use put method on this.
Thank you.
It works similar with Shopware 6. If you have a test system (not production) you can see the API overview at /api/_info/swagger.html.
You should have a look at /api/_info/swagger.html#/Order/updateOrder.
PATCH /order/{id}
There are also API endpoints for order address, customer, delivery, line item and transaction.
You might also checkout this: https://shopware.stoplight.io/docs/store-api/storeapi.json/paths/~1order~1payment/post
I want to collect all orders from Shopware by the REST API with all the information same as in the API request like this:
$client->get('orders/2002?useNumberAsId=true');
But if you use $client->get('orders'); you get all the orders but missing the articles and customer information.
Can somebody please help me?
You should iterate all orders you got by $client->get('orders'); an make an api call for each order, to get full order information.
Or you can implement your own api endpoint (to get full order information with one query).
Is there a way to get the shipping method for a specific order using the BigCommerce API? I've searched and the closest I came to finding an answer is this, How can I get an order "shipping method" from bigcommerce API (Ground, Express)? , unfortunately the link provided is broken. I can't even find a 'shipping_id' in the order object that I can use to determine the method based on available shipping methods in the store.
Thanks in advance for any assistance.
Here is the updated link for that https://developer.bigcommerce.com/api/v2/#order-shipping-address-object-properties
Since you are looking for the Shipping methods for an Order it will be under the Order resource in the SDK.
It's in the shipping_method field of the Shipment object:
Shipment object
You link back to the order_idon the Shipment object with the id from the Order object:
Order object
I am building a shopify app by using the Shopify API, and run into trouble.
When I make a GET request with '/admin/customers.json'
Shopify API response with results sort incorrectly unlike other resources(Product, Order, etc)
I make some screenshots to get thething clear.
Both Order and Product reponse with the correct collection result("updated_at desc") but Customer didn't.
Is it bug or did I miss anything?
I think you need to encode your parameters. Shopify docs don't show encoded params for clarity but you need:
'?fields='+encodeURIComponent('id,updated_at')+
'&updated_at_min='+encodeURIComponent('2015-11-25 20:01:00')+
'&order='+ encodeURIComponent('updated_at DESC');
You could use the search endpoint on customer.
/admin/customers/search.json
/admin/customers/search.json?order=updated_at DESC&fields=id
See the doc on the same API page as customer, just a bit further down the page
https://docs.shopify.com/api/customer
Use the 'sorty_by' attribute when doing your search: https://shopify.github.io/js-buy-sdk/api/classes/ShopClient.html#method-fetchQueryCollections
In BigCommerce, can I access the current customer's record using JavaScript?
I want to change something on the product page based on the customer group that the current customer is in.
there is no JS SDK yet for Bigcommerce. However, because the APIs are restful, you should be able to execute a simple GET request to get a customer's record. The only challenge is that you need to get the customer ID/info when they login to the store and then get their record.
There is an example on Bigcommerce forums on using Javascript to hide pricing for customers who are not logged in.
http://forum.bigcommerce.com/f4/global-variable-for-current-user-s-group-1815/index2.html
This combined with GET request on the customer endpoint (http://developer.bigcommerce.com/api/customers) should get you moving in that direction.
Does this help? Are you looking for a code sample?
Use Javascript or jQuery to do the IF statement.
Then use Ajax to request the data that you want to display to the user.
So to answer your question, directly with Javascript you can't, but combine it with some PHP and then you use the API to do what you would like.
Hope this helps :)