...
Note |
---|
Note: While testing apply flows in the Training or Merchant Integration environments you will not receive an SMS pin - just enter 2222 as the pin value in the widget. You will receive a dynamic pin for purchases however. |
API Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | authorization | Yes |
|
HEADER | x-reference-id | Yes |
|
PATH | client_id | Yes |
|
BODY | customer_identification.account_number | Yes if flow is “purchase” and vcc_number and personal_information is empty |
|
BODY | customer_identification.vcc_number | Yes if flow is “purchase” and account_number and personal_information is empty |
|
BODY | customer_identification.personal_information.first_name |
|
|
|
BODY | customer_identification.personal_information.last_name |
|
| |
BODY | customer_identification.personal_information.dob |
|
| |
BODY | customer_identification.personal_information.postal_code |
|
|
| ||
BODY | lang |
| |
BODY |
flow |
BODY
flow
boolean
Acceptance of the Cardholder Agreement (must be true at the time of submission).
Default value: false
Yes |
|
BODY
Yes if flow is “apply”
ASCII string (100)
Customer Email
This will be used for MFA
BODY
phone_number
Yes if flow is “apply”
number (10)
Customer Mobile Phone Number
This will be used for MFA via SMS
BODY
address_1
Yes if flow is “apply”
ASCII string (250)
Customer Address Line 1
BODY
address_2
ASCII string (100)
Customer Address Line 2
BODY
city
Yes if flow is “apply”
ASCII string (100)
Customer City
BODY
province
Yes if flow is “apply”
ASCII string (2)
Customer Province (2 character syntax, ex. ON for Ontario)
Available values: AB, BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT.
BODY
account_type
Yes if flow is “apply”
ASCII string (100)
This is the type of account the customer is applying for
Available values: business or consumer
Default value: consumer
Example Requests:
Apply Flow
Code Block | ||
---|---|---|
| ||
{
"customer_identification": {
"personal_information": {
"first_name": "John",
"last_name": "Smith",
"dob": "1988-07-24",
"postal_code": "m1m1m1"
}
},
"flow": "apply",
"account_type": "consumer",
"email": "john@email.com",
"phone_number": 1231231234,
"address_1": "Fake 445",
"city": "Toronto",
"province": "ON",
"tos_agreement": true
} |
...
|
Example Request for Buy Flow:
Code Block | ||
---|---|---|
| ||
{ "customer_identification": { "account_number": 20009100, //conditional mandatory "vcc_number": "1070015210367982", //conditional mandatory "personal_information": { //conditional mandatory "first_name": "John", "last_name": "Smith", "dob": "1988-07-24", "postal_code": "m1m1m1" } }, "flow": "purchase" } |
...