Get promotional information

Method: GET

HTTP Request

https://api.accesstrade.vn/v1/offers_informations

Query parameters

The parameters are passed into HTTP Request according to Key-Value pairs, begin the parameters with the sign “?” and separate the parameters with the sign “&”. Ex:

https://api.accesstrade.vn/v1/offers_informations?merchant=bambooairways

Parameters

Required

Description

scope

Optional

Input the value of this parameter as “expiring” to get discounts that are about to expire. Get all discount if the value is not passed in or passed in incorrectly.

merchant

Optional

Name of the owner distributing the discount

categories

Optional

Category_name of the discount. Ex: voucher-services. You can enter more than one category, separating each one using the sign “,”

domain

Optional

Domain of the discount. Ex: lazada.vn

coupon

Optional

Input the value as 1 to get the discount with coupon code, 0 to get the discount without coupon code. The default is all.

status

Optional

Input the value 1 to get information of offers that are active, input the value 0 to get information of offers that have expired, and leave this value bank to get all.

limit

Optional

Number of promotion will be show on one page. Example: Limit=50

page

optional

Number of page. Example: page=1

Describe Results

Key

Description

banners

Is a list that contains dictionaries of banner, each dictionary includes: “link” - url banner, “width” - size width, “height” - size height

content

Content the discount in detail

id

Discount Id

image

Url of the discount image

link

Url of the discount

merchant

Owner offering discount

categories

List of discount categories

name

Name of discount

start_time

Start time of the discount

end_time

End time of the discount

domain

Domain of the discounted product

aff_link

Affiliate link

Example (Use Postman tool to call API)

offer_information.png

RESPONSE

Last updated

Was this helpful?