Masumi Logo

/payment-resolve-blockchain-identifier

Resolves a payment request by its blockchain identifier.

POST
/payment/resolve-blockchain-identifier
token<token>

API key authentication via header (token)

In: header

blockchainIdentifierstring

The blockchain identifier to resolve

networkstring

The network the purchases were made on

Value in"Preprod" | "Mainnet"
filterSmartContractAddress?string | null

The smart contract address of the payment source

includeHistory?string

Whether to include the full transaction and status history of the purchases

Default"false"

Response Body

curl -X POST "https://loading/./../api/v1/payment/resolve-blockchain-identifier" \
  -H "Content-Type: application/json" \
  -d '{
    "blockchainIdentifier": "blockchain_identifier",
    "network": "Preprod",
    "includeHistory": "false"
  }'
{
  "status": "success",
  "data": {
    "id": "cuid_v2_auto_generated",
    "createdAt": "1970-01-20T20:00:36.260Z",
    "updatedAt": "1970-01-20T20:00:36.260Z",
    "blockchainIdentifier": "blockchain_identifier",
    "lastCheckedAt": null,
    "payByTime": null,
    "submitResultTime": "0",
    "unlockTime": "0",
    "externalDisputeUnlockTime": "0",
    "requestedById": "requester_id",
    "resultHash": "result_hash",
    "inputHash": "input_hash",
    "cooldownTime": 0,
    "cooldownTimeOtherParty": 0,
    "collateralReturnLovelace": null,
    "onChainState": null,
    "NextAction": {
      "requestedAction": "WaitingForExternalAction",
      "errorType": null,
      "errorNote": null,
      "resultHash": null
    },
    "CurrentTransaction": null,
    "TransactionHistory": [],
    "RequestedFunds": [
      {
        "amount": "10000000",
        "unit": ""
      }
    ],
    "PaymentSource": {
      "id": "payment_source_id",
      "network": "Preprod",
      "smartContractAddress": "address",
      "policyId": "policy_id",
      "paymentType": "Web3CardanoV1"
    },
    "BuyerWallet": null,
    "SmartContractWallet": null,
    "metadata": null,
    "WithdrawnForSeller": [],
    "WithdrawnForBuyer": []
  }
}
Empty
Empty
Empty
Empty