ibanity v0.6.0 Ibanity.Xs2a.PaymentInitiationRequestAuthorization

Payment initiation requests API wrapper

Link to this section Summary

Link to this section Functions

Link to this function


Creates an account information access request authorization

In order for the request to be successful you must have created a Ibanity.Xs2a.CustomerAccessToken beforehand.


This is the transcription of the example found in the API documentation

iex> "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
...> |> Request.customer_access_token
...> |> Request.id(:financial_institution_id, "b031dfe8-ebad-410b-aa77-064f8c876540")
...> |> Request.id(:payment_initiation_request_id, "b031dfe8-ebad-410b-aa77-064f8c876540")
...> |> Request.attribute("query_parameters", %{})
...> |> PaymentInitiationRequestAuthorization.create
    id: "ce410d99-6382-4463-bfd6-fa606c379dea",
    status: nil