Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopee return 'error_params' for getOrdersList function #5

Closed
ken-ywk opened this issue Oct 10, 2018 · 10 comments
Closed

Shopee return 'error_params' for getOrdersList function #5

ken-ywk opened this issue Oct 10, 2018 · 10 comments

Comments

@ken-ywk
Copy link

ken-ywk commented Oct 10, 2018

Hi, I'm not sure what's wrong with getOrdersList function as the shopee api return 'error_params'. It's beyond my capability to troubleshoot. Hope you can help. Thanks.
https://open.shopee.com/documents?module=4&type=1&id=399

$response = $client->order->getOrdersList(); print_r($response);

[data:Shopee\ResponseData:private] => Array   (   [error] => error_params )

@minchao
Copy link
Owner

minchao commented Oct 10, 2018

Could you check the request body? It should be like below:

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}

@ken-ywk
Copy link
Author

ken-ywk commented Oct 10, 2018

Hi yes I've checked.
I echoed $jsonBody in client->newRequest
and it is same as your example
{"partner_id":12345,"shopid":67890,"timestamp":1539168484}

@ken-ywk
Copy link
Author

ken-ywk commented Oct 11, 2018

Hi, it seems either
create_time_from & create_time_to
or
update_time_from & update_time_to
must be included for success call.

@ken-ywk ken-ywk closed this as completed Oct 11, 2018
@kyawsoekhaing
Copy link

Hi, it seems either
create_time_from & create_time_to
or
update_time_from & update_time_to
must be included for success call.

can anyone help me how to generate create_time_from and create_time_to?

what is the format ?

@minchao
Copy link
Owner

minchao commented Dec 29, 2020

@kyawsoekhaing They are Unix time

@BroYoutMrr
Copy link

{"error": "error_params"}

2 similar comments
@BroYoutMrr
Copy link

{"error": "error_params"}

@BroYoutMrr
Copy link

{"error": "error_params"}

@BroYoutMrr
Copy link

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}

1 similar comment
@BroYoutMrr
Copy link

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants