{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspeed/main/json-schema/lightspeed-store-credit-transaction-params-schema.json",
  "title": "Store Credit Transaction Parameters for Customer",
  "description": "The store credit transaction parameters for a customer transaction.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspeed-store-credits-api-openapi.yml#/components/schemas/StoreCreditTransactionParams",
  "properties": {
    "amount": {
      "description": "The amount of the transaction.",
      "format": "double",
      "type": "number"
    },
    "client_id": {
      "description": "The client id is a unique transaction identifier. The client must provide this and is normally the transaction id from the client system.\n",
      "type": "string"
    },
    "notes": {
      "description": "The notes associated with the transaction.",
      "type": "string"
    },
    "type": {
      "description": "The type of the transaction",
      "enum": [
        "ISSUE",
        "REDEMPTION",
        "REVERSE"
      ],
      "type": "string"
    },
    "user_id": {
      "description": "The user id of the person who handled the transaction.",
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "amount",
    "client_id",
    "type"
  ],
  "type": "object"
}