Endpoints: Customers
These are all of the Endpoints required to identify Customers.
GET /client-id/{client_id}/customers/lookup
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/customers/lookup?vcc_number=1234123412341234
or
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/customers/lookup?account_number=123456789
or
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/customers/lookup?customer_id=123456789
This service allows the Merchant to gather the Customer information by providing any of the following:
a VCC number
an Account Number
a Customer ID
If you lookup via the VCC, the response will return the account the VCC belongs to.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
QUERY | lang |
| |
QUERY | vcc_number |
| |
QUERY | account_number |
| |
QUERY | customer_id |
|
Response Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
BODY | available_credit |
| |
BODY | account_number |
| |
BODY | customer_id |
| |
BODY | security_qid.id |
| |
BODY | security_qid.text |
| |
BODY | address_1 |
| |
BODY | address_2 |
| |
BODY | city |
| |
BODY | postal_code |
| |
BODY | province |
| |
BODY | payment_protection |
| |
BODY | risk_rating |
| |
BODY | offer_types.plan_name |
| |
BODY | offer_types.plan_id |
| |
BODY | offer_types.offer_category |
| |
BODY | offer_types.term_options |
| |
BODY | preferred_language |
|
Success Response:
{ "available_credit": 5000, "account_number": 20035156, "customer_id": 43353, "security_qid": [ { "id": "4", "text": "What is the name of your favourite childhood friend?" }, { "id": "5", "text": "What is the country of your ultimate dream vacation?" } ], "address_1": "123 Anystreet Ave", "address_2": "Suite 100", "city": "Toronto", "postal_code": "M5M1M1", "province": "ON", "payment_protection": 0, "risk_rating": "L", "offer_types": [ { "plan_name": "90 Days Grace, Equal Payments Regular Interest", "plan_id": "1", "offer_category": "equal_billing", "term_options": [ "12", "18", "24", "36" ] } ], "preferred_language": "EN_CA" }
POST /client-id/{client_id}/account/{account_number}/verify
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/account/12345678/verify
This endpoint allows you to verify a Customer using one of the four available verification methods, depending on the "format" specified in the body.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
PATH | account_number | Yes |
|
BODY | format | Yes |
|
BODY | security_qid | Required for format: security_question |
|
BODY | security_answer | Required for format: security_question |
|
Example Request:
{ "format": "security_question", "security_qid": "6", "security_answer": "Tool" }
Success Responses:
200 - Success - Override
{ "verification_code": 2485 }
200 - Success - SMS
{ "verification_code": "verification_sent_to_sms" }
200 - Success - Email
{ "verification_code": "verification_sent_to_email" }
GET /client-id/{client_id}/customers/search
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/customers/search?first_name=John&last_name=Smith&dob=1900-01-01
This Endpoint returns a list of accounts for the customer being searched for.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
QUERY | first_name | Yes |
|
QUERY | last_name | Yes |
|
QUERY | dob | Yes |
|
Response Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
BODY | customer_id | ||
BODY | account_status |
| |
BODY | account_status_reason_code |
| |
BODY | tos_agreement |
| |
BODY | risk_rating |
| |
BODY | account_number |
| |
BODY | credit_limit |
| |
BODY | available_credit |
| |
BODY | originating_merchant_id |
| |
BODY | originating_merchant_name |
| |
BODY | creation_date |
| |
BODY | first_name |
| |
BODY | last_name |
| |
BODY | card_ending_in |
| |
BODY | preferred_language |
|
Success Response:
[ { "customer_id": "829825", "account_status": "N", "account_status_reason_code": "NNOR", "tos_agreement"": true, "risk_rating": "H", "account_number": "116574819", "credit_limit": "1000.00", "available_credit": "659.51", "originating_merchant_id": "11503", "originating_merchant_name": "Paris Jewellers", "creation_date": "2019-05-15", "first_name": "David", "last_name": "Morley", "card_ending_in": "5941", "preferred_language": "fr-CA" }, { "customer_id": "829875", "account_status": "F", "account_status_reason_code": "FLCK", "tos": true, "risk_rating": "Y", "account_number": "116574860", "credit_limit": "1000.00", "available_credit": "847.00", "originating_merchant_id": "11503", "originating_merchant_name": "Paris Jewellers", "creation_date": "2019-05-15", "first_name": "David", "last_name": "Morley", "card_ending_in": "6457", "preferred_language": "en-CA" } ]
POST /client-id/{client_id}/customers/driverslicense
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/customers/driverslicense
This endpoint allows the decoding of PDF417 scanned driver license information.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
BODY | code | Yes |
|
Example Request:
{ "code": "@\n\u001e\rANSI\n604428040101 DL00310219DLDCAunavI\nDCBNONE\nDCDNONE\nDBA20200515\nDCSNUMBER1\nDACENSTREAM \nDAD\nDBD20140516\nDBB19740515\nDBCZ\nDAYBLU\nDAU163 cm\nDAG55 UNIVERSITY AVE\nDAITORONTO\nDAJON\nDAKM5J 2H7\nDAQD61014070660905\nDCFPEJK368N4\nDCGCAN\nDDEU\nDDFU\nDDGU\r" }
Success Response:
{ "first_name": "John", "middle_name": "Grey", "last_name": "Doe", "dob": "1974-05-15", "address_1": "55 UNIVERSITY AVE", "city": "TORONTO", "province": "ON", "postal_code": "M5J 2H7", "govid_type": "CADL", "govid_issuedby": "ON", "govid_number": "D61014070660905", "govid_expiry": "2020-05-15" }
POST /client-id/{client_id}/customers/close-account
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/accounts/12345/close
This endpoint allows the closure of a QC account.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
PATH | account_number | Yes |
|
Success Response:
200 - Success
{ }
POST /pos-api/client-id/{client_id}/accounts/{account_number}/calculate-interest
https://posapi-training.flexiti.fi/flexiti/pos-api/v2.5/client-id/flexitidemo/accounts/12345/calculate-interest
This endpoint retrieves the plan and term configured for the merchant that can be offered to a customer.
Request Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
HEADER | bearer token | Yes |
|
PATH | client_id | Yes |
|
PATH | account_number | Yes |
|
QUERY | lang |
| |
BODY | amount |
|
Example Request:
{ "amount": 234.45 }
Response Parameters:
Type | Parameter | Required | Details |
---|---|---|---|
BODY | account_number |
| |
BODY | amount |
| |
BODY | customer.available_credit |
| |
BODY | customer.air |
| |
BODY | customer.first_name |
| |
BODY | customer.last_name |
| |
BODY | customer.customer_category_type |
| |
BODY | regular.purchase.term_amount |
| |
BODY | regular.purchase.air |
| |
BODY | regular.purchase.fees.description |
| |
BODY | regular.purchase.fees.amount |
| |
BODY | regular.purchase.fees.type |
| |
BODY | regular.purchase.fees.message |
| |
BODY | promotional_purchase.plan_id |
| |
BODY | promotional_purchase.terms.term |
| |
BODY | promotional_purchase.terms.term_amount |
| |
BODY | promotional_purchase.terms.apr |
| |
BODY | promotional_purchase.terms.fees.description |
| |
BODY | promotional_purchase.terms.fees.amount |
| |
BODY | promotional_purchase.terms.fees.type |
| |
BODY | promotional_purchase.terms.fees.message |
|
Success Response:
{ "account_number": 2500, "amount": 2500, "customer": { "air": 0.3724, "available_credit": 2000.12, "first_name": "Jon", "last_name": "Doe", "category_type": "preferred" }, "regular_purchase": { "term_amount": 250, "air": 0.3724, "fees": [ { "description": "Admin fee:", "amount": 49.99, "type": "admin", "message": "lorem ipsum" } ] }, "promotional_purchase": [ { "plan_id": 999, "terms": [ { "term": 10, "term_amount": 250, "apr": 0.1999, "fees": [ { "description": "Admin fee:", "amount": 49.99, "type": "admin", "message": "lorem ipsum" } ] } ] } ] }