Skip to content
Schemas/Objects

Receipt

One transfer received by a link and its settlement state.

Typeobject

Properties

assetstringRequired

CUSD for a cash payment.

one of USDC, USDT, CUSD
txHashstringRequired

The transaction that paid the link's receiving address.

logIndexintegerRequired
grossAtomicstringRequired

An integer string of 6-decimal units: "100000000" is 100.000000.

pattern ^\d+$
feeSharesstring or nullRequired
netSharesstring or nullRequired
feeAtomicstring or nullRequired

The Gateway Fee, once settled.

pattern ^\d+$
netValueAtomicstring or nullRequired

What your wallet was credited, once settled.

pattern ^\d+$
appliedRateBpsinteger or nullRequired

The Gateway Fee rate applied, in basis points.

statestringRequired
one of pending, settled
settlementTxHashstring or nullRequired
createdAtstring or nullRequired
format date-time
methodstringOptional

Only on a cash payment.

one of whish
paidUsdstringOptional

Only on a cash payment: what the payer paid, their cash-in fee included.

cashInFeeUsdstringOptional

Only on a cash payment: the cash-in fee.

JSON schema

Receipt
{
  "type": "object",
  "description": "One payment the link received, settled or not yet.",
  "required": [
    "asset",
    "txHash",
    "logIndex",
    "grossAtomic",
    "feeShares",
    "netShares",
    "feeAtomic",
    "netValueAtomic",
    "appliedRateBps",
    "state",
    "settlementTxHash",
    "createdAt"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "enum": [
        "USDC",
        "USDT",
        "CUSD"
      ],
      "description": "`CUSD` for a cash payment."
    },
    "txHash": {
      "type": "string",
      "description": "The transaction that paid the link's receiving address."
    },
    "logIndex": {
      "type": "integer"
    },
    "grossAtomic": {
      "$ref": "#/components/schemas/Atomic"
    },
    "feeShares": {
      "type": [
        "string",
        "null"
      ]
    },
    "netShares": {
      "type": [
        "string",
        "null"
      ]
    },
    "feeAtomic": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/Atomic"
        },
        {
          "type": "null"
        }
      ],
      "description": "The Gateway Fee, once settled."
    },
    "netValueAtomic": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/Atomic"
        },
        {
          "type": "null"
        }
      ],
      "description": "What your wallet was credited, once settled."
    },
    "appliedRateBps": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The Gateway Fee rate applied, in basis points."
    },
    "state": {
      "type": "string",
      "enum": [
        "pending",
        "settled"
      ]
    },
    "settlementTxHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "method": {
      "type": "string",
      "enum": [
        "whish"
      ],
      "description": "Only on a cash payment."
    },
    "paidUsd": {
      "type": "string",
      "description": "Only on a cash payment: what the payer paid, their cash-in fee included."
    },
    "cashInFeeUsd": {
      "type": "string",
      "description": "Only on a cash payment: the cash-in fee."
    }
  }
}
Next in schemasSettlementPage

We use necessary cookies to run this site. With your permission, we also use analytics and advertising technologies to measure visits and downloads.