Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.54 KB

Campaign.md

File metadata and controls

37 lines (28 loc) · 1.54 KB

Campaign

A JSON object containing the campaign details for a merchant. Only campaigns that are funded by merchants will be sent.

Properties

Name Type Description Notes
id str The campaign's ID.
created_by str The party who created the campaign. Can be created by partners via API, merchants via the merchant app or Grab.
merchant_id str The merchant's ID that is in GrabFood's database.
name str The campaign's name.
quotas CampaignQuotas [optional]
conditions CampaignConditions [optional]
discount CampaignDiscount [optional]
custom_tag str Specify the tag for custom bundle offer campaign. Only whitelisted partner is supported as of now. [optional]

Example

from grabfood.models.campaign import Campaign

# TODO update the JSON string below
json = "{}"
# create an instance of Campaign from a JSON string
campaign_instance = Campaign.from_json(json)
# print the JSON string representation of the object
print(Campaign.to_json())

# convert the object into a dict
campaign_dict = campaign_instance.to_dict()
# create an instance of Campaign from a dict
campaign_from_dict = Campaign.from_dict(campaign_dict)

[Back to Model list] [Back to API list] [Back to README]