Download OpenAPI specification:Download
Convenient Checkout Gateway API - NonProd
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. The request must include the total amount, merchant transaction ID, and payment splits.
| 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 ] ^[1-9]\d*$ The total transaction amount in cents (USD).Learn More Processing RulesThis value must exactly equal the sum of the amounts specified in |
| merchantTransactionId required | string <= 50 characters Unique identifier that can be used to track this transaction. This identifier will make sure that there wont be any duplicate transaction. Learn More. |
| authorizeCard | boolean Default: false Authorizes the specified amount on the card without capturing funds immediately. Processing RulesAbout: When set to true, the credit card will be authorized for the specified amount, but the funds are not captured until a subsequent Capture API call is made. Applicability:
Only applicable when the The authorization remains valid for 7 days; after this period, the hold may expire and a new authorization may be required. To complete the transaction, the Capture API must be called after authorization. Note: For any payment—single or split—involving ACH, the transaction will always be processed as a SALE, regardless of the value of the authorizeCard parameter. |
| partialAuthorization | boolean Default: false Allows the card issuer to approve a partial authorization if the full amount is not available. Processing RulesAbout: When set to true, the card issuer may approve a payment for less than the requested amount if the full amount cannot be authorized (e.g., insufficient funds). Applicability:
Only applicable when the If enabled, the payment may be partially authorized and the merchant can decide whether to accept or decline the partial amount. |
| description | string <= 100 characters An arbitrary string useful to user to track payments. Learn More |
| statementDescriptorSuffix | string <= 10 characters ^(?=.*[a-zA-Z])[a-zA-Z0-9 \-.]{0,10}$ Statement descriptors explain charges or payments on bank statements. Using clear and accurate statement descriptors can reduce chargebacks and disputes. Learn More. Processing Rules
|
object (IIASPaymentDetails) IIAS (Inventory Information Approval System) Payments refer to transactions made using a healthcare payment card (such as a Flexible Spending Account or Health Savings Account card) at merchants equipped with IIAS. The IIAS system automatically verifies and approves eligible healthcare-related purchases in real-time, ensuring compliance with IRS regulations. Learn More | |
object (metadataRequest) <= 20 properties Key-value pairs containing payment metadata, such as Order ID, Invoice date. Learn More Processing Rules
| |
object (components-schemas-Consent)
| |
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. | |
Array of objects (paymentAllocationsRequest) <= 2 items Array of payment splits for this transaction. Each entry specifies the payment method to use and the amount allocated to that split. Learn More Processing Rules
| |
object (Agent) Information about the agent when a request is submitted on behalf of a customer. Learn More |
{- "amount": 1,
- "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"
}, - "consent": {
- "merchantConsentId": "consent_id_20230501",
- "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"
}
}
}, - "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"
}
}, - "paymentAllocations": [
- {
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "amount": 1
}
], - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}
}{- "url": "string",
- "data": {
- "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"
}
}
}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 that there wont be any duplicate transaction. |
| 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",
- "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": [
- {
- "label": null,
- "value": 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"
}
}
]
}
}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.
| 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 |
{- "url": "string",
- "data": {
- "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": [
- {
- "label": null,
- "value": 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"
}
}
]
}
}| 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 Enum: "DUPLICATE" "FRAUDULENT" "REQUESTED_BY_CUSTOMER" "ABANDONED" Payment cancellation reason. Learn More |
| paymentCancellationMessage | string Additional context for the cancellation. |
{- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "Customer requested cancellation"
}{- "url": "string",
- "data": {
- "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": [
- {
- "label": null,
- "value": 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"
}
}
]
}
}This API enables merchants to process refunds for previously completed payments. Refunds can be issued for either the full payment amount or a partial amount, based on the request. The refunded amount is returned to the original payment method used for the transaction. Learn more
| 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 <uuid>
Processing Rules- Payment requested for refund should be in completed status |
| paymentMethodId | string <uuid> The unique identifier of the payment method to which the credit will be issued. Processing RulesThis is used when issuing a credit to the customer that is not tied to a specific payment. This field is not applicable when a specific |
| merchantTransactionId required | string <= 50 characters Unique identifier that can be used to track this transaction. This identifier will make sure that there wont be any duplicate transaction. Learn More. For refunds, the value of |
| reason required | string Enum: "REQUESTED_BY_CUSTOMER" "DUPLICATE" "FRAUDULENT" Specifies the rationale for issuing a refund |
Array of objects (RefundAllocationsRequest) >= 1 A list specifying the allocation details for the refund. This is used to define how the refund amount should be distributed, particularly for partial refunds. Processing Rules
| |
object (metadataRequest) <= 20 properties Key-value pairs containing payment metadata, such as Order ID, Invoice date. Learn More Processing Rules
| |
object (Agent) Information about the agent when a request is submitted on behalf of a customer. Learn More | |
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. |
{- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "merchantTransactionId": "string",
- "reason": "REQUESTED_BY_CUSTOMER",
- "refundAllocations": [
- {
- "paymentAllocationId": "14a74756-727f-4e75-a93f-f2502da27c86",
- "amount": 1
}
], - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "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"
}
}
}{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "amount": 0,
- "reason": "REQUESTED_BY_CUSTOMER",
- "merchantTransactionId": "e284d244-f2ce-4ee6-9ae3-27869cbd8d0f",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "status": "INITIATED",
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}
}
}| 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",
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "amount": 0,
- "reason": "REQUESTED_BY_CUSTOMER",
- "merchantTransactionId": "e284d244-f2ce-4ee6-9ae3-27869cbd8d0f",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "status": "INITIATED",
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}, - "refundAllocations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "paymentAllocationId": "14a74756-727f-4e75-a93f-f2502da27c86",
- "amount": 0,
- "status": "INITIATED"
}
]
}
}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 sessionId |
| 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 sessionId |
| 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 merchants to create a payment transaction. It supports various payment methods and allows for split payments. The request must include the total amount, merchant transaction ID, and payment splits.
Supported Session Modes:
PAYMENTPAYMENT_WITH_WALLET| 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 ] ^[1-9]\d*$ The total transaction amount in cents (USD).Learn More Processing RulesThis value must exactly equal the sum of the amounts specified in |
| merchantTransactionId required | string <= 50 characters Unique identifier that can be used to track this transaction. This identifier will make sure that there wont be any duplicate transaction. Learn More. |
| authorizeCard | boolean Default: false Authorizes the specified amount on the card without capturing funds immediately. Processing RulesAbout: When set to true, the credit card will be authorized for the specified amount, but the funds are not captured until a subsequent Capture API call is made. Applicability:
Only applicable when the The authorization remains valid for 7 days; after this period, the hold may expire and a new authorization may be required. To complete the transaction, the Capture API must be called after authorization. Note: For any payment—single or split—involving ACH, the transaction will always be processed as a SALE, regardless of the value of the authorizeCard parameter. |
| partialAuthorization | boolean Default: false Allows the card issuer to approve a partial authorization if the full amount is not available. Processing RulesAbout: When set to true, the card issuer may approve a payment for less than the requested amount if the full amount cannot be authorized (e.g., insufficient funds). Applicability:
Only applicable when the If enabled, the payment may be partially authorized and the merchant can decide whether to accept or decline the partial amount. |
| description | string <= 100 characters An arbitrary string useful to user to track payments. Learn More |
| statementDescriptorSuffix | string <= 10 characters ^(?=.*[a-zA-Z])[a-zA-Z0-9 \-.]{0,10}$ Statement descriptors explain charges or payments on bank statements. Using clear and accurate statement descriptors can reduce chargebacks and disputes. Learn More. Processing Rules
|
object (IIASPaymentDetails) IIAS (Inventory Information Approval System) Payments refer to transactions made using a healthcare payment card (such as a Flexible Spending Account or Health Savings Account card) at merchants equipped with IIAS. The IIAS system automatically verifies and approves eligible healthcare-related purchases in real-time, ensuring compliance with IRS regulations. Learn More | |
object (metadataRequest) <= 20 properties Key-value pairs containing payment metadata, such as Order ID, Invoice date. Learn More Processing Rules
| |
object (Consent)
| |
Array of objects (paymentAllocationsRequest) <= 2 items Array of payment splits for this transaction. Each entry specifies the payment method to use and the amount allocated to that split. Learn More Processing Rules
| |
| authrequired | boolean Default: false Indicates if additional authentication (such as 3D Secure/3DS) is required for the payment. Learn More Processing RulesAbout:
When set to true, the payment will require a 3DS authentication step. This is typically used for card payments where the card issuer or payment network requires extra verification (e.g., one-time password, biometric authentication) before approving the transactio
Applicability:
Only applicable when the |
object (Agent) Information about the agent when a request is submitted on behalf of a customer. Learn More |
{- "amount": 1,
- "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"
}, - "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"
}
}
}, - "paymentAllocations": [
- {
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "amount": 1
}
], - "authrequired": false,
- "agent": {
- "firstName": "string",
- "lastName": "string",
- "userId": "string",
- "isAccessVerified": true
}
}{- "url": "string",
- "data": {
- "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"
}
}
}This API allows users to retrieve payment details using the payment ID. It returns the status, amounts, payment method, and other relevant information for the specified transaction.
Supported Session Modes:
PAYMENTPAYMENT_WITH_WALLETUse this endpoint to track payment status, reconcile transactions, and manage post-payment operations for a specific payment.
| 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 |
{- "url": "string",
- "data": {
- "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": [
- {
- "label": null,
- "value": 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"
}
}
]
}
}