post https://pubapi.usebutton.com/v1/offers
Obtain real-time rates/offers available to a Publisher user.
Both device_ids and email_sha256s should be provided in the request when available.
The Offers API has a rate limit of 5,000 requests per minute.
Response Object
Top-level object
Field | Type | Description |
---|---|---|
merchant_offers | list | List of rates/offers available to the user. |
merchant_offers
List
merchant_offers
ListField | Type | Description |
---|---|---|
merchant_id | string | Brand organization ID |
offers | list | List of all Brand rates/offers available to the user. |
offers
List
offers
ListField | Type | Description |
---|---|---|
id | string | Offer ID |
rank | integer | Rank of each offer |
rate_percent | string | (optional) Decimal string of offer rate in percent. |
rate_fixed | string | (optional) Decimal string of offer rate in fixed amount. |
currency | string | (optional) Three-letter ISO currency code if rate_fixed (if available), as specified in ISO 4217. |
display_params | mapstring | (optional) A map of template parameters that can be used by the Publisher to render the rate/offer. |
display_params
Object
display_params
ObjectField | Type | Description |
---|---|---|
category | string | (optional) A description of the offers details. Commonly includes a comma separated list of included/excluded categories or other general offer labeling information. Intended to be human readable and suitable for end user display. |
offer_type | string | (optional) Offer type classification. "Default" = A default/fallback rate, used when there aren’t more specific rates. "Category" = an offer for one or more categories of shopping. "Product" = an offer for one or more products/skus, etc. "Exclusion" = used when the offer is 0/0% and denotes as non commissionable. |
offer_tag | string | (optional) Offer tag indicating if the offer is a promotional rate (i.e. temporarily boosted/featured or marketing, etc.). Long-term increased rates are not typically promotional. |