...
POST /oauth/token
Code Block |
---|
https://onlineapi.flexiti.fi/flexiti/online-api/oauth/token |
...
To use it add the refresh token (provided in the original /oauth/token call) and change the grant_type to refresh_token.
NOTE: The API request must be passed in the x-www-form-urlencoded format, or you will receive an error.
...
Code Block |
---|
{
"token_type": "bearer",
"access_token": "2d8f373a3c2b1e61baf5a7769930ff4f0e08cdb0",
"expires_in": 1200,
"refresh_token": "36e0fc3d7415145f4b1d71512c459fd6eaa13aa8",
"scope": "merchant"
} |
POST /online/v2/client-id/{clientId}/systems/init
Code Block |
---|
https://onlineapi.flexiti.fi/flexiti/online-api/online/client-id/{{client_id}}/systems/init |
...
Code Block |
---|
{
"online_order_id": 131209,
"redirection_url": "..."
} |
GET /online/v2/client-id/{clientId}/systems/payment-calculator
Code Block |
---|
https://onlineapi.flexiti.fi/flexiti/online-api/online/v2/client-id/{{client_id}}/systems/payment-calculator?clientId=flexitidemo&price=499&lang=fr |
...
Code Block |
---|
{
"htmlRender": "...",
"paymentPlan": {
"monthlyPayment": "166.33",
"months": "3"
}
} |
GET /online/client-id/{clientId}/notifications/order-id/{orderId}
Code Block |
---|
|
https://onlineapi.flexiti.fi/flexiti/online-api/online/client-id/{{client_id}}/notifications/order-id/:orderId |
...
Code Block |
---|
{
"transaction_id": 131222,
"flow": "apply",
"callback_url": "",
"apply": {
"customer_id": 1293836,
"apply_status": "SUCCESS",
},
"date": "2022-06-13T22:29:20.276Z""
} |
GET /online/client-id/{clientId}/notifications/merchant-order-id/{merchantOrderId}
Code Block |
---|
|
https://onlineapi.flexiti.fi/flexiti/online-api/online/client-id/{{client_id}}/notifications/merchant-order-id/:merchantOrderId |
...
Code Block |
---|
{
"transaction_id": 131222,
"flow": "apply",
"callback_url": "",
"apply": {
"customer_id": 1293836,
"apply_status": "SUCCESS",
},
"date": "2022-06-13T22:29:20.276Z""
} |
POST /online/client-id/{clientId}/merchants/payment-availability
Code Block |
---|
https://onlineapi.flexiti.fi/flexiti/online-api/online/client-id/{{client_id}}/merchants/payment-availability |
...