Template Selections

Validation errors when submitting a template selection

This submission is missing required fields

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: 8b415d51-39e3-42e9-ac93-ad6b49925d80
App-Secret: XW0chr8sQl6evKyW0PNXDF4DQpkMRfAWXsATPxYe
Franchise-Id: 261

Body

{
  "template_selection": {
    "account_number": "your-customer-account-number"
  }
}

Response

Simulated Response

Status

422

Headers

Content-Type: application/json; charset=utf-8
Cache-Control: no-cache
X-Request-Id: d45fb933-7b29-4586-a3d5-874538811b04
Content-Length: 146

Body

{
  "meta": {
    "status": "error"
  },
  "errors": {
    "template_name": [
      "Template name can't be blank"
    ],
    "template_image_url": [
      "Template image url can't be blank"
    ]
  }
}