Access to Pinduoduo’s order-making interface without application review process (access to Pinduoduo’s open platform)

pdd.erp.order.sync

erp order information synchronization

Update time: 2021-04-13 23:04:54

¥Free API requires user authorization

erp order information synchronization

public parameters

name type must describe
key String yes Call key ( register to get APIkey )
secret String yes call key
api_name String yes API interface name (included in the request address) [item_search, item_get, item_search_shop, etc.]
cache String no [yes, no] The default is yes, the cached data will be called, and the speed is relatively fast
result_type String no [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, and the content output by jsonu can be read directly in Chinese
lang String no [cn,en,ru] translation language, default cn Simplified Chinese
version String no API version

Description of request parameters

Click to close

parameter interface Parameter Type Is it required? illustrate
logistics_id LONG required Logistics company code
order_sn STRING required order number
order_state INTEGER required Order status: 1-ordered
waybill_no STRING required Waybill number

Return parameter description

Click to close

parameter interface Parameter Type example illustrate
error_code LONG error code
error_msg STRING wrong parameter
result BOOLEAN whether there is a result
success BOOLEAN whether succeed

request example

Click to close

JAVA

CURL

1

package com.pdd.pop.sdk.http.demo;

2

3

import com.pdd.pop.sdk.common.util.JsonUtil;

4

import com.pdd.pop.sdk.http.api.pop.request.PddErpOrderSyncRequest;

5

import com.pdd.pop.sdk.http.api.pop.response.PddErpOrderSyncResponse;

6

import com.pdd.pop.sdk.http.PopClient;

7

import com.pdd.pop.sdk.http.PopHttpClient;

8

9

public class PopClientDemo {
  
  

10

11

    public static void main(String[] args) throws Exception {
  
  

12

13

        String clientId = "your clientId";

14

        String clientSecret = "your clientSecret";

15

        String accessToken = "your accessToken";

16

        PopClient client = new PopHttpClient(clientId, clientSecret);

17

18

        PddErpOrderSyncRequest request = new PddErpOrderSyncRequest();

19

        request.setLogisticsId(0L);

20

        request.setOrderSn("str");

21

        request.setOrderState(0);

22

        request.setWaybillNo("str");

23

        PddErpOrderSyncResponse response = client.syncInvoke(request, accessToken);

24

        System.out.println(JsonUtil.transferToJson(response));

25

    }

26

}

27

example response

Click to close

 
 

1

{
  
  

2

  "error_code": 0,

3

  "error_msg": "str",

4

  "result": false,

5

  "success": false

6

}

exception example

Click to close

JSON

XML

 
 

1

2

{
  
  

3

  "error_response": {
  
  

4

    "error_msg": "Public parameter error: type",

5

    "sub_msg": "",

6

    "sub_code": null,

7

    "error_code": 10001,

8

    "request_id": "15440104776643887"

9

  }

10

}

Related permissions package

Click to close

The permission package that owns this interface App types that can obtain/apply for this permission package
Order Information Inquiry Permission Package Ordering, invoicing, virtual merchant background system, enterprise ERP, merchant background system, order processing, electronic certificate merchant background system, cross-border enterprise ERP customs declaration version

return error code description

Click to close

master error code main error description sub error code sub error description Solution
10000 Parameter error 10000 Parameter error The parameter value is wrong, fill in the request parameters according to the document requirements
10001 Public parameter error 10001 Public parameter error Please check the public parameters of the request
10016 The client is offline or the clientId is incorrect 10016 The client is offline or the clientId is incorrect Please check if your client_id is correct
10017 type is incorrect 10017 type is incorrect Check if the type is correct
10018 target_client_id is offline or target_client_id is incorrect 10018 target_client_id is offline or target_client_id is incorrect Check if target_client_id is correct
10019 access_token has expired 10019 access_token has expired Refresh access_token or re-authorize to get access_token again
20004 Signature sign verification failed 20004 Signature sign verification failed Please follow the instructions in the third part of the access guide to generate a signature
20005 The ip has no right to access the interface, please add the ip whitelist 20005 The ip has no right to access the interface, please add the ip whitelist Add ip whitelist to whitelist
20031 The user is not authorized to access this interface 20031 The user is not authorized to access this interface The application you created does not contain this interface, please check the API documentation to learn about the relevant permission package
20032 access_token or client_id error 20032 access_token or client_id error Check access_token or client_id
20034 The interface is offline 20034 The interface is offline check interface status
20035 Interface does not belong to current gateway 20035 Interface does not belong to current gateway Determine whether the calling gateway url is correct
21001 Request parameter error 21001 Request parameter error Business parameter input error
21002 Request parameters cannot be empty 21002 Request parameters cannot be empty Check whether the required business parameters have been filled
30000 No permission to call this target interface 30000 No permission to call this target interface Check whether you have the permission to call this target interface
30001 client_id and partner_id do not match 30001 client_id and partner_id do not match Check if partner_id is correct
50000 Internal System Error 50000 Internal System Error There is an internal system error, please join the group to contact the relevant person in charge
50002 Business system internal exception 50002 Business system internal exception Please join the group to contact the relevant person in charge
52001 Gateway business service error 52001 Gateway business service error Contact technical support to resolve
52002 Gateway system internal exception 52002 Gateway system internal exception Contact technical support to resolve
52004 Request body is too large 52004 Request body is too large Check if the request body is too large
52101 The current interface is limited, please try again later 52101 The current interface is limited, please try again later The current interface is limited, please try again later
52102 The current interface is temporarily unavailable, please try again later 52102 The current interface is temporarily unavailable, please try again later The current interface is downgraded, please try again later
52103 The service is temporarily unavailable, please try again later 52103 The service is temporarily unavailable, please try again later The current interface is downgraded, please try again later
70031 The call is too frequent, please adjust the call frequency 70031 The call is too frequent, please adjust the call frequency The call is too frequent, please adjust the call frequency
70032 The current request is forbidden to call 70032 The current request is forbidden to call The current request is forbidden to call
70033 The current interface is temporarily offline due to system maintenance, please try again later! 70033 The current interface is temporarily offline due to system maintenance, please try again later! The current interface is temporarily offline due to system maintenance, please try again later!
70034 The current user or application is at risk, please do not call! 70034 The current user or application is at risk, please do not call! The current user or application is at risk, please do not call!
70035 The current user or application is at risk, and the call is forbidden. Please contact [email protected] 70035 The current user or application is at risk, and the call is forbidden. Please contact [email protected] The current user or application is at risk, and the call is forbidden. Please contact [email protected]
70036 The application is in testing state, and the number of calls is limited 70036 The application is in testing state, and the number of calls is limited The application is in the test state, and the number of calls reaches the upper limit and is limited
50001 business service error

Limiting rules

Click to close

Total interface current limiting frequency: 39000 times/10 seconds

Guess you like

Origin blog.csdn.net/Jernnifer_mao/article/details/132663229