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 |
---|---|---|---|
|
String |
| 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 |
---|---|---|---|
|
String |
|
A reference to uniquely identify the request. |
|
String |
| 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. |
|
String |
| Error message(s) about problems encountered while trying to delete the oldest inactive cost contract. |