The parameters for getting authorised reseller brand
Parameters for getting authorised reseller brand Get the authorised reseller brand list for the shop.
Specifies the page number of data to return in the current call. Starting from 1. if data is more than one page, the page_no can be some entry to start next call.
Each result set is returned as a page of entries. Use the "page_size" filters to control the maximum number of entries to retrieve per page (i.e., per call), and the "page_no" to start next call. This integer value is used to specify the maximum number of entries to return in a single "page" of data. The limit of page_size if between 1 and 30.
A promise that resolves to the authorised reseller brand response containing:
const brands = await sdk.shop.getAuthorisedResellerBrand({
page_no: 1,
page_size: 10
});
console.log('Is authorised reseller:', brands.response.is_authorised_reseller);
console.log('Total brands:', brands.response.total_count);
brands.response.authorised_brand_list.forEach(brand => {
console.log('Brand:', brand.brand_name);
});
[For BR Shop Only] Use this API to get shop KYC registration and qualification information.
Optionalparams: GetBRShopOnboardingInfoParamsGet shop profile
This API support to get information of shop.
Optionalparams: GetProfileParamsA promise that resolves to the profile response containing:
Use this API to check whether a shop has enabled holiday mode.
Optionalparams: GetShopHolidayModeParamsGet shop information
Use this call to get information of shop
Optionalparams: GetShopInfoParamsA promise that resolves to the shop info response containing:
Get shop notification
Get Seller Center notification, the permission is controlled by App type
Optionalparams: GetShopNotificationParamsThe parameters for getting shop notification
Parameters for getting shop notification Get Seller Center notification, the permission is controlled by App type
Optionalcursor?: numberThe last notification_id returned on the page. When using the cursor, notifications will start with the one following this cursor notification. If no cursor is provided, the latest message from the shop will be returned.
Optionalpage_size?: numberDefault 10; maximum 50
A promise that resolves to the notification response containing:
Get warehouse detail
For given shop id and region, return warehouse info including warehouse id, address id and location id
Optionalparams: GetWarehouseDetailParamsThe parameters for getting warehouse detail
Parameters for getting warehouse detail For given shop id and region, return warehouse info including warehouse id, address id and location id
Optionalwarehouse_type?: numberType of warehouse. Applicable values: 1: Pickup Warehouse, 2: Return Warehouse. Default value is 1 (Pickup Warehouse)
A promise that resolves to the warehouse detail response containing:
When the API request fails or returns an error:
Use this API to enable or disable holiday mode for a shop.
Update shop profile
This API support to let sellers to update the shop name, shop logo, and shop description.
The parameters for updating profile
Parameters for updating shop profile This API support to let sellers to update the shop name, shop logo, and shop description.
Optionaldescription?: stringThe new shop description
Optionalshop_logo?: stringThe new shop logo url. Recommend to use images
Optionalshop_name?: stringThe new shop name
A promise that resolves to the updated profile response
When the API request fails or returns an error:
Get authorised reseller brand
Get the authorised reseller brand list for the shop.