Depal Open API Doc
  1. API Instruction
Depal Open API Doc
  • 中文
    • 接入说明
      • 基本概念
      • 签名规则
      • 获取Token
    • 商品服务
      • 1688
        • 商品详情
        • 商品池查询
    • 订单服务
      • 下单前预览
      • 提交订单
      • 订单详情
      • 取消订单
      • 物流跟踪查询
  • English
    • API Instruction
      • Signature Rule
      • Get Token
        GET
    • product service
      • alibaba wholesale(1688)
        • Commodity Details
        • Commodity Pool Query
    • Order Service
      • Pre-order Preview
      • Submit Order
      • Order Details
      • Cancel Order
      • Logistics tracking query
  1. API Instruction

Signature Rule

Follow the following 3 steps

1. Joining the following parts according to string s=a+b+c+d#

a. URL PATH: such as /openapi/1/123456/1688.product.search.keyword
Note that 123456 is appKey
b. Header data: x-depal-timestamp such as 1745570329174
c. Header data: x-depal-access-token such as f1 - 4 da 3b8-b0b1 -4f73-a5de-9bed637e0188
d. post body: such as {"productId":11111,"language":"en"}

2. Sign the spliced string#

sign = uppercase (hex (hmac_sha1 (s, appSecret))
For example, 33E54F4F7B989E3E0E912D3FBD2F1A03 CA7 CCE88
wherein
appSecret is the value assigned by the system when applying for admission
hmac_sha1 is the general hmac_sha1 algorithm
hex is converted to hexadecimal
uppercase is converted to upper case characters

3. Put the signature string into the header x-depal-signature commit#

x-depal-signature=33E54F4F7B989E3E0E912D3FBD2F1A03CA7CCE88

Code Example#

Java version code example#

ApiCallService.java
SecurityUtil.java
StringUtil.java

PHP signature example#

security-util.php
Previous
物流跟踪查询
Next
Get Token
Built with