Lấy ra mã giảm giá của khách hàng cho đối tác
curl --request GET \
--url https://seller.hogotopod.com/api/v1/partner/promotions \
--header 'X-Tenant: <api-key>'const options = {method: 'GET', headers: {'X-Tenant': '<api-key>'}};
fetch('https://seller.hogotopod.com/api/v1/partner/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://seller.hogotopod.com/api/v1/partner/promotions"
headers = {"X-Tenant": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://seller.hogotopod.com/api/v1/partner/promotions")
.header("X-Tenant", "<api-key>")
.asString();[
{
"code": "<string>",
"configs": [
{
"conditionExpr": "<string>",
"value": 123,
"variableName": "<string>"
}
],
"description": "<string>",
"descriptionTranslations": {},
"fromTime": "2023-11-07T05:31:56Z",
"name": "<string>",
"nameTranslations": {},
"noPerCustomer": 123,
"noUsed": 123,
"toTime": "2023-11-07T05:31:56Z",
"value": {
"feeCode": "<string>",
"percent": 123,
"promotionType": "FEE_FREE",
"value": 123,
"valueMax": 123
}
}
]Partner Orders
Lấy ra mã giảm giá của khách hàng cho đối tác
GET
/
v1
/
partner
/
promotions
Lấy ra mã giảm giá của khách hàng cho đối tác
curl --request GET \
--url https://seller.hogotopod.com/api/v1/partner/promotions \
--header 'X-Tenant: <api-key>'const options = {method: 'GET', headers: {'X-Tenant': '<api-key>'}};
fetch('https://seller.hogotopod.com/api/v1/partner/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://seller.hogotopod.com/api/v1/partner/promotions"
headers = {"X-Tenant": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://seller.hogotopod.com/api/v1/partner/promotions")
.header("X-Tenant", "<api-key>")
.asString();[
{
"code": "<string>",
"configs": [
{
"conditionExpr": "<string>",
"value": 123,
"variableName": "<string>"
}
],
"description": "<string>",
"descriptionTranslations": {},
"fromTime": "2023-11-07T05:31:56Z",
"name": "<string>",
"nameTranslations": {},
"noPerCustomer": 123,
"noUsed": 123,
"toTime": "2023-11-07T05:31:56Z",
"value": {
"feeCode": "<string>",
"percent": 123,
"promotionType": "FEE_FREE",
"value": 123,
"valueMax": 123
}
}
]Authorizations
X-TenantX-API-Key
Response
OK