Chuyển tới nội dung chính

v2.shop.set_shop_holiday_mode

POST /api/v2/shop/set_shop_holiday_mode

Dùng API này để thiết lập trước các khoảng thời gian nghỉ lễ để bật/tắt chế độ nghỉ lễ tự động, với hai chế độ nghỉ lễ cho phép người bán chọn có nhận đơn hàng mới trong thời gian nghỉ hay không.

Đường dẫn Endpoint

URL: https://partner.shopeemobile.com/api/v2/shop/set_shop_holiday_mode

Tham số chung

TênKiểuMẫuMô tả
partner_idint1ID đố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.
timestamptimestamp1610000000Dù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.
access_tokenstringc09222e3fc40ffb25fc947f738b1abf1Token dùng để truy cập API, xác định quyền của bạn đối với API. Có thể dùng nhiều lần và hết hạn sau 4 giờ.
shop_idint600000Mã định danh duy nhất của Shopee cho một gian hàng. Tham số bắt buộc cho hầu hết các API.
signstringe318d3e932719916a9f9ebb57e2011961bd47abfa54a36e040d050d8931596e2Signature generated by partner_id, api path, timestamp, access_token, shop_id 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ênKiểuBắt buộcMẫuMô tả
holiday_mode_onbooleanTruetrueIndicate whether to enable holiday mode for the shop. true means turn ON, false means turn OFF.
holiday_mode_typeint32False1Holiday type: 0 - Full holiday,buyers cannot place new orders. The behavior remains consistent with the current Holiday Mode. 1 - Partial holiday, buyers can continue placing orders, and the system will automatically extend the order’s Ship-By-Date (SBD).
holiday_mode_start_timetimestampFalse1770883200Holiday start time should be whole hour and could be parsed as "2026:01:16 15:00:00"
holiday_mode_end_timetimestampFalse1773305999Holiday end time plus one second should be whole hour, which means the input timestamp must be able to be parsed as "2025:01:20 17:59:59" and the holiday_end_time must be larger than holiday_start_time
holiday_mode_descriptionstringFalse"Spring Festival"Mô tả kỳ nghỉ lễ

Tham số Response

TênKiểuMẫuMô tả
errorstringerror_shop_not_existsCho biết loại lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi.
messagestringInvalid partner_id or shopid.Cho biết chi tiết lỗi nếu xảy ra lỗi. Rỗng nếu không có lỗi.
request_idstring6745b892295d750abf83a29430510400Mã định danh cho yêu cầu API, dùng để theo dõi lỗi.
responseobject
debug_msgstring""Debug message.