Skip to content

Create form

POST/admin/v1/stores/{store_id}/signup-forms
  • customers:write
  • Idempotency-Key supported

Creates a form.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestringrequired
  • kindenumrequired
    • popup
    • embedded
  • statusenumrequired
    • draft
    • live
  • wordsobjectrequired

    Its words in each language, by locale.

  • deliveryenumrequired

    Whether a reward's code shows on the spot, or only goes by email, which means the address is real.

    • show
    • email
  • ask_nameboolean
  • ask_phoneboolean
  • discount_idstring · or null

    The discount it rewards with: unique codes give each address its own.

Returns

201 The form.

Errors

  • 403forbiddenMissing permission.
  • 409The store has too many.
  • 422validation_failedInvalid fields.