Masumi Logo

/purchase

Gets the purchase status. It needs to be created first with a POST request.

GET
/purchase
token<token>

API key authentication via header (token)

In: header

Query Parameters

limit?number

The number of purchases to return

Default10
Range1 <= value <= 100
cursorId?string

Used to paginate through the purchases. If this is provided, cursorId is required

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 GET "https://loading/./../api/v1/purchase/?limit=10&cursorId=string&network=Preprod&filterSmartContractAddress=string&includeHistory=false"
{
  "status": "success",
  "data": {
    "Purchases": [
      {
        "id": "cuid_v2_auto_generated",
        "blockchainIdentifier": "blockchain_identifier",
        "lastCheckedAt": null,
        "onChainState": null,
        "metadata": null,
        "requestedById": "requester_id",
        "resultHash": "",
        "cooldownTime": 0,
        "payByTime": null,
        "cooldownTimeOtherParty": 0,
        "collateralReturnLovelace": null,
        "inputHash": "input_hash",
        "NextAction": {
          "requestedAction": "FundsLockingRequested",
          "errorType": null,
          "errorNote": null,
          "inputHash": "input_hash"
        },
        "createdAt": "1970-01-20T20:00:36.260Z",
        "updatedAt": "1970-01-20T20:00:36.260Z",
        "externalDisputeUnlockTime": "1713636260",
        "submitResultTime": "1970-01-20T20:00:36.260Z",
        "unlockTime": "1713636260",
        "PaidFunds": [],
        "PaymentSource": {
          "id": "payment_source_id",
          "network": "Preprod",
          "policyId": "policy_id",
          "smartContractAddress": "address",
          "paymentType": "Web3CardanoV1"
        },
        "SellerWallet": null,
        "SmartContractWallet": null,
        "CurrentTransaction": null,
        "TransactionHistory": [],
        "WithdrawnForSeller": [],
        "WithdrawnForBuyer": []
      }
    ]
  }
}
Empty
Empty
Empty