MarketSDK · Schema

RefundObject

MarketplaceAPISaaSPaymentsTrust

Properties

Name Type Description
object string
id string
payment string
order string
amount number Minor units.
currency string
reason stringnull
initiated_by string `api` for a refund you asked for; `order_cancelled` and `order_expired` when an order ended without completing; `late_payment` for a payment that arrived after its order lapsed; `stripe` for a refund
status string
failure_reason stringnull
transfer_reversal object Present when the refund came after release.
stripe object
metadata object
created_at string
updated_at string
View JSON Schema on GitHub

JSON Schema

marketsdk-refund-object-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-refund-object-schema.json",
  "title": "RefundObject",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-openapi.json#/components/schemas/RefundObject",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "refund"
      ]
    },
    "id": {
      "type": "string"
    },
    "payment": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "amount": {
      "type": "number",
      "description": "Minor units."
    },
    "currency": {
      "type": "string"
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "requested_by_customer",
        "duplicate",
        "fraudulent",
        null
      ]
    },
    "initiated_by": {
      "type": "string",
      "enum": [
        "api",
        "order_cancelled",
        "order_expired",
        "late_payment",
        "stripe"
      ],
      "description": "`api` for a refund you asked for; `order_cancelled` and `order_expired` when an order ended without completing; `late_payment` for a payment that arrived after its order lapsed; `stripe` for a refund made in the Stripe dashboard, which does not reverse the transfer."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "succeeded",
        "failed",
        "canceled"
      ]
    },
    "failure_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "transfer_reversal": {
      "description": "Present when the refund came after release.",
      "anyOf": [
        {
          "$ref": "#/$defs/RefundReversalObject"
        },
        {
          "type": "null"
        }
      ]
    },
    "stripe": {
      "$ref": "#/$defs/RefundStripeObject"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "payment",
    "order",
    "amount",
    "currency",
    "reason",
    "initiated_by",
    "status",
    "failure_reason",
    "transfer_reversal",
    "stripe",
    "metadata",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "RefundReversalObject": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "Taken back from the seller's transfer. Minor units."
        }
      },
      "required": [
        "amount"
      ]
    },
    "RefundStripeObject": {
      "type": "object",
      "properties": {
        "refund": {
          "type": [
            "string",
            "null"
          ]
        },
        "transfer_reversal": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "refund",
        "transfer_reversal"
      ]
    }
  }
}

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/marketsdk-refund-object"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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