Generate Tokens

Use this API to generate the different tokens required to integrate and use ZWITCH Elements.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

📘

Prefill Information in an Element

Information passed within the request_details object is prefilled in the element while initializing the element.

Body Params
string
required

Type of token you want to generate.

Possible values:

  • onboarding
  • customer
  • transfer

string

customer and transfer tokens only.

Either customer_id or mobile_number is mandatory.

Unique identifier of the customer making the request.

Example: cus_NkjSkrxU2h7E9Bc1ucX3511uP

string

customer and transfer tokens only.

Either customer_id or mobile_number is mandatory.

Applicant's mobile number.

Has to be 10 digits.

Example: 9876543210

Supported characters:

  • 0-9

request_details
object

Object that contains the details you want to prefill in an element.

string

transfer token only.

Unique identifier entered when creating the transfer.

  • Only alphabets and numbers are allowed.
  • Minimum: 7 characters.
  • Maximum: 40 characters.
Example: 1409614085

metadata
object

Key-value pair that can be used to store additional information about the entity.

Note:

  • Maximum 5 key-value pairs.
  • Maximum 256 characters in the metadata object.
  • You cannot pass a URL.
  • You cannot use \.
Example: "key_1": "DD"

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json