Initiate payment cancellation process
DELETEhttps://psd2.eika.no/api/v1/payments/:product/:paymentId
If the payment is not authorised this call is sufficient to cancel a payment. If an authorisation of the payment cancellation is mandated a corresponding hyperlink will be contained in the response message. A authorisation is always mandated if the payment is previously authorised. See XS2A Framework Implementation Guidelines, Section 5.6 for additional details.
Request
Responses
- 202
- 204
- 400
- 401
- 403
- 404
- 405
- 409
- 500
ACCEPTED
CREATED
Bad Request
Unauthorized
Forbidden
Not Found
Method Not Allowed
Conflict
Internal Server Error
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://psd2.eika.no/api/v1/payments/:product/:paymentId");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());