Terminate a Contract

The platform can deactivate the contracts it has created. This requires access to the contract, and that the contract is active.

The API endpoint to deactivate a contract is POST /api/v2/General/Contracts/{id}/terminate:

Request
POST /api/v2/General/Contracts/GCR_0YRJBNLA0OFHAKG4ZNVLIN5I7S5T4I/terminate HTTP/1.1
Host: connect-testing.secupay-ag.de
Accept: application/json
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo

If everything is fine, the API responds with 200 OK, and confirms the outcome:

Response
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"result": true
}