# PaidEvent

A signed notification that a fixed-price order has reached its paid threshold.

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

## JSON schema

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "const": "order.paid"
    },
    "linkUuid": {
      "$ref": "#/components/schemas/Uuid"
    },
    "externalReference": {
      "type": [
        "string",
        "null"
      ]
    },
    "amountUsd": {
      "$ref": "#/components/schemas/Dollars"
    },
    "countedUsd": {
      "$ref": "#/components/schemas/Dollars"
    },
    "leftUsd": {
      "$ref": "#/components/schemas/Dollars"
    },
    "paid": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "id",
    "type",
    "linkUuid",
    "externalReference",
    "amountUsd",
    "countedUsd",
    "leftUsd",
    "paid"
  ],
  "examples": [
    {
      "id": "paid-11111111-2222-4333-8444-555555555555",
      "type": "order.paid",
      "linkUuid": "11111111-2222-4333-8444-555555555555",
      "externalReference": "order-42",
      "amountUsd": "100.00",
      "countedUsd": "100.00",
      "leftUsd": "0.00",
      "paid": true
    }
  ],
  "description": "A signed notification that a fixed-price order has reached its paid threshold."
}
```
