Create Social Cause Campaign
Allows an admin user to create a social cause campaign on the Punchh platform
Headers
- Type: stringrequired
Bearer token for admin authorization, who is making a call on behalf of the customer. Send the API key in the following format: "Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE".
Body
application/json
- Properties: 12Type: object
Responses
- application/json
- application/json
Request Example for post/api2/dashboard/social_cause_campaigns
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/dashboard/social_cause_campaigns \
--request POST \
--header 'Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"name": "social_cause_campaign_19",
"description": "social_cause_campaign_description_19",
"city": "test_city",
"state": "Rajasthan",
"street": "ADDRESS_GOES_HERE",
"zip": "302001",
"phone_number": "1111111111",
"email": "test@example.com",
"address": "ADDRESS_GOES_HERE",
"start_date": "2019-06-26",
"end_date": "2019-06-26",
"remote_image_url": "IMAGE_URL_GOES_HERE"
}'
{
"social_cause_id": 745,
"name": "social_cause_campaign_19",
"description": "social_cause_campaign_description_19",
"image_url": "IMAGE_URL_GOES_HERE",
"miscellaneous": null,
"city": "test_city",
"state": "Rajasthan",
"street": "ADDRESS_GOES_HERE",
"zip": "302001",
"phone_number": "1111111111",
"email": "test@example.com",
"address": "ADDRESS_GOES_HERE",
"activated": true
}