Shift4 Payments · Schema
Shift4 Charge
A Shift4 charge resource. Source: shift4-java SDK Charge response model and dev.shift4.com/docs/api.
PaymentsFintechCommerceCheckout
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| clientObjectId | string | |
| created | integer | Unix timestamp (seconds). |
| amount | integer | Amount in smallest currency unit. |
| amountRefunded | integer | |
| currency | string | ISO 4217 currency code. |
| description | string | |
| status | string | |
| type | string | |
| captured | boolean | |
| refunded | boolean | |
| disputed | boolean | |
| customerId | string | |
| subscriptionId | string | |
| merchantAccountId | string | |
| metadata | object | |
| failureCode | string | |
| failureIssuerDeclineCode | string | |
| failureMessage | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api-evangelist.github.io/shift4-payments/json-schema/shift4-charge-schema.json",
"title": "Shift4 Charge",
"description": "A Shift4 charge resource. Source: shift4-java SDK Charge response model and dev.shift4.com/docs/api.",
"type": "object",
"properties": {
"id": { "type": "string" },
"clientObjectId": { "type": "string" },
"created": { "type": "integer", "description": "Unix timestamp (seconds)." },
"amount": { "type": "integer", "description": "Amount in smallest currency unit." },
"amountRefunded": { "type": "integer" },
"currency": { "type": "string", "description": "ISO 4217 currency code." },
"description": { "type": "string" },
"status": { "type": "string", "enum": ["SUCCESSFUL", "FAILED", "PENDING"] },
"type": { "type": "string", "enum": ["FIRST_RECURRING", "SUBSEQUENT_RECURRING", "CARDHOLDER_INITIATED", "MERCHANT_INITIATED"] },
"captured": { "type": "boolean" },
"refunded": { "type": "boolean" },
"disputed": { "type": "boolean" },
"customerId": { "type": "string" },
"subscriptionId": { "type": "string" },
"merchantAccountId": { "type": "string" },
"metadata": { "type": "object", "additionalProperties": { "type": "string" } },
"failureCode": { "type": "string" },
"failureIssuerDeclineCode": { "type": "string" },
"failureMessage": { "type": "string" }
},
"required": ["id", "amount", "currency", "status"]
}