This resource is used to create and get the status of existing callback pincodes.
GET
Mandatory parameters
None.
Optional parameters
Name |
Type |
Description |
pincode_id |
int |
ID of a pincode |
customer_id |
int |
Kaisa's unique ID for a customer |
page |
int |
Pagination, pincodes are returned in chunks of 1000, most recent first |
Output
Name | Description | ||||||||||||||||||
pincodes |
|
||||||||||||||||||
calls (if a pincode_id was provided) |
|
* outcome is only available if you’re using the pincodes API in combination with the Callback Manager workflow, otherwise the outcome will be null
POST
Mandatory parameters
Name |
Type |
Description |
pincode_length |
int |
How many digits should be used for the pincode (6,7 or 8) |
pincode_ttl |
int |
How long should the pincode be available for use (1-14 days) |
customer_id |
int |
Kaisa's unique ID for a customer (the customer / account needs to be created beforehand using /customers endpoint) |
phone_number |
string |
Number that the pincode should connect the call to (in e164 format). Kaisa will validate the number before returning a PIN. |
OR
Name |
Type |
Description |
pincode_length |
int |
How many digits should be used for the pincode (6,7 or 8) |
pincode_ttl |
int |
How long should the pincode be available for use (1-14 days) |
cdr_id |
int |
Kaisa's unique ID for a call |
OR
Name |
Type |
Description |
pincode_length |
int |
How many digits should be used for the pincode (6,7 or 8) |
pincode_ttl |
int |
How long should the pincode be available for use (1-14 days) |
custnr |
int |
Your own unique ID for a customer (the customer / account needs to be created beforehand using /customers endpoint) |
phone_number |
string |
Number that the pincode should connect the call to (in e164 format). Kaisa will validate the number before returning a PIN. |
Optional Parameters
custom_lead_id |
string |
Your own reference to the lead (max 36 chars) |
custom_lead_data |
string |
Your own lead definition. Must be valid JSON |
Output
Name |
Type |
Description |
id |
int |
id of the pincode |
pincode |
string |
pincode to use |
pincode_numbers |
string |
phone numbers that can be called to enter the pincode |
DELETE
Name |
Type |
Description |
pincode_id |
int |
ID of a pincode |
This request will mask the consumers phone number in the database, as well as invalidate the PIN code.
Comments
0 comments
Please sign in to leave a comment.