logo
Trustly Docs
BETA

CancelCharge

Cancel a scheduled recurring payment
Updated 23 days ago

Overview

Please note - Trustly Direct Debit (TDD) is no longer offered to new merchants

Please see Merchant Direct Debit (MDD) instead.


For Charge requests that have a future PaymentDate, it’s possible to cancel the Charge up until 18.00 on the day before the PaymentDate.

A Charge request that doesn’t have any PaymentDate specified cannot be canceled. It’s also not possible to cancel a Charge request if the PaymentDate is equal to the date when Charge request was sent.

Request parameters

Request example

Request
{
  "method": "CancelCharge",
  "params": {
    "UUID": "a556f303-1d31-d902-5a7c-fab771b6c709",
    "Data": {
      "Username": "merchant_username",
      "Password": "merchant_password",
      "OrderID": "2513519555"
    },
    "Signature": "mLCDMsrhM5SgVVBrQI\[...\]\]pYycrXBSYpiBQ=="
  },
  "version": "1.1"
}

Response attributes

The returned result is an object with the following attributes.

Response example

Response - Success
Response - Failed
{
  "version": "1.1",
  "result": {
    "data": {
      "result": "1",
      "rejected": null
    },
    "method": "CancelCharge",
    "signature": "hlrqrPIf\[...\]771b6c709"
  }
}