Template Selections
Successfully submit a template selection
After a customer chooses a template, this API endpoint should be called
Endpoint
POST /api/v1/template_selections
Parameters
Name | Description |
---|---|
template_selection[event_booking_id] required | Check Cherry Booking ID |
template_selection[design_id] required | Design ID |
template_selection[user_id] required | User ID |
template_selection[template_name] required | Template Name |
template_selection[template_image_url] required | Template Image URL |
template_selection[account_number] | Your Customer's Account Number |
template_selection[template_purchase_url] | /Users/makaio/code/checkcherry/spec/fixtures/sample.png |
Request
Route
POST /api/v1/template_selections
Headers
Accept: application/json
Content-Type: application/json
App-Id: e2dc897e-fa1a-483d-97f9-0c767e620bb4
App-Secret: BVItLjshUxRUgB3NiMERjDPLS3Yd1wYpEZSK5NEW
Franchise-Id: 257
Body
{
"template_selection": {
"event_booking_id": 20,
"design_id": 4,
"user_id": 35,
"template_name": "Sunny Lane",
"template_image_url": "/Users/makaio/code/checkcherry/spec/fixtures/sample.png",
"account_number": "your-customer-account-number",
"template_purchase_url": "https://example.org/buy-my-template"
}
}
Response
Simulated Response
Status
200
Headers
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 516f3c8e-3216-4cd0-ac66-6ef45d2fcb6d
Content-Length: 24
Body
{
"meta": {
"status": "ok"
}
}