Skip to main content

Shops

Manage a Merchant's shops.


Create or update a shop​

const result = await client.shop.createOrUpdate({
merchantId: 12345,
name: 'Chi nhánh HCM',
address: '123 Nguyễn Huệ, Q1',
});

Input parameters​

FieldTypeRequiredDescription
merchantIdnumber✓ID of the Merchant that owns the shop
namestring✓Shop name
addressstring✕Address

List shops​

const result = await client.shop.getPaging({
skipCount: 0,
maxResultCount: 10,
});

Input parameters​

FieldTypeRequiredDescription
skipCountnumber✓Number of records to skip
maxResultCountnumber✓Maximum number of records
filterstring✕Search keyword
merchantIdnumber✕Merchant ID