Delete Location Async
Puts a location in the queue to be deleted from the database
Headers
- Type: stringAuthorizationrequired
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
- Type: integerlocation
_id requiredUnique ID of a particular location. This is generated by Punchh.
- Type: stringstore
_number Unique store number provided by the business
Responses
- application/json
Request Example for delete/api2/dashboard/locations/destroy_async
curl https://SERVER_NAME_GOES_HERE.punchh.com/api2/dashboard/locations/destroy_async \
--request DELETE \
--header 'Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE' \
--header 'Content-Type: application/json' \
--data '{
"location_id": 306248,
"store_number": "317111"
}'
{
"accepted": "Queued for deletion"
}