Endpoints
- Projects
- Segment usage
- Project defined events
- Events
- Flows
- Employees
- Businesses
- Variables
- Customers
- Segments
- Unsubscribe embeds
- Email templates
- Email template embeds
- Project email templates
- Emails
- Email addresses
- Sms templates
- Sms template embeds
- Sms messages
- Campaigns
- Campaign embeds
- Triggers
- Trigger embeds
- Email blasts
- Project email addresses
- Project phone numbers
- Campaign templates
- Trigger templates
- Phone numbers
- Filter definitions
- Sync
- Reviews
- Review embeds
- Rewards programs
- Members
- Location members
- Locations
- Tiers
- Promotions
- Rewards profiles
- Users
- Embeds
- Feature flags
Create a location
POST
/
locations
Copy
curl --request POST \
--url https://api.pocketflows.com/locations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"rewards_program_id": "<string>"
}'
Copy
{
"id": "<string>",
"rewards_program": {
"id": "<string>",
"points_earned_per_dollar_spent": 123,
"point_redemption_value": "<string>",
"points_for_member_class_attendance": 123,
"points_for_referring_new_student": 123,
"points_for_referring_new_student_that_signs_up": 123,
"points_for_every_ten_classes_non_member": 123,
"points_for_first_visit_in_three_months": 123
}
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Response
200 - application/json
The created Location
object
The response is of type object
.
Copy
curl --request POST \
--url https://api.pocketflows.com/locations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"rewards_program_id": "<string>"
}'
Copy
{
"id": "<string>",
"rewards_program": {
"id": "<string>",
"points_earned_per_dollar_spent": 123,
"point_redemption_value": "<string>",
"points_for_member_class_attendance": 123,
"points_for_referring_new_student": 123,
"points_for_referring_new_student_that_signs_up": 123,
"points_for_every_ten_classes_non_member": 123,
"points_for_first_visit_in_three_months": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.