Download OpenAPI specification:Download
The Convenient Checkout Gateway (CCG) API provides a unified interface for merchants to manage payment transactions, including session management, payment processing, and refunds. It supports various payment methods and flows, enabling merchants to offer a seamless checkout experience to their customers.
Compare everything that changed between v1 and v2 — new endpoints, removed fields, response schema updates, and more.
Provides a comprehensive set of operations for merchants, enabling them to initiate new payment transactions, capture authorized payments, cancel pending or authorized payments, and process both full and partial refunds. These operations are designed to support the complete payment lifecycle, ensuring flexibility and control over payment management for merchants.
This API enables merchants to create a session for initializing the convenient checkout widget.
The session provides a secure context for payment processing and manages the lifecycle of the checkout process.
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
object (SessionPaymentRequest) | |
object (Customer) The customer object is required for authenticated user flows. Learn More Processing RulesThe customer object must be provided when
For guest payments, including the customer object is optional. | |
object (appearance) Appearance configuration for the checkout session | |
object (SessionConfig) | |
object (Agent) Information about the agent when a request is submitted on behalf of a customer. Learn More | |
object (SessionPaymentMethod) |
{- "payment": {
- "consent": {
- "merchantConsentText": "I authorize [Merchant Name] to electronically debit my account and, if necessary, electronically credit my account to correct erroneous debits.",
- "collectionTimestamp": "2023-11-03T10:15:30.100+01:00",
- "collectionDetails": {
- "type": "WEB",
- "web": {
- "ipAddress": "192.168.1.1",
- "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}
}
}, - "amount": 10,
- "merchantTransactionId": "string",
- "authorizeCard": false,
- "partialAuthorization": false,
- "description": "string",
- "statementDescriptorSuffix": "string",
- "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "customer": {
- "firstName": "string",
- "lastName": "string",
- "email": "user@example.com",
- "ssnLastFour": "string",
- "phoneNumber": {
- "countryCode": "string",
- "number": "string"
}, - "dateOfBirth": "2000-12-30",
- "zip5": "99950",
- "hsid": "da31da38-f997-4079-8cce-c749b4067ecb",
- "enterpriseId": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "appearance": {
- "font": {
- "fontFamily": "string",
- "fontSources": [
- {
- "cssSrc": "string",
- "family": "string",
- "src": "string",
- "style": "string",
- "weight": "string"
}
]
}, - "pallete": {
- "primary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}, - "secondary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}
}, - "visibility": {
- "headerLogo": true
}, - "border": {
- "alertBoxBorderRadius": "string",
- "buttonBorderRadius": "string"
}, - "height": {
- "button": 40
},
}, - "config": {
- "modes": [
- "PAYMENT"
], - "paymentMethodChannel": {
- "card": [
- "TERMINAL"
], - "bankAccount": [
- "TERMINAL"
]
}, - "cardCategory": {
- "type": "MANUFACTURER_CARD",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}, - "privacyPolicyUrl": "string",
- "senderEmailAddress": "string",
- "options": {
- "preferredLanguage": "en",
- "paymentMethodSaveMode": "ALLOW_SAVE"
}, - "merchant": {
- "name": "string"
}
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}{- "url": "string",
- "data": {
- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",
- "hostedUrl": "string"
}
}This API allows merchants to retrieve details about a specific session, including its current state and information.
| sessionId required | string <uuid> |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
{- "data": {
- "paymentMethodResponse": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
]
}
}, - "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "description": "string",
- "merchantTransactionId": "string",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "vendorMerchantId": "string",
- "paymentType": "SALE",
- "authorizeCard": false,
- "partialAuthorization": false,
- "currencyCode": "usd",
- "status": "INITIATED",
- "vendor": "STRIPE",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "statementDescriptorSuffix": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "metadata": {
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "merchantTransactionId": "string",
- "merchantName": "string",
- "ccg_processor": "STRIPE",
- "merchantGroupId": "2d8f7ed8-0338-469e-8ff0-d32bbb828cb1",
- "rollBackType": "CCG_AUTOMATED_REFUND",
- "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521"
}, - "consent": {
- "collectionTimestamp": "2023-11-03T10:15:30.100+01:00",
- "collectionDetails": {
- "type": "WEB"
}, - "merchantConsentId": "string"
}, - "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendorPaymentId": "string",
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": "string",
- "medications": [
- null
]
}
]
}
}, - "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "Payment cancelled as part of rollback",
- "error": {
- "code": "string",
- "message": "string",
- "declineCode": "string",
- "networkDeclineCode": "string",
- "networkAdviceCode": "string"
}, - "metadata": {
- "referenceId": "8502eb05-558d-4480-8511-c1011710b340"
}
}
]
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "status": "INITIATED"
}
}This API enables merchants to create a payment transaction. It supports various payment methods and allows for split payments.
CARDBANK_ACCOUNTCARD + CARD only (maximum 2 allocations)| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
| amount required | integer <int64> [ 1 .. 100000000 ] Total payment amount in cents. Must exactly equal the sum of all |
| merchantTransactionId required | string [ 1 .. 50 ] characters Unique identifier provided by the merchant for the payment. Serves as the idempotency key to prevent duplicate payment processing. Processing Rules
|
| currencyCode | string Default: "USD" Value: "USD" ISO 4217 currency code specifying the currency for the payment amount. USD: United States Dollar (only supported currency) |
| description | string or null <= 100 characters Default: null Text description providing context about the payment for internal tracking, receipts, or administrative purposes. Does not appear on customer's bank statement. |
| statementDescriptorSuffix | string or null <= 10 characters ^(?=.*[A-Za-z])[A-Za-z0-9 .-]{1,10}$ Default: null Suffix appended to the merchant's default statement descriptor on the customer's bank statement. Full descriptor format: [Merchant Descriptor] * [Suffix]. |
object or null (MetadataRequest) <= 20 properties Default: null Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Processing Rules
| |
object or null (PaymentDetailsRequest) Default: null Healthcare-related payment information for FSA/HSA card processing including qualified medical amounts, vision amounts, and prescription details. Processing Rules
| |
| authorizeCard | boolean Default: false Controls whether to use a two-step authorization flow (hold funds) or one-step authorization + capture (charge immediately). Processing Rules
When
When
|
| partialAuthorization | boolean Default: false Controls whether the payment processor can authorize a partial amount when the full requested amount is not available on the card. Particularly important for healthcare cards (FSA/HSA) and split-tender scenarios. Processing Rules
When
When
|
object or null or object or null (ConsentRequest) Default: null Customer consent details required for Processing Rules
| |
required | object (CustomerRequest) Customer details for identification and contact purposes. Includes identifiers (hsid, enterpriseIdentifier), contact information (email, phone), and custom metadata. Processing RulesCustomer Identification:
|
required | Array of objects [ 1 .. 2 ] items Payment allocations specifying how the total payment amount is distributed across one or more payment methods. Enables split-tender scenarios (e.g., FSA card + credit card). Processing Rules
|
{- "amount": 15000,
- "merchantTransactionId": "order-12345",
- "currencyCode": "USD",
- "description": "Payment for order #12345",
- "statementDescriptorSuffix": "ORDER123",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 500,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 250
}
}, - "visionAmount": 100
}
}, - "agent": null,
- "authorizeCard": false,
- "partialAuthorization": false,
- "consent": null,
- "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": null
}, - "paymentAllocations": [
- {
- "amount": 1000,
- "paymentMethodId": "b0b3c48d-4cf6-404a-a554-e14640a51c5b"
}
]
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "status": "INITIATED"
}
}This API allows merchants to retrieve payment details using the merchant transaction ID.
It returns the status, amounts, payment method, and other relevant information for the specified transaction.
Use this endpoint to track payment status, reconcile transactions, and manage post-payment operations.
| merchantTransactionId required | string <= 50 characters Unique identifier that can be used to track this transaction. This identifier will make sure to prevent duplicate transactions. |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "COMPLETED",
- "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}, - "sourceProvider": {
- "name": "CCG"
}
}, - "vendor": {
- "name": "STRIPE",
- "paymentId": "pi_3NabcXYZ123456789",
- "merchantId": "acct_1NabcXYZ123456789"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "status": "CANCEL_INITIALIZED"
}
]
}
}This API allows merchants to retrieve payment details using the payment ID. It returns the status, amounts, payment method, and other relevant information for the specified transaction.
Use this endpoint to track payment status, reconcile transactions, and manage post-payment operations.
| paymentId required | string <uuid> |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "COMPLETED",
- "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}, - "sourceProvider": {
- "name": "CCG"
}
}, - "vendor": {
- "name": "STRIPE",
- "paymentId": "pi_3NabcXYZ123456789",
- "merchantId": "acct_1NabcXYZ123456789"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "status": "CANCEL_INITIALIZED"
}
]
}
}| paymentId required | string <uuid> Id of the payment needs to be cancelled. |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
| paymentCancellationReason required | string (PaymentCancellationReason) Enum: "DUPLICATE" "FRAUDULENT" "REQUESTED_BY_CUSTOMER" "ABANDONED" Payment cancellation reason. Processing Rules
|
| paymentCancellationMessage | string Default: null Additional context for the cancellation. |
{- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "Customer requested cancellation"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "status": "PENDING",
- "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}, - "sourceProvider": {
- "name": "CCG"
}
}, - "vendor": {
- "name": "STRIPE",
- "paymentId": "pi_3NabcXYZ123456789",
- "merchantId": "acct_1NabcXYZ123456789"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "status": "CANCEL_INITIALIZED"
}
]
}
}Capture an authorized payment by its ID.
This endpoint captures card payments that are in AUTHORIZED state.
It supports full capture, partial capture, and capturing specific allocations individually in split-tender payments.
| paymentId required | string <uuid> Platform-generated unique payment identifier of the payment to capture. |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
Array of objects or null (CaptureAllocation) Default: null List of allocations to be captured. Processing Rules
| |
object or null (Metadata) <= 20 properties Default: null Additional metadata to merge with existing payment metadata during capture. Processing Rules
|
{- "paymentAllocations": null,
- "metadata": null
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "status": "PENDING",
- "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}, - "sourceProvider": {
- "name": "CCG"
}
}, - "vendor": {
- "name": "STRIPE",
- "paymentId": "pi_3NabcXYZ123456789",
- "merchantId": "acct_1NabcXYZ123456789"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "status": "CAPTURE_INITIALIZED"
}
]
}
}Submit a refund request for a payment.
Supported refund types:
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
| paymentId | string or null <uuid> Default: null Original payment ID to refund against. Processing Rules
|
| reason | string or null Default: null Enum: "REQUESTED_BY_CUSTOMER" "DUPLICATE" "FRAUDULENT" Reason for processing the refund. Processing Rules
|
| merchantTransactionId required | string <= 50 characters Unique identifier provided by the merchant to prevent duplicate refund submissions. Learn more
|
object or null (MetadataRequest) <= 20 properties Default: null Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Processing Rules
| |
Array of objects or (RefundAllocationsRequest) Default: null Specifies how the refund amount should be distributed across one or more payment methods. Processing Rules
| |
object or null (CustomerRequest) Default: null Customer details for identification and contact purposes. Includes identifiers (hsid, enterpriseIdentifier), contact information (email, phone), and custom metadata. Processing Rules
|
{- "paymentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "reason": "REQUESTED_BY_CUSTOMER",
- "merchantTransactionId": "564b6ee6",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "refundAllocations": null,
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": null
}
}{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "e284d244-f2ce-4ee6-9ae3-27869cbd8d0f",
- "reason": "REQUESTED_BY_CUSTOMER",
- "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "description": "string",
- "merchantTransactionId": "string",
- "paymentDateUtc": "2019-08-24T14:15:22Z"
}, - "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "status": "INITIATED"
}
}| refund-id required | string <uuid> |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "e284d244-f2ce-4ee6-9ae3-27869cbd8d0f",
- "reason": "REQUESTED_BY_CUSTOMER",
- "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "description": "string",
- "merchantTransactionId": "string",
- "paymentDateUtc": "2019-08-24T14:15:22Z"
}, - "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "status": "COMPLETED",
- "refundAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "paymentAllocation": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}
}
}, - "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}
}
}
]
}
}Provides a comprehensive set of operations for widget, enabling them to initiate new payment transactions. These operations are designed to support the complete payment, manage wallet, ensuring flexibility and control over payment management for Convenient Checkout UI.
| sessionId required | string Parent session ID |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
string <email> Customer's email address. Must be in a valid email format (e.g., example@domain.com). | |
object (PhoneNumber) | |
| childSessionMode | string Enum: "TEXT_TO_ADD" "EMAIL_TO_ADD" "TEXT_TO_PAY" "EMAIL_TO_PAY" Specifies the mode of the child checkout session, such as text or email for adding or paying Learn more |
{- "email": "user@example.com",
- "phone": {
- "countryCode": "string",
- "number": "string"
}, - "childSessionMode": "TEXT_TO_ADD"
}{- "url": "string",
- "data": {
- "checkoutSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "checkoutRequest": {
- "paymentType": "PRE_AUTH",
- "authorizeCard": true,
- "partialAuthorization": false,
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "merchantTransactionId": "string",
- "paymentDescription": "string",
- "statementDescriptorSuffix": "string",
- "email": "string",
- "phoneNumber": "string",
- "amount": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "config": {
- "modes": [
- "PAYMENT"
], - "paymentMethod": [
- {
- "type": "CARD",
- "channels": [
- {
- "type": "TERMINAL",
- "order": 0,
- "enabled": true
}
]
}
], - "cardCategory": {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
}
}, - "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "checkoutSessionStatus": "CREATED",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "vendorMerchantId": "string",
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "childSessionId": "8c886e65-64c0-43e1-a5fe-fb08ca7d983b",
- "appearance": {
- "font": {
- "fontFamily": "string",
- "fontSources": [
- {
- "cssSrc": "string",
- "family": "string",
- "src": "string",
- "style": "string",
- "weight": "string"
}
]
}, - "pallete": {
- "primary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}, - "secondary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}
}, - "visibility": {
- "headerLogo": true
}, - "border": {
- "alertBoxBorderRadius": "string",
- "buttonBorderRadius": "string"
}, - "height": {
- "button": 40
},
}, - "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
]
}
}, - "childSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "NOTIFICATION_CREATED",
- "mode": "TEXT_TO_ADD",
- "error": null,
- "createdAt": "string",
- "expiresAt": "string",
- "notification": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "channel": "TEXT",
- "destination": [
- "+11111111111"
]
}
}
}, - "hcpToken": "****"
}
}| sessionId required | string Session ID |
| init | boolean If true, the appearance object will be returned; otherwise, the appearance object is null. |
{- "url": "string",
- "data": {
- "checkoutSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "checkoutRequest": {
- "paymentType": "PRE_AUTH",
- "authorizeCard": true,
- "partialAuthorization": false,
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "merchantTransactionId": "string",
- "paymentDescription": "string",
- "statementDescriptorSuffix": "string",
- "email": "string",
- "phoneNumber": "string",
- "amount": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "config": {
- "modes": [
- "PAYMENT"
], - "paymentMethod": [
- {
- "type": "CARD",
- "channels": [
- {
- "type": "TERMINAL",
- "order": 0,
- "enabled": true
}
]
}
], - "cardCategory": {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
}
}, - "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "checkoutSessionStatus": "CREATED",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "vendorMerchantId": "string",
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "childSessionId": "8c886e65-64c0-43e1-a5fe-fb08ca7d983b",
- "appearance": {
- "font": {
- "fontFamily": "string",
- "fontSources": [
- {
- "cssSrc": "string",
- "family": "string",
- "src": "string",
- "style": "string",
- "weight": "string"
}
]
}, - "pallete": {
- "primary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}, - "secondary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}
}, - "visibility": {
- "headerLogo": true
}, - "border": {
- "alertBoxBorderRadius": "string",
- "buttonBorderRadius": "string"
}, - "height": {
- "button": 40
},
}, - "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
]
}
}, - "childSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "NOTIFICATION_CREATED",
- "mode": "TEXT_TO_ADD",
- "error": null,
- "createdAt": "string",
- "expiresAt": "string",
- "notification": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "channel": "TEXT",
- "destination": [
- "+11111111111"
]
}
}, - "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "description": "string",
- "merchantTransactionId": "string",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "vendorMerchantId": "string",
- "paymentType": "SALE",
- "authorizeCard": false,
- "partialAuthorization": false,
- "currencyCode": "usd",
- "status": "INITIATED",
- "vendor": "STRIPE",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "statementDescriptorSuffix": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "metadata": {
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "merchantTransactionId": "string",
- "merchantName": "string",
- "ccg_processor": "STRIPE",
- "merchantGroupId": "2d8f7ed8-0338-469e-8ff0-d32bbb828cb1",
- "rollBackType": "CCG_AUTOMATED_REFUND",
- "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521"
}, - "consent": {
- "collectionTimestamp": "2023-11-03T10:15:30.100+01:00",
- "collectionDetails": {
- "type": "WEB"
}, - "merchantConsentId": "string"
}, - "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendorPaymentId": "string",
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": null,
- "medications": [ ]
}
]
}
}, - "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "Payment cancelled as part of rollback",
- "error": {
- "code": "string",
- "message": "string",
- "declineCode": "string",
- "networkDeclineCode": "string",
- "networkAdviceCode": "string"
}, - "metadata": {
- "referenceId": "8502eb05-558d-4480-8511-c1011710b340"
}
}
]
}
}, - "hcpToken": "****"
}
}| sessionId required | string Session ID |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
{- "url": "string",
- "data": {
- "checkoutSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "checkoutRequest": {
- "paymentType": "PRE_AUTH",
- "authorizeCard": true,
- "partialAuthorization": false,
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "merchantTransactionId": "string",
- "paymentDescription": "string",
- "statementDescriptorSuffix": "string",
- "email": "string",
- "phoneNumber": "string",
- "amount": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "config": {
- "modes": [
- "PAYMENT"
], - "paymentMethod": [
- {
- "type": "CARD",
- "channels": [
- {
- "type": "TERMINAL",
- "order": 0,
- "enabled": true
}
]
}
], - "cardCategory": {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
}
}, - "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "checkoutSessionStatus": "CREATED",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "vendorMerchantId": "string",
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "childSessionId": "8c886e65-64c0-43e1-a5fe-fb08ca7d983b",
- "appearance": {
- "font": {
- "fontFamily": "string",
- "fontSources": [
- {
- "cssSrc": "string",
- "family": "string",
- "src": "string",
- "style": "string",
- "weight": "string"
}
]
}, - "pallete": {
- "primary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}, - "secondary": {
- "dark": "string",
- "main": "string",
- "light": "string",
- "contrastText": "string"
}
}, - "visibility": {
- "headerLogo": true
}, - "border": {
- "alertBoxBorderRadius": "string",
- "buttonBorderRadius": "string"
}, - "height": {
- "button": 40
},
}, - "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": "string",
- "medications": [
- {
- "label": "string",
- "value": "string"
}
]
}
]
}
}, - "childSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "NOTIFICATION_CREATED",
- "mode": "TEXT_TO_ADD",
- "error": null,
- "createdAt": "string",
- "expiresAt": "string",
- "notification": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "channel": "TEXT",
- "destination": [
- "+11111111111"
]
}
}, - "payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "description": "string",
- "merchantTransactionId": "string",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "vendorMerchantId": "string",
- "paymentType": "SALE",
- "authorizeCard": false,
- "partialAuthorization": false,
- "currencyCode": "usd",
- "status": "INITIATED",
- "vendor": "STRIPE",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "statementDescriptorSuffix": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "metadata": {
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "merchantTransactionId": "string",
- "merchantName": "string",
- "ccg_processor": "STRIPE",
- "merchantGroupId": "2d8f7ed8-0338-469e-8ff0-d32bbb828cb1",
- "rollBackType": "CCG_AUTOMATED_REFUND",
- "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521"
}, - "consent": {
- "collectionTimestamp": "2023-11-03T10:15:30.100+01:00",
- "collectionDetails": {
- "type": "WEB"
}, - "merchantConsentId": "string"
}, - "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendorPaymentId": "string",
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "paymentMethodType": "CARD",
- "nickname": "string",
- "sourceProvider": {
- "description": null,
- "type": null,
- "enum": null,
- "default": null
}, - "paymentMethodDetails": {
- "type": "CARD",
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 0,
- "expiryYear": 0,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [
- {
- "type": null,
- "medications": [ ]
}
]
}
}, - "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "Payment cancelled as part of rollback",
- "error": {
- "code": "string",
- "message": "string",
- "declineCode": "string",
- "networkDeclineCode": "string",
- "networkAdviceCode": "string"
}, - "metadata": {
- "referenceId": "8502eb05-558d-4480-8511-c1011710b340"
}
}
]
}
}, - "hcpToken": "****"
}
}This API enables end users, through the Convenient Checkout UI, to create a payment for the current checkout session. It supports multiple payment methods and wallet-based flows.
CARDBANK_ACCOUNT| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Checkout-Id required | string sessionId |
| X-Customer-Id required | string wallet Customer Id |
| amount required | integer <int64> [ 1 .. 100000000 ] Total payment amount in cents. Must exactly equal the sum of all |
| merchantTransactionId required | string [ 1 .. 50 ] characters Unique identifier provided by the merchant for the payment. Serves as the idempotency key to prevent duplicate payment processing. Processing Rules
|
| currencyCode | string Default: "USD" Value: "USD" ISO 4217 currency code specifying the currency for the payment amount. USD: United States Dollar (only supported currency) |
| description | string or null <= 100 characters Default: null Text description providing context about the payment for internal tracking, receipts, or administrative purposes. Does not appear on customer's bank statement. |
| statementDescriptorSuffix | string or null <= 10 characters ^(?=.*[A-Za-z])[A-Za-z0-9 .-]{1,10}$ Default: null Suffix appended to the merchant's default statement descriptor on the customer's bank statement. Full descriptor format: [Merchant Descriptor] * [Suffix]. |
object or null (MetadataRequest) <= 20 properties Default: null Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Processing Rules
| |
object or null (PaymentDetailsRequest) Default: null Healthcare-related payment information for FSA/HSA card processing including qualified medical amounts, vision amounts, and prescription details. Processing Rules
| |
| authorizeCard | boolean Default: false Controls whether to use a two-step authorization flow (hold funds) or one-step authorization + capture (charge immediately). Processing Rules
When
When
|
| partialAuthorization | boolean Default: false Controls whether the payment processor can authorize a partial amount when the full requested amount is not available on the card. Particularly important for healthcare cards (FSA/HSA) and split-tender scenarios. Processing Rules
When
When
|
| authRequired | boolean Default: false Indicates whether additional customer authentication (for example, SCA / 3DS) is required for the payment. When enabled, the customer may be prompted to complete an authentication challenge during processing. Processing Rules
|
object (ConsentRequest) Default: null Customer consent details required for Processing Rules
| |
object or null (CustomerRequest) Default: null Customer details for identification and contact purposes. Includes identifiers (hsid, enterpriseIdentifier), contact information (email, phone), and custom metadata. Processing RulesCustomer Identification:
| |
required | Array of objects or objects [ 1 .. 2 ] items Payment allocations specifying how the total payment amount is distributed across one or more payment methods. Enables split-tender scenarios (e.g., FSA card + credit card). Processing Rules
|
{- "amount": 15000,
- "merchantTransactionId": "order-12345",
- "currencyCode": "USD",
- "description": "Payment for order #12345",
- "statementDescriptorSuffix": "ORDER123",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 500,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 250
}
}, - "visionAmount": 100
}
}, - "agent": null,
- "authorizeCard": false,
- "partialAuthorization": false,
- "authRequired": true,
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": null
}, - "paymentAllocations": [
- {
- "paymentMethod": {
- "default": false,
- "nickName": "string",
- "savePaymentMethod": false,
- "paymentMethodDetails": {
- "type": "CARD",
- "nameOnCard": "string",
- "last4": "4242",
- "vendorPaymentmethodId": "pm_1J2Y7e2eZvKYlo2C0qL5a2b"
}, - "paymentMethodSourceDetails": {
- "channel": "WEBFORM",
- "uiSourceFragment": "STRIPE"
}, - "sourceProvider": {
- "name": "CCG"
}
}
}
]
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "status": "INITIATED"
}
}This API enables end users, through the Convenient Checkout UI, track payment status, reconcile transactions, and manage post-payment operations for a specific payment.
CARDBANK_ACCOUNT| paymentId required | string <uuid> |
| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Checkout-Id required | string sessionId |
| X-Customer-Id required | string wallet Customer Id |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "COMPLETED",
- "paymentAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "paymentMethod": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "default": true,
- "nickName": "string",
- "paymentMethodDetails": {
- "type": "CARD",
- "last4": "stri",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryMonth": 1,
- "expiryYear": 2000,
- "nameOnCard": "string",
- "zipCode": "99950",
- "cardCategories": [ ]
}, - "sourceProvider": {
- "name": "CCG"
}
}, - "vendor": {
- "name": "STRIPE",
- "paymentId": "pi_3NabcXYZ123456789",
- "merchantId": "acct_1NabcXYZ123456789",
- "paymentSecret": "pi_3NabcXYZ123456789_secret_abc123"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "status": "COMPLETED"
}
]
}
}Provides operations for merchants with PCI scope, enabling them to create and retrieve payment methods in the wallet, and initiate payments. These operations are designed to support merchants in securely handling payment information without exposing sensitive card data, ensuring compliance with PCI requirements.
This API enables merchants to create a payment transaction.
CARDBANK_ACCOUNT| X-Merchant-Id required | string <uuid> Unique identifier for the merchant. This is used to identify the merchant making the request. Learn More |
| X-Upstream-Env required | string Enum: "dev" "stage" "test" Specify the Upstream Environment value. Learn More Only required for Non-Prod Environment |
| X-Source | string <= 50 characters Specify the Source System Identifier. Learn More |
| amount required | integer <int64> [ 1 .. 100000000 ] Total payment amount in cents. Must exactly equal the sum of all |
| merchantTransactionId required | string [ 1 .. 50 ] characters Unique identifier provided by the merchant for the payment. Serves as the idempotency key to prevent duplicate payment processing. Processing Rules
|
| currencyCode | string Default: "USD" Value: "USD" ISO 4217 currency code specifying the currency for the payment amount. USD: United States Dollar (only supported currency) |
| description | string or null <= 100 characters Default: null Text description providing context about the payment for internal tracking, receipts, or administrative purposes. Does not appear on customer's bank statement. |
| statementDescriptorSuffix | string or null <= 10 characters ^(?=.*[A-Za-z])[A-Za-z0-9 .-]{1,10}$ Default: null Suffix appended to the merchant's default statement descriptor on the customer's bank statement. Full descriptor format: [Merchant Descriptor] * [Suffix]. |
object or null (MetadataRequest) <= 20 properties Default: null Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Processing Rules
| |
object or null (PaymentDetailsRequest) Default: null Healthcare-related payment information for FSA/HSA card processing including qualified medical amounts, vision amounts, and prescription details. Processing Rules
| |
| authorizeCard | boolean Default: false Controls whether to use a two-step authorization flow (hold funds) or one-step authorization + capture (charge immediately). Processing Rules
When
When
|
| partialAuthorization | boolean Default: false Controls whether the payment processor can authorize a partial amount when the full requested amount is not available on the card. Particularly important for healthcare cards (FSA/HSA) and split-tender scenarios. Processing Rules
When
When
|
object or null or object or null (ConsentRequest) Default: null Customer consent details required for Processing Rules
| |
required | object (CustomerRequest) Customer details for identification and contact purposes. Includes identifiers (hsid, enterpriseIdentifier), contact information (email, phone), and custom metadata. Processing RulesCustomer Identification:
|
required | Array of objects [ 1 .. 2 ] items |
{- "amount": 15000,
- "merchantTransactionId": "order-12345",
- "currencyCode": "USD",
- "description": "Payment for order #12345",
- "statementDescriptorSuffix": "ORDER123",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 500,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 250
}
}, - "visionAmount": 100
}
}, - "agent": null,
- "authorizeCard": false,
- "partialAuthorization": false,
- "consent": null,
- "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": null
}, - "paymentAllocations": [
- {
- "amount": 1000,
- "paymentMethod": {
- "default": false,
- "nickName": "string",
- "savePaymentMethod": false,
- "paymentMethodDetails": {
- "type": "CARD",
- "nameOnCard": "string",
- "last4": "4242",
- "vendorPaymentmethodId": "pm_1J2Y7e2eZvKYlo2C0qL5a2b"
}
}
}
]
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantTransactionId": "string",
- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "amount": 0,
- "description": "string",
- "authorizeCard": true,
- "authRequired": true,
- "partialAuthorization": true,
- "statementDescriptorSuffix": "string",
- "currencyCode": "USD",
- "agent": {
- "firstName": "John",
- "lastName": "Doe",
- "userId": "ms1234567890",
- "isAccessVerified": true
}, - "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}, - "customer": {
- "firstName": "John",
- "lastName": "Doe",
- "email": "john.doe@example.com",
- "ssnLastFour": "1234",
- "phoneNumber": {
- "countryCode": "1",
- "number": "5551234567"
}, - "dateOfBirth": "1990-05-15",
- "zip5": "12345",
- "enterpriseIdentifier": "123456789",
- "hsid": "b0b3c48d-4cf6-404a-a554-e14640a51c5b",
- "metadata": {
- "orderId": "12345",
- "invoiceDate": "2025-08-22",
- "OrderType": "Gift purchase"
}
}, - "merchant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "string",
- "name": "string"
}, - "paymentDetails": {
- "healthcare": {
- "iias": {
- "qualifiedAmount": 0,
- "qualifiedAmountDetails": {
- "prescriptionAmount": 0
}
}, - "visionAmount": 0
}
}, - "paymentDateUtc": "2024-01-15T14:30:00Z",
- "consent": {
- "merchantConsentId": "consent_id_20230501",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "string",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}
}
}, - "status": "INITIATED"
}
}