Payment cancellation request
Changed onThis method initiates the cancellation of a payment. Depending on the payment-service, the payment-product and the ASPSP's implementation, this TPP call might be sufficient to cancel a payment. If an authorisation of the payment cancellation is mandated by the ASPSP, a corresponding hyperlink will be contained in the response message.
Cancels the addressed payment with resource identification paymentId if applicable to the payment-service, payment-product and received in product related timelines (e.g. before end of business day for scheduled payments of the last business day before the scheduled execution day).
The response to this DELETE command will tell the TPP whether the
- access method was rejected,
- access method was successful, or
- access method is generally applicable, but further authorisation processes are needed.
Request
- Base URLhttps://api.dev.openbankingproject.ch
- URLhttps://api.dev.openbankingproject.ch/v1/{payment-service}/{payment-product}/{paymentId}
- Auth
- none
- or HTTP bearer
Path parameters
Payment service:
Possible values are:
- payments
- bulk-payments
- periodic-payments
The addressed payment product endpoint, e.g. for SEPA Credit Transfers (SCT). The ASPSP will publish which of the payment products/endpoints will be supported.
The following payment products are supported:
- domestic-swiss-credit-transfers-isr
- domestic-swiss-credit-transfers
- domestic-swiss-credit-transfers-qr
- domestic-swiss-foreign-credit-transfers
- swiss-sepa-credit-transfers
- swiss-cross-border-credit-transfers
- pain.001-sepa-credit-transfers
- pain.001-cross-border-credit-transfers
- pain.001-swiss-six-credit-transfers
Remark: For all SEPA Credit Transfer based endpoints which accept XML encoding, the XML pain.001 schemes provided by EPC are supported by the ASPSP as a minimum for the body content. Further XML schemes might be supported by some communities.
Remark: For cross-border and TARGET-2 payments only community wide pain.001 schemes do exist. There are plenty of country specificic scheme variants.
Resource identification of the generated payment initiation resource.
Headers
ID of the request, unique to the call, as determined by the initiating party.
Is contained if and only if the "Signature" element is contained in the header of the request.
A signature of the request by the TPP on application level. This might be mandated by ASPSP.
The certificate used for signing the request, in base64 encoding. Must be contained if a signature is contained.
If it equals "true", the TPP prefers a redirect over an embedded SCA approach. If it equals "false", the TPP prefers not to be redirected for SCA. The ASPSP will then choose between the Embedded or the Decoupled SCA approach, depending on the choice of the SCA procedure by the TPP/PSU. If the parameter is not used, the ASPSP will choose the SCA approach to be applied depending on the SCA method chosen by the TPP/PSU.
If this URI is contained, the TPP is asking to redirect the transaction flow to this address instead of the TPP-Redirect-URI in case of a negative result of the redirect SCA method. This might be ignored by the ASPSP.
URI of the TPP, where the transaction flow shall be redirected to after a Redirect.
Mandated for the Redirect SCA Approach, specifically when TPP-Redirect-Preferred equals "true". It is recommended to always use this header field.
Remark for Future: This field might be changed to mandatory in the next version of the specification.
If it equals "true", the TPP prefers to start the authorisation process separately, e.g. because of the usage of a signing basket. This preference might be ignored by the ASPSP, if a signing basket is not supported as functionality.
If it equals "false" or if the parameter is not used, there is no preference of the TPP. This especially indicates that the TPP assumes a direct authorisation of the transaction in the next step, without using a signing basket.
The forwarded IP Address header field consists of the corresponding http request IP Address field between PSU and TPP.
The forwarded IP Port header field consists of the corresponding HTTP request IP Port field between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded IP Accept header fields consist of the corresponding HTTP request Accept header fields between PSU and TPP, if available.
The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
HTTP method used at the PSU ? TPP interface, if available. Valid values are:
- GET
- POST
- PUT
- PATCH
- DELETE
UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID needs to be unaltered until removal from device.
The forwarded Geo Location of the corresponding http request between PSU and TPP if available.
Response
Received
Example response
{
"transactionStatus": "ACCP",
"scaMethods": [
{
"authenticationMethodId": "myAuthenticationID",
"name": "SMS OTP on phone +49160 xxxxx 28",
"explanation": "Detailed information about the SCA method for the PSU."
}
],
"chosenScaMethod": {
"authenticationMethodId": "myAuthenticationID",
"name": "SMS OTP on phone +49160 xxxxx 28",
"explanation": "Detailed information about the SCA method for the PSU."
},
"_links": {
"startAuthorisation": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
},
"startAuthorisationWithPsuIdentification": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
},
"startAuthorisationWithPsuAuthentication": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
},
"startAuthorisationWithEncryptedPsuAuthentication": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
},
"startAuthorisationWithAuthenticationMethodSelection": {
"href": "/v1/payments/swiss-sepa-credit-transfers/1234-wertiq-983"
}
}
}Changes
- warning
added the new
SCA_INVALIDenum value to the//response property for the response status (media type: application/problem+json) - warning
added the new
SCA_INVALIDenum value to theresponse property for the response status (media type: application/problem+json) - warning
added the new
SCA_INVALIDenum value to the//response property for the response status (media type: application/json) - warning
added the new
SMTP_OTPenum value to the//response property for the response status - info
added the new optional
headerrequest parameterTPP-Explicit-Authorisation-Preferred - info
added the new optional
headerrequest parameterTPP-Nok-Redirect-URI - info
added the new optional
headerrequest parameterTPP-Redirect-Preferred - info
added the new optional
headerrequest parameterTPP-Redirect-URI - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json) - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json) - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json) - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json) - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json) - info
added the optional property
/to the response with the status (media type: application/json) - info
added the optional property
/to the response with the status (media type: application/problem+json)
- warning
- breaking
removed the enum value
cross-border-credit-transfersfrom thepathrequest parameterpayment-product - breaking
removed the enum value
instant-sepa-credit-transfersfrom thepathrequest parameterpayment-product - breaking
removed the enum value
pain.001-instant-sepa-credit-transfersfrom thepathrequest parameterpayment-product - breaking
removed the enum value
pain.001-target-2-paymentsfrom thepathrequest parameterpayment-product - breaking
removed the enum value
sepa-credit-transfersfrom thepathrequest parameterpayment-product - breaking
removed the enum value
target-2-paymentsfrom thepathrequest parameterpayment-product - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
response property's maxLength was increased from500to512for the response status (media type: application/problem+json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
//response property's maxLength was increased from500to512for the response status (media type: application/json) - breaking
the
/response's property format changed fromurlto no format for status - warning
deleted the
headerrequest parameterTPP-Explicit-Authorisation-Preferred - warning
deleted the
headerrequest parameterTPP-Nok-Redirect-URI - warning
deleted the
headerrequest parameterTPP-Redirect-Preferred - warning
deleted the
headerrequest parameterTPP-Redirect-URI - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: application/problem+json) - info
added the new enum value
domestic-swiss-credit-transfersto thepathrequest parameterpayment-product - info
added the new enum value
domestic-swiss-credit-transfers-isrto thepathrequest parameterpayment-product - info
added the new enum value
domestic-swiss-credit-transfers-qrto thepathrequest parameterpayment-product - info
added the new enum value
domestic-swiss-foreign-credit-transfersto thepathrequest parameterpayment-product - info
added the new enum value
pain.001-swiss-six-credit-transfersto thepathrequest parameterpayment-product - info
added the new enum value
swiss-cross-border-credit-transfersto thepathrequest parameterpayment-product - info
added the new enum value
swiss-sepa-credit-transfersto thepathrequest parameterpayment-product - info
for the
headerrequest parameterPSU-Device-ID, the format was generalized fromuuidto no format - info
for the
headerrequest parameterX-Request-ID, the format was generalized fromuuidto no format - info
removed the
SCA_INVALIDenum value from the//response property for the response status (media type: application/problem+json) - info
removed the
SCA_INVALIDenum value from theresponse property for the response status (media type: application/problem+json) - info
removed the
SCA_INVALIDenum value from the//response property for the response status (media type: application/json) - info
removed the
SMTP_OTPenum value from the//response property for the response status
- breaking