Discussions
How to apply the OPENAPI authorization
Hello shopline teams!
We are SF international team,now we are trying to docking shopline support logistic method through REST API way, could you give me a contact method, thanks a lot~
Posted by HAOLING LIU 8 months ago
Get which plan the merchant subscribes to
If my app has different subscription plans, such as free version, premium version, and professional version, and I want to switch the functions provided according to the plan subscribed by the merchant, how can I obtain the plan subscribed by the merchant?
Posted by Leo Chang 11 months ago
Change information in POS order?
The customer pay cash $200 for $165 total change. $35 in cash is returned to customer. Is there a way to obtain the $35 change information in API? I notice that it is available in UI, Order Management > Orders > 2023000000000000, under Transaction History, Payment method. But I did not find related information in the API.
It seems that the info is not available in both <https://open.shopline.io/v1/orders/${oid}> and <https://open.shopline.io/v1/orders/transactions>
How do I use API to obtain Change info in POS order?
Posted by Jack 12 months ago
Do I need after paying for the OpenAPI to be active?
Hi i have purchased the open API and created the user with permission to use Open API.
However, I keep having error even when i use Postman to send a Token Info Request.
Is there anything that needs to be done on your backend before i can actually use the OpenAPI?
My code is as follows:
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '<https://open.shopline.io/v1/products?sort_by=desc&per_page=24&page=1&Accept=application%2Fjson&Authorization={token}&User-Agent=shopline'>,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Posted by Eric 12 months ago
I have not found "type" field in get orders api response
I have called the Get Orders Api but, I have not found "type" field in get orders api response
According to the api guide, there should be "type" field.
The "type" field is deprecated?
Posted by mkan over 1 year ago
Get Product Sales
Is there API for querying quantity of products sold in a given date interval?
Given list of product ids, begin date, end date,
return quantity of each product sold.
Thanks.
Posted by Dennis C over 1 year ago
Is JSON message encrypted?
When sending the request message to SHOPLINE Open API, does the JSON message format gets encrypted?
Posted by Wenchin Chang over 1 year ago
Could you explain the 'created_before' paramter's exact range one of the getorder's paramters
I have read about 'GetOrders' api desc.
and I'm qurious about the 'created_before' paramter's exact range.
If i set the value of the 'created_before' parameter as '2023-05-23 13:00:00'
then I can get the Orders information that have been created until '2023-05-23 13:00:00' ?
not or I can get the Orders information that have been created until '2023-05-23 12:59:59' ?
I'm confused because the description of the 'created_before' parameter is Filter orders by those updated before specific time.
I have focused the preposition 'before'.
And this situation is same as the 'create_after' parameter.
a Value of The 'create_after' parameter includes the value that I set it or not?
Please explain the exact datetime range.
Posted by mkan over 1 year ago
Get Custom fields Error
Hello,
I sent a GET request to https://open.shoplineapp.com/v1/custom_fields to get custom fields, but I got a response
{
"error": "undefined method `map' for nil:NilClass"
}
Do you know about this issue? Thank you.
Posted by Alex over 4 years ago
customers & products
Hi, if we want to get customers/products but sort by updated time
how can I do?
or Shopline have a plan to implement things like that?
Posted by Will almost 6 years ago