No momento, esta página não está disponível em português
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:

NameTypeRequiredDescription

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.

NameTypeReturned by defaultDescription

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

Response