Create form
POST
/ admin/ v1/ stores/ {store_id}/ signup-forms- customers:write
- Idempotency-Key supported
Creates a form.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredkindenumrequired- popup
- embedded
statusenumrequired- draft
- live
wordsobjectrequiredIts words in each language, by locale.
deliveryenumrequiredWhether a reward's code shows on the spot, or only goes by email, which means the address is real.
- show
ask_namebooleanask_phonebooleandiscount_idstring · or nullThe discount it rewards with: unique codes give each address its own.
Returns
201 The form.
Errors
- 403
forbiddenMissing permission. - 409The store has too many.
- 422
validation_failedInvalid fields.