# Link

The price, remaining balance, and receipts for a payment link.

[Definition in OpenAPI](https://api.cadmospay.com/static/api/gateway-machine-api.json#/components/schemas/Link)

## JSON schema

```json
{
  "type": "object",
  "required": [
    "uuid",
    "kind",
    "description",
    "externalReference",
    "status",
    "receiverAddress",
    "checkoutUrl",
    "createdAt",
    "receipts",
    "localMethods",
    "paymentReference",
    "amountUsd",
    "countedUsd",
    "leftUsd",
    "paid"
  ],
  "properties": {
    "uuid": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "order",
        "remittance"
      ],
      "description": "Links you create here are `order`. A `remittance` link is one client's reusable link, made in the app."
    },
    "description": {
      "type": "string"
    },
    "externalReference": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "void"
      ]
    },
    "receiverAddress": {
      "$ref": "#/components/schemas/Address"
    },
    "checkoutUrl": {
      "type": "string",
      "format": "uri"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "receipts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Receipt"
      }
    },
    "localMethods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "paymentReference": {
      "type": [
        "string",
        "null"
      ]
    },
    "amountUsd": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/Dollars"
        },
        {
          "type": "null"
        }
      ]
    },
    "countedUsd": {
      "$ref": "#/components/schemas/Dollars"
    },
    "leftUsd": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/Dollars"
        },
        {
          "type": "null"
        }
      ]
    },
    "paid": {
      "type": "boolean"
    }
  }
}
```

## Example

```json
{
  "uuid": "0b6f5a8e-1c2d-4e3f-9a8b-7c6d5e4f3a2b",
  "status": "active",
  "checkoutUrl": "https://cadmospay.com/checkout/example_checkout_token_for_documentation_00",
  "receiverAddress": "0x0000000000000000000000000000000000000042",
  "externalReference": "order-42",
  "localMethods": [],
  "paymentReference": null,
  "amountUsd": "100.00",
  "countedUsd": "0.00",
  "leftUsd": "100.00",
  "paid": false,
  "kind": "order",
  "description": "Order #42",
  "createdAt": "2026-11-17T09:00:00.000Z",
  "receipts": []
}
```
