/payments endpoint to:
Requirements
Initiate a payment
To initiate a single payment on behalf of your account holder:-
Make a POST
/payments/target-2-paymentsrequest with the following parameters in the request body. The request header includes, for example, an IPv4 address like 19.68.26.143, or an IPv6 address like 2001:db8:1:1:1:1:1:1.Here is an example of a request to initiate a payment of EUR 0.50 to Railway Company. Initiate a single payment -
The response contains the details of the initiated payment, including the
transactionStatusand thepaymentId. The response contains the following fields:Response
Get payment status
To get the status of the payment:-
Make a GET
/payments/target-2-payments/{paymentId}request. Use this endpoint to check if the payment has been confirmed. ThepaymentIdis found in the response of the Initiate a payment step. Keep polling the endpoint for status updates (recommended every 5 seconds). Get payment status -
The response contains the
transactionStatuswhich describes the current state of the payment. The response may look like this: Response
Get authorization status
To get information about the payment authorization details and determine where your account holder is in the in authorization flow to initiate payments.-
Make a GET
/payments/target-2-payments/{paymentId}/authorisations/{authorizationId}request, wherepaymentIdrepresents a unique identifier for a payment transaction andauthorizationIdis a unique identifier for a specific payment authorization. Get authorization status -
The response contains the authorization status. See the
scaStatusfor all possible values.Response
