Use the /PaymentRequests endpoint as the final step to ensure you can have a user complete the payments flow.
/PaymentRequests endpoint as the final step to ensure you can have a user complete the payments flow.
To successfully call this endpoint, you must first call the /Authorize endpoint to obtain a valid access token. You must also have already called the /Sessions/Initiate API and received a valid sessionId.
sessionId to a requestId. This request activates the previously created session and provides the user with the ability to complete the FlinksPay app flow by being redirected to their institution. It is imperative that you call this endpoint before launching the application for your user.
When creating a payment request using this endpoint, you are linking a sessionId to a requestId. This validates the session and creates the payment activity. It also enables you to use the given requestId to retrieve details on payment statuses.
To create a payment request, simply use the access_token as authorization, and supply the previously generated (from /Sessions/Initiate) sessionId within the body of the request.
In return, you will receive a HTTP 200 OK and a requestId that can be used to track the user’s activity and the corresponding payment.
Once you receive a 200 OK and the associated requestId, you are now able to initiate the application for your end user and they will be able to complete the flow.
Please use the previously acquired sessionId to append to your base FlinksPay URL (provided at onboarding - for example https://{BaseURL}/app/?sessionId={{sessionId}}) in order to generate the app session and have the user complete the flow.The unique environment that you are making the API call from. Provided during onboarding.
Bearer (plus the access_token received previously in a completed authorize call).
GUID representing the unique ID of the generated session within the Flinks system.
Result
The unique ID of the payment request.