request-repair

Preview a manual request repair. (admin access required)

Dry run of a repair: validates the contract version, confirmation depth, unspent output and immutable request fields, then reports what would change without writing. Pass the returned requestVersion to apply; apply returns 409 if tx-sync changes the request after preview. A failed transaction check returns 400; an inconclusive chain-provider lookup returns 502.

post/request-repair/preview

Request

  • Base URL: ./../api/v1/ (relative, and the document was published on a file host, not at the API’s origin)
  • URL: ./../api/v1/request-repair/preview
  • Auth: API key in header token

Request body

kind'Purchase' | 'Payment' required

Whether the blockchainIdentifier refers to a purchase or a payment

network'Preprod' | 'Mainnet' required

The network the request belongs to

blockchainIdentifierstring required

The request to repair

txHashstring required

The transaction that should become the request's CurrentTransaction

Example request

{
  "kind": "Purchase",
  "network": "Preprod",
  "blockchainIdentifier": "blockchain_identifier",
  "txHash": "0000000000000000000000000000000000000000000000000000000000000000"
}

Response

Repair preview

status'success' required

Example response

{
  "status": "success",
  "data": {
    "txHash": "0000000000000000000000000000000000000000000000000000000000000000",
    "outputIndex": 0,
    "derivedOnChainState": "FundsLocked",
    "resultHash": null,
    "currentOnChainState": null,
    "requestVersion": "yF6hS5jPq0yNlTTDyc7mwHt18ZMYbn1RGv5C49VqX74"
  }
}

Changes

No recorded changes to this operation across all 50 revisions of this API.