APIs for Registration Form
Create, update, list, and delete Registration Forms using the Public API.
This page covers the Public API for managing Registration Forms — the sign-up forms your wholesale customers submit. All 4 operations share the same base URL, headers, and authentication described in Public APIs.
Create a Registration Form
Endpoint
POST https://wholesale.samita.io/api/v1/registration-formsRequest Headers
X-SAMITA-API-KEY
API key provided in the Wholesale app
Yes
X-SAMITA-SHOP-URL
Shopify shop domain in format xxx.myshopify.com
Yes
CONTENT-TYPE
Must be application/json
Yes
This API requires the Create permission on the API key.
Request Body
Top-level fields:
title
string
Recommended
The form's name in the app.
status
boolean
Recommended
Whether the form is active.
shopify_integration
object
Yes
Controls how submissions connect to Shopify customers — see below.
elements
array
Yes
The form's fields, in display order — see below.
header
object
No
Header text shown at the top of the form.
footer
object
No
Footer buttons and text shown at the bottom of the form.
general
object
No
Approval behavior and default customer tags.
errorMessage
object
No
Custom validation error text.
reCaptcha
object
No
Whether reCAPTCHA is required on this form.
afterSubmit
object
No
What happens after a customer submits.
Response
200 – Success returns the created record. See the example under Get a Registration Form below for the response shape.
Update a Registration Form
Same headers as Create. Only send the fields you want to change — title, status, and secret_configs (the full config object, in the same shape returned by GET, under the key configs) are all optional. Unspecified fields keep their current value. This API requires the Update permission.
Get a Registration Form
Same headers as Create, no request body. This API requires the View permission.
200 – Success example:
Delete a Registration Form
Same headers as Create. Pass an ids parameter — a comma-separated list of form IDs to delete (as a query string parameter or a JSON body field), e.g. ids=1,2,3. This API requires the Delete permission.
200 – Success:
Error responses
All 4 endpoints share the same error responses as the rest of the Public API — see Public APIs for 401 Unauthorized, 403 Forbidden, and 429 Too Many Requests.
Last updated
Was this helpful?