Update order details in prestashop rest api - php

I need to update shipping details of an order using rest api in Prestashop. I need to update Tracking no, Tracking company name etc. from rest API.
I searched a lot for this but didn't find any API. Please guide me how can I do this.

Resource is called Order_carrier
https://devdocs.prestashop.com/1.7/webservice/resources/order_carriers/

Related

How can I access Shopify Customer API from a PHP application?

I have to consume Customer details by passing email id as a parameter.
I want this API to be called from my native PHP Code. How can I achieve this?
Do I need to do additional code/libraries to achieve this?
Have you looked at these 2 third-party libraries to interact with the Shopify API from PHP?
https://github.com/cmcdonaldca/ohShopify.php
https://github.com/cmcdonaldca/CakePHP-Shopify-Plugin
They should allow you to retrieve customer details, after you setup your Shopify Partner account and obtain your API key/secret.

How to get paypal sale transactions

I'm trying to pull in orders from paypal into my database. When I say orders, I mean orders from paypal buttons we have in various places.
I've dove into the REST API, but I don't see any API for searching for / listing transactions. I see a list of payment Resources, but that comes back with count 0.
I also see Sale Transactions in the API but that asks for a single transaction ID.
Is there a way I can periodically get transactions? I know this is possible because we use a tool called Shipstation that grabs new orders from Paypal and brings them into their system.
Thanks!
You can use REST APIs to do what you are wanting to do. You can use
GetPaymentList to do this. This is sample code from the PayPal Github PHP homepage. You will need to install and use the PayPal PHP SDK.

How can i add purchase order in XERO using an API?

I need to add purchase order in XERO using an API. But, i can't get the endpoint for this service.
Please Let me know if you have any idea about this.
Thanks ahead the time.
This is a reply from official XERO
not at the moment, I’m afraid. We’ll be assessing demand for an import
function and the API team could come to the rescue with support there
– again this will depend on demand.
source :https://www.xero.com/blog/2013/11/purchase-orders/
You can now create purchase orders through the Xero API using the /purchaseorders endpoint.
Documentation is here: https://developer.xero.com/documentation/api/purchase-orders

Create a subscription from a previous transaction

This is an Authorize.net question...I am looking for a way to create a subscription from a previous payment a customer has made through an API call or another way instead of having to login to the Merchant Interface. I have done some research but currently have not found a way to do this. Is this possible?
Also, in the Merchant Interface, there is a "View Rebillable Transactions" button that allows you to submit a charge to a card the customer has used in the past. Is it possible to have this same functionality using an API?
Any help is appreciated!
Not yet. It's something they are considering but as of right now you can only do it either using the ARB API by making it immediately or doing it through the merchant interface.

How do I use the BigCommerce API to update a customer's customer_group_id using core PHP?

I'm trying to write a PHP script for my BigCommerce site that runs nightly and places customers into specific Customer Groups based on certain criteria. I can do everything else I need other than actually update the the customer_group_id. BigCommerce documentation only shows GET methods available for customers. Please help. Thanks!
The customer group ID on a customer can be updated. This has been around for maybe a year or more now. You can PUT to the customer resource and the customer_group_id is what you would want to change.
Documented here:
https://developer.bigcommerce.com/api/objects/v2/customer
If you are using the PHP API Library then you could update a customer group ID on a customer with this kind of code:
$request_body = array("customer_group_id" => 10);
Bigcommerce:updateCustomer(50, $request_body);
The above would update the customer with ID 50 to have a new customer group ID of 10.
I currently work at Bigcommerce. Unfortunately at this time, our API doesn't support the ability to update customer group ids. However, you are encouraged to add this as a feature request to our Ideas site. http://ideas.bigcommerce.com/.
For your convenience, I have also included a link to our Dev portal, which includes the full API documentation as well as how-tos/tools and a new #Mashery powered API playground. http://developer.bigcommerce.com/

Categories