Search

Are you looking for test card numbers?

Would you like to contact support?

Default icon

Delete latest cost contract

Delete the most recent inactive cost contract for an account key.

When replacing a cost contract, you first need to make a deleteLastCostContract request to remove the previous inactive cost contract. Then, proceed to create a new one with addCostContract.

This endpoint does not support partial updates.

In case an error occurs during a /deleteLatestCostContract update:

  • No changes are applied.
  • Current data is kept.
  • The entire update fails.

Request parameters

To delete the oldest inactive cost contract for a specific account key, make a POST /deleteLatestCostContract request specifying:

Name Type Required Description
accountKey String
-white_check_mark-

Unique reference to identify an account.

  • Company account key format: Company.COMPANY_CODE
  • Merchant account key format: Merchant.MERCHANT_CODE

Response parameters

If there are no errors in the request, the call returns a pspReference.If any issues occur during the process, the call returns one or more warning or error messages.

Name Type Returned by default Description
pspReference String
-white_check_mark-
A reference to uniquely identify the request.
warnings String
-x-
Warning message(s) about problems encountered while trying to delete the oldest inactive cost contract.
Returned when the oldest inactive cost contract deletion for the specified account key does not work as expected.
errors String
-x-

Error message(s) about problems encountered while trying to delete the oldest inactive cost contract.
Returned when the oldest inactive cost contract deletion for the specified account key fails.

Examples

Request

{  
   "accountKey":"MerchantAccount.TestMerchant"
}
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <deleteLatestCostContract xmlns="http://caaccount.services.adyen.com">
      <request>
        <accountKey>MerchantAccount.TestMerchant</accountKey>
      </request>
    </deleteLatestCostContract>
  </soap:Body>
</soap:Envelope>

Response

{  
   "pspReference":"9914526949160163"
}
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://caaccount.services.adyen.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns0:deleteLatestCostContractResponse>
      <ns0:response>
        <ns0:pspReference>9914140650000269</ns0:pspReference>
      </ns0:response>
    </ns0:deleteLatestCostContractResponse>
  </soap:Body>
</soap:Envelope>