v2.push.set_app_push_config
POST /api/v2/push/set_app_push_config
Bạn có thể bật hoặc tắt cài đặt cấu hình push của ứng dụng thông qua open API này.
Đường dẫn Endpoint
URL: https://partner.shopeemobile.com/api/v2/push/set_app_push_config
Tham số chung
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| partner_id | int | 1 | ID đối tác được cấp sau khi đăng ký thành công. Bắt buộc cho tất cả các yêu cầu. |
| timestamp | timestamp | 1610000000 | Dùng để xác định thời điểm của yêu cầu. Bắt buộc cho tất cả các yêu cầu. Hết hạn sau 5 phút. |
| sign | string | e318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2 | Signature generated by partner_id, api path, timestamp and partner_key via HMAC-SHA256 hashing algorithm. More details: https://open.shopee.com/documents?module=87&type=2&id=58&version=2 |
Tham số Request
| Tên | Kiểu | Bắt buộc | Mẫu | Mô tả |
|---|---|---|---|---|
| callback_url | string | False | https://open.shopee.com/ | The callback url of push mechanism. It is the address where the Shopee will send the push message to. If you don't set any callback_url before, this parameters is required. |
| set_push_config_on | int[] | False | [1,2,3,4,5,8,9,10] | Bật cấu hình push, Shopee sẽ gửi tin nhắn push đến callback url. 1=Shop authorization for partners 2=Shop deauthorization for partners 3=Order status update push 4=TrackingNo push 5=Shopee Updates 6=Banned item push 7=item promotion push 8=reserved stock change push 9=promotionn update push 10=webchat push 11=video upload push 12=openapi authorization expiry push 13=brand register result |
| set_push_config_off | int[] | False | [6,7,11,12,13] | Tắt cấu hình push, Shopee sẽ không gửi tin nhắn push đến callback url. 1=Shop authorization for partners 2=Shop deauthorization for partners 3=Order status update push 4=TrackingNo push 5=Shopee Updates 6=Banned item push 7=item promotion push 8=reserved stock change push 9=promotionn update push 10=webchat push 11=video upload push 12=openapi authorization expiry push 13=brand register result |
| blocked_shop_id_list | int[] | False | [10010,20020,30030] | Dùng trường này để đặt các gian hàng cần bị chặn. Nhập tối đa 500 shop id. |
Tham số Response
| Tên | Kiểu | Mẫu | Mô tả |
|---|---|---|---|
| request_id | string | b937c04e554847789cbf3fe33a0ad5f1 | Mã định danh cho yêu cầu API, dùng để theo dõi lỗi. |
| error | string | common.error_auth | Cho biết loại lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi. |
| message | string | Invalid sign | Cho biết chi tiết lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi. |
| response | object | Thông tin chi tiết bạn đang truy vấn. | |
| result | string | success | Dùng trường này để cho biết cấu hình đã được cài đặt thành công hay chưa. |