Swell · Schema

Swell Payment

CommerceHeadless CommerceAPI-FirstB2CB2BSubscriptionsMarketplacesWholesaleStorefrontCheckoutPaymentsCartsOrdersCatalogInternationalization

Properties

Name Type Description
id string
number string
account_id string
order_id string
amount number
amount_refundable number
amount_refunded number
method string
gateway string
status string
transaction_id string
currency string
date_created string
View JSON Schema on GitHub

JSON Schema

swell-payment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swell-io/main/json-schema/swell-payment-schema.json",
  "title": "Swell Payment",
  "type": "object",
  "required": ["account_id", "amount", "method"],
  "properties": {
    "id": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
    "number": { "type": "string" },
    "account_id": { "type": "string" },
    "order_id": { "type": "string" },
    "amount": { "type": "number", "minimum": 0.01 },
    "amount_refundable": { "type": "number" },
    "amount_refunded": { "type": "number" },
    "method": { "type": "string", "enum": ["card", "account", "amazon", "paypal", "manual"] },
    "gateway": { "type": "string" },
    "status": { "type": "string", "enum": ["pending", "error", "success", "authorized"] },
    "transaction_id": { "type": "string" },
    "currency": { "type": "string" },
    "date_created": { "type": "string", "format": "date-time" }
  }
}