Deposits

Delete deposit transfer lots

Changed on

Removes the cost-basis transfer lots recorded for a deposit. Supply a request_id to delete a specific submission; omit the body to clear the deposit’s current lot.

delete/deposits/{deposit_id}/lots

Request

  • Base URL
    https://api.cert.zerohash.com
  • URL
    https://api.cert.zerohash.com/deposits/{deposit_id}/lots
  • Auth
    API key in header X-SCX-API-KEY and API key in header X-SCX-PASSPHRASE

Path parameters

deposit_idstring required

The unique identifier of the deposit — the deposit_id returned by the GET crypto deposits endpoints, which equals the movement_id returned by the GET deposits endpoint.

Headers

X-SCX-SIGNEDstring required

HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.

X-SCX-TIMESTAMPstring required
Example:1678901234

Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.

Request body

request_idstring

Optional request_id of the specific transfer-lot submission to delete. When omitted, the deposit’s current lot is cleared regardless of which submission produced it.

Example request

{
  "request_id": "21bdbb11-712f-4cb7-a178-4f277c80cde0"
}

Response

The transfer lots that were removed from the deposit.

Example response

{
  "message": {
    "request_id": "21bdbb11-712f-4cb7-a178-4f277c80cde0",
    "deposit_id": "21bdbb11-712f-4cb7-a178-4f277c80cde0",
    "status": "reported",
    "participant_code": "ABCDEF",
    "account_label": "general",
    "effective_datetime": "2024-01-01T00:00:00Z",
    "lots": [
      {
        "quantity": "1.5",
        "cost_basis": "45000.00",
        "acquisition_transaction_datetime": "2024-01-01T00:00:00Z"
      }
    ],
    "error_message": "lot quantity exceeds deposit amount",
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-01T00:00:00Z"
  }
}

Changes