DataContractGate

Cloud Free needs no credit card

Sign inSign up
← Catalog
Payments ingest

Stripe β€” data contract (raw Stripe Charge export at ingest; not affiliated with Stripe)

Raw Stripe Charge object at ingest. Compatible with Stripe's API Charge object; not affiliated with Stripe. Root of the Stripe charges contract family.

This contract is one boundary in the Stripe charges pipeline chain. Validate the payload at that boundary, then follow the neighbors.

Download YAML

Also available: ODCS v3.1.0 YAML. β€œUse this contract” forks it into your org, then opens the validation playground so you can upload the client file.

Contract family

Stripe charges pipeline

Stripe charges as they move from raw ingest, through a cleaned stage and a daily revenue mart, to a partner payout feed. Not affiliated with Stripe. Sample ids are fake.

  1. 1stripe_charges_rawThis contract
    Ingest
  2. Derived from stripe_charges_raw

    Between stages
  3. Derived from stripe_charges_staged

    Between stages
  4. Derived from revenue_daily_mart

    Egress

Fields

NameTypeRequiredRuleDescription
idstringrequiredpattern /^(ch|py)_[A-Za-z0-9]+$/Charge id. Card charges use ch_; some bank-debit / Connect objects use py_.
objectstringrequiredone of: chargeβ€”
amountintegerrequiredβ‰₯ 0Amount intended to be collected, in the smallest currency unit (e.g. cents).
amount_capturedintegeroptionalβ‰₯ 0β€”
amount_refundedintegeroptionalβ‰₯ 0β€”
currencystringrequiredpattern /^[a-z]{3}$/Three-letter ISO currency code, lowercase.
customerstringoptionalpattern /^cus_[A-Za-z0-9]+$/β€”
descriptionstringoptionalβ€”β€”
paidbooleanrequiredβ€”β€”
refundedbooleanrequiredβ€”β€”
capturedbooleanoptionalβ€”β€”
statusstringrequiredone of: succeeded, pending, failedThe status of the payment.
createdintegerrequiredβ‰₯ 0Unix epoch seconds when the object was created.
livemodebooleanoptionalβ€”β€”
receipt_emailstringoptionalemail formatβ€”
payment_intentstringoptionalpattern /^pi_[A-Za-z0-9]+$/β€”

Sample rows

One synthetic row we wrote. It validates against this contract with zero violations. No real customer data.

[
  {
    "amount": 4299,
    "amount_captured": 4299,
    "amount_refunded": 0,
    "captured": true,
    "created": 1735689600,
    "currency": "usd",
    "customer": "cus_DemoAcme0001",
    "description": "Demo invoice INV-DEMO-1001",
    "id": "ch_3Qdemo0001AaBbCcDd",
    "livemode": false,
    "object": "charge",
    "paid": true,
    "payment_intent": "pi_3Qdemo0001AaBbCc",
    "receipt_email": "billing-demo@example.com",
    "refunded": false,
    "status": "succeeded"
  }
]

Provenance

Checked
2026-11-09
Version
v1.0
Author
DataContractGate
License
MIT

Spotted a mismatch with the vendor’s current schema? Report an issue.

Stripe, Shopify, QuickBooks, Xero, HubSpot, Salesforce, Google Analytics and Square are trademarks of their respective owners. DataContractGate is not affiliated with or endorsed by them. These contracts describe data shaped like these vendors’ documented schemas; they are not official and are not certified by any vendor.