PayPal · Schema

CreditNoteCreateRequest

PayPalBillingCommerceDisputesInvoicesOrderPaymentsPayoutsSubscriptionTokensWebhookAgentic CommercePayment Processing

Properties

Name Type Description
invoice_id string The invoice unique identifier.
reason object
description string The description of the credit note.
credit_amount object The total amount to be credited on the customer balance.
refund_amount object The total amount to be refunded to the customer.
items array The list of credit note's items.
View JSON Schema on GitHub

JSON Schema

paypal-credit-note-create-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-credit-note-create-request-schema.json",
  "title": "CreditNoteCreateRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-credit-notes-api-openapi.yml#/components/schemas/CreditNoteCreateRequest",
  "type": "object",
  "required": [
    "invoice_id",
    "items"
  ],
  "properties": {
    "invoice_id": {
      "type": "string",
      "format": "uuid",
      "description": "The invoice unique identifier."
    },
    "reason": {
      "$ref": "#/$defs/CreditNoteReason"
    },
    "description": {
      "type": "string",
      "description": "The description of the credit note."
    },
    "credit_amount": {
      "description": "The total amount to be credited on the customer balance.",
      "anyOf": [
        {
          "$ref": "#/$defs/AmountNoCurrency"
        },
        {
          "type": "null"
        }
      ]
    },
    "refund_amount": {
      "description": "The total amount to be refunded to the customer.",
      "anyOf": [
        {
          "$ref": "#/$defs/AmountNoCurrency"
        },
        {
          "type": "null"
        }
      ]
    },
    "items": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "fee_id",
          "amount"
        ],
        "properties": {
          "fee_id": {
            "type": "string",
            "format": "uuid",
            "description": "The fee unique identifier."
          },
          "amount": {
            "$ref": "#/$defs/AmountNoCurrency",
            "description": "The amount of the credit note item."
          }
        }
      },
      "description": "The list of credit note's items."
    }
  },
  "$defs": {
    "AmountNoCurrency": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "number",
          "format": "decimal",
          "description": "The amount value in the corresponding currency unit (e.g., two decimals for USD, no decimals for JPY).",
          "minimum": 0,
          "nullable": false,
          "default": 0
        }
      }
    },
    "CreditNoteReason": {
      "type": "string",
      "description": "The reason for credit note creation",
      "enum": [
        "DUPLICATED_CHARGE",
        "PRODUCT_UNSATISFACTORY",
        "ORDER_CHANGE",
        "ORDER_CANCELLATION",
        "FRAUDULENT_CHARGE",
        "OTHER"
      ],
      "x-enum-varnames": [
        "DUPLICATED_CHARGE",
        "PRODUCT_UNSATISFACTORY",
        "ORDER_CHANGE",
        "ORDER_CANCELLATION",
        "FRAUDULENT_CHARGE",
        "OTHER"
      ],
      "x-enum-descriptions": [
        "Credit note issued due to duplicate charge on customer account",
        "Credit note issued because the product or service was unsatisfactory",
        "Credit note issued due to changes made to the original order",
        "Credit note issued because the order was cancelled",
        "Credit note issued due to fraudulent or unauthorized charge",
        "Credit note issued for other reasons not covered by standard categories"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/paypal-credit-note-create-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.