Calling the Solution within a Journey
This journey is meant to be integrated with an existing e-commerce website, therefore, you need to call it. APIs are used to achieve this integration. We recommend using Postman to call all the endpoints from this solution in the following order:
- FTOS_EC_GetUserShoppingCart
- FTOS_EC_UpdateCartItemQuantity
- FTOS_BNPL_CalcScoringAndLimit
- FTOS_BNPL_GetAvailableProducts
- FTOS_BNPL_SimulateOfferSummary
- FTOS_BNPL_GetRiskLevel
- FTOS_EC_CreateOrder
- FTOS_BNPL_GetMerchantBankAccount
- FTOS_BNPL_AddBNPLApplication
- FTOS_BNPL_UpdateBNPLApplication
- FTOS_BNPL_GetBNPLApplicationLink.
FTOS_BNPL_SimulateOfferSummary
Copy
request
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/Authorize/GetToken?client_id=postman&username={{auth.username}}&password={{auth.password}}&response_type=token",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"Authorize",
"GetToken"
],
"query": [
{
"key": "client_id",
"value": "postman"
},
{
"key": "username",
"value": "{{auth.username}}"
},
{
"key": "password",
"value": "{{auth.password}}"
},
{
"key": "response_type",
"value": "token"
}
]
}
},
Copy
response
"response": []
},
{
"name": "SimulateOfferSummary",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n },\r\n \"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_SimulateOfferSummary\",\r\n \"Data\": \"{\\\"productAmount\\\":1000,\\\"bankingProductCode\\\": \\\"BNPL3X\\\" }\"\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_CalcScoringAndLimit
Copy
"response": []
},
{
"name": "CalcScoringAndLimit",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"Request\": {\r\n \"ActionName\": \"FTOS_BNPL_CalcScoringAndLimit\",\r\n \"Data\": \"{\\\"KOInput\\\":{\\\"hasModifiedCredentialsPast24Hours\\\":false,\\\"ordersReturnedPercentage\\\":0.1,\\\"dpdForBnplActiveProducts\\\":0,\\\"bnplWithDpdPast12Months\\\":10,\\\"bnplRefusedPaymentsNoLast30Days\\\":4},\\\"scoringInput\\\":{\\\"BNPLUsageRate\\\":\\\"20\\\",\\\"maxDPD\\\":\\\"N/A\\\",\\\"payedInAdvance\\\":\\\"2\\\",\\\"averageCheckoutTicketSize\\\":\\\"31\\\",\\\"paymentInstrument\\\":\\\"Bank Transfer\\\",\\\"uniqueCardsNo\\\":\\\"3\\\",\\\"customerLoyalty\\\":\\\"4\\\",\\\"customerAge\\\":\\\"40\\\",\\\"returnedProductsPercent\\\":\\\"20\\\"},\\\"limitInput\\\":{\\\"currencyCode\\\":\\\"EUR\\\",\\\"userScore\\\":141}}\"\r\n },\r\n \"ApiInfo\": {\r\n \"UserName\": \"{{auth.username}}\",\r\n \"Token\": \"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_GetAvailableProducts
Copy
"response": []
},
{
"name": "GetAvailableProducts",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_GetAvailableProducts\",\r\n \"Data\": \"{\\\"score\\\":200,\\\"countryCode\\\":\\\"FR\\\",\\\"productCodes\\\":[\\\"BNPL30D\\\",\\\"BNPL3X\\\",\\\"BNPL4X\\\",\\\"BNPL5X\\\",\\\"BNPL6X\\\",\\\"BNPL7X\\\",\\\"BNPL8X\\\",\\\"BNPL9X\\\",\\\"BNPL10X\\\",\\\"BNPL11X\\\",\\\"BNPL12X\\\"]}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_GetRiskLevel
Copy
"response": []
},
{
"name": "GetRiskLevel",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_GetRiskLevel\",\r\n \"Data\": \"{\\\"amount\\\":300,\\\"productCode\\\":\\\"BNPL3X\\\"}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_AddBNPLApplication
Copy
"response": []
},
{
"name": "AddBNPLApplication",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_AddBNPLApplication\",\r\n \"Data\": \"\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_UpdateBNPLApplication
Copy
"response": []
},
{
"name": "UpdateBNPLApplication",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_UpdateBNPLApplication\",\r\n \"Data\": \"{\\\"data\\\":{\\\"loan\\\":{\\\"id\\\":\\\"1e17e93e-eb34-4d15-8baa-ab8ff33c796b\\\",\\\"data\\\":{\\\"bankingProductCode\\\":\\\"BNPL3X\\\"}}}}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_GetBNPLApplicationLink
Copy
"response": []
},
{
"name": "GetBNPLApplicationLink",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_GetBNPLApplicationLink\",\r\n \"Data\": \"{\\\"loanId\\\":\\\"1e17e93e-eb34-4d15-8baa-ab8ff33c796b\\\"}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_GetMerchantBankAccount
Copy
"response": []
},
{
"name": "GetMerchantBankAccount",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_GetMerchantBankAccount\",\r\n \"Data\": \"{\\\"merchantName\\\":\\\"TechShop\\\",\\\"currencyCode\\\":\\\"EUR\\\"}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_CreateMerchantBankAccount
Copy
"response": []
},
{
"name": "CreateMerchantBankAccount",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_CreateMerchantBankAccount\",\r\n \"Data\": \"{\\\"merchantName\\\":\\\"TechShop\\\",\\\"fiscalRegistrationNo\\\":\\\"100243\\\",\\\"commercialRegistration\\\":\\\"100243\\\"}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_ActivateContract
Copy
"response": []
},
{
"name": "ActivateContract",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_ActivateContract\",\r\n \"Data\": \"{\\\"contractNo\\\":\\\"455\\\",\\\"merchantCustomerNo\\\":\\\"251\\\"}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_UpdateContract
Copy
"response": []
},
{
"name": "UpdateContract",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_UpdateContract\",\r\n \"Data\": \"{\\\"contractNo\\\":\\\"455\\\",\\\"updateData\\\":{\\\"amountDue\\\":1200}}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},
FTOS_BNPL_SaveEarlyRepayment
Copy
"response": []
},
{
"name": "SaveEarlyRepayment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\"Request\":{\r\n\t\t\"ActionName\":\"FTOS_BNPL_SaveEarlyRepayment\",\r\n \"Data\": \"{\\\"contractNo\\\":\\\"459\\\",\\\"eventValue\\\":100}\"\r\n },\r\n \"ApiInfo\":{\r\n \"UserName\":\"{{auth.username}}\",\r\n \"Token\":\"{{ftos.auth.accessToken}}\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host.schema}}://{{host.name}}/api/OpenApi/CallAction",
"protocol": "{{host.schema}}",
"host": [
"{{host.name}}"
],
"path": [
"api",
"OpenApi",
"CallAction"
]
}
},