Patch · JSON Structure

Patch Io Order Structure

JSON Structure description of a Patch carbon credit / removal order.

Type: object Properties: 9
ClimateCarbon CreditsCarbon RemovalOffsetsAPI-FirstEmbedded ClimateMarketplaceSustainabilityOpenAPISDKs

Patch Io Order Structure is a JSON Structure definition published by Patch, describing 9 properties. It conforms to the https://json-structure.org/draft-00/schema meta-schema.

Properties

id state amount price patch_fee currency line_items issued_to metadata

Meta-schema: https://json-structure.org/draft-00/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft-00/schema",
  "title": "Patch Order Structure",
  "description": "JSON Structure description of a Patch carbon credit / removal order.",
  "type": "object",
  "properties": {
    "id": { "type": "string" },
    "state": { "type": "string", "description": "draft -> placed -> processing -> complete (or cancelled)." },
    "amount": { "type": "integer", "description": "Total mass in grams across line items." },
    "price": { "type": "integer", "description": "Subtotal in minor currency units." },
    "patch_fee": { "type": "integer" },
    "currency": { "type": "string" },
    "line_items": { "type": "array", "description": "Per-vintage project allocations making up the order." },
    "issued_to": { "type": "object", "description": "Beneficiary identification for attribution." },
    "metadata": { "type": "object", "description": "Caller-supplied key/value metadata (search-indexable)." }
  },
  "lifecycle": ["draft", "placed", "processing", "complete", "cancelled"],
  "lineage": {
    "source": "patch-python SDK Order model (auto-generated from Patch's official OpenAPI document)."
  }
}