{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-credit-payment-schema.json",
  "title": "CreditPayment",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-credit-payments-api-openapi.yml#/components/schemas/CreditPayment",
  "type": "object",
  "properties": {
    "account": {
      "type": "string",
      "description": "The URL of the account for the credit payment."
    },
    "uuid": {
      "type": "string",
      "description": "The unique identifier of the credit payment."
    },
    "action": {
      "type": "string",
      "description": "The action the credit payment was created for. Is also a query param on the main list. Allowed Values: [payment, gift_card, refund, reduction, write_off]."
    },
    "currency": {
      "type": "string",
      "description": "Currency, 3-letter ISO code."
    },
    "amount_in_cents": {
      "type": "integer",
      "description": "Amount of the credit payment."
    },
    "original_invoice": {
      "type": "string",
      "description": "The URL of the original invoice for the credit payment."
    },
    "applied_to_invoice": {
      "type": "string",
      "description": "The URL of the invoice on which this payment was applied."
    },
    "original_credit_payment": {
      "type": "string",
      "description": "The reference of the original credit payment being refunded. Only shown if action = 'refund'."
    },
    "refund_transaction": {
      "type": "string",
      "description": "The reference of the refund transaction that matches the refund credit payment. Only shown if action = 'refund'."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the credit payment was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the credit payment was created or updated. Will only update if voided."
    },
    "voided_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the credit payment was voided. Will only be voided if the credit payment was on a charge invoice that was then failed."
    }
  }
}