API · Bindings (contracts)

Cancel binding

Protocol: JSON v3 · XML 2.9POST/api/v3/projects/YOUR_PROJECT_ID/contracts/{contractId}/cancel

Description

Cancels an existing customer contract.

v4 signature payload: {contract_id}{merchant_contract_id}{client_ip}

XML 2.9 description

Cancels an active customer contract. XML request type: <CancelCustomerContractRequest>.

Cancellation of the contract between Merchant and Client.

HTTP Headers:

  • Callisto-Protocol-Version: 2
  • SignatureVersion: 3

Request and response

Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.

POST/api/v3/projects/YOUR_PROJECT_ID/contracts/{contractId}/cancelPRODUCTION
Request
curl -X POST "https://pay-api.digitalspb.com/api/v3/projects/YOUR_PROJECT_ID/contracts/{contractId}/cancel" \  -H "Content-Type: application/json" \  -H "X-Login: YOUR_LOGIN" \  -H "X-Timestamp: YOUR_TIMESTAMP" \  -H "X-Signature-Version: 3" \  -H "X-Signature: YOUR_SIGNATURE" \  -d '{  "client_ip": "10.20.30.40"}'
Read-only example. Runnable examples are available in the Sandbox section.
200
{  "success": true,  "data": {    "contract_id": "16449203-0000-009b-a125-351b7bfbd207",    "status": "cancelled"  }}

JSON v3 request fields

Contracts_Cancel
Request fieldsTypeReq.Description
client_ipstringoptional

XML 2.9 request fields

cancelCustomerContract
Request fieldsTypeReq.Description
CancelCustomerContractRequestobject & objectrequired
ProjectIDinteger (int32)required

Project ID in the Platform system. Assigned during project setup.

ClientIPstringoptional

IP address from which the client makes the request. Mandatory by default (configurable in project settings).

CustomerContractInfoobjectrequired

Customer contract reference for authorize/cancel operations.

+21
Headerobjectrequired

Request header with authentication. Included in every API request.

Authenticationobjectrequired

Request authentication data. All three fields are mandatory for every request.

+3
RequestAttemptinteger (int32)optional

Ordinal invoice request number (for idempotency). Starting from 0.

Gatewayobjectoptional+3

Parameters and headers

NameInRequiredDescription
projectIdpathyesProject ID assigned by the platform during onboarding.
contractIdpathyesContract UUID assigned by the platform.

Responses

200
Contract cancelledexample
400
401
403
500
503

Full error codes are in Error codes.