Convenient Checkout Api (v1)
Download OpenAPI specification:Download
CCGLeads: CCGLeads@ds.uhc.com Terms of Service
Convenient Checkout Gateway API
Get Payment Status by Merchant Transaction Id
Authorizations:
gateway
query Parameters
merchantTransactionId required | string <uuid> |
header Parameters
X-Merchant-Id required | string <uuid> |
Responses
Response samples
- 200
- 202
- 400
- 406
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendor": "string",
- "customer": {
- "id": "string",
- "name": "string",
- "idType": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "description": "string",
- "paymentType": "PRE_AUTH",
- "currencyCode": "string",
- "authorizeCard": true,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "vendorPaymentId": "string",
- "vendorMerchantId": "string",
- "merchantTransactionId": "string",
- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string",
- "chargeDetails": {
- "vendorChargeId": "1e258ff9-48fc-496c-868f-234f4993888c",
- "amount": 0,
- "amountCaptured": 0,
- "amountRefunded": 0,
- "currencyCode": "string",
- "statementDescriptor": "string",
- "createdAt": 0,
- "paymentMethodType": "CARD",
- "card": {
- "last4": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "countryCode": "string",
- "brand": "VISA"
}, - "vendorPaymentMethodId": "string",
- "chargeStatus": "SUCCEEDED",
- "paid": false,
- "chargeError": {
- "vendorErrorCode": "string",
- "vendorErrorMessage": "string"
}
}
}
}
Create Payment
Authorizations:
gateway
header Parameters
X-Merchant-Id required | string <uuid> |
X-Customer-Id | string |
X-Checkout-Id | string <uuid> |
Request Body schema: application/jsonrequired
amount required | integer <int64> |
object (CustomerDetail) | |
object | |
paymentType | string Deprecated Enum: "PRE_AUTH" "SALE" |
authorizeCard | boolean Default: false When authorizeCard is set as true, the credit card will be authorized for the amount supplied. Later we need to call the Capture API to complete the transaction. The authorization is valid only for 7 days. Applicable payment method types = [CARD] |
partialAuthorization | boolean Default: false When true, card issuers will consider the payment for partial authorization. This flag shall be provided in combination with authorizeCard flag. Applicable payment method types = [CARD] |
paymentMethodId | string <uuid> |
paymentDescription | string |
merchantTransactionId | string |
object (Consent) | |
authRequired | boolean |
Responses
Request samples
- Payload
Content type
application/json
{- "amount": 0,
- "customer": {
- "hsid": "string",
- "name": "string",
- "email": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "dateOfBirth": "2000-01-30",
- "phoneNumber": {
- "number": "4567",
- "coutryCode": "1"
}, - "ssnLastFour": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "paymentType": "PRE_AUTH",
- "authorizeCard": false,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "paymentDescription": "string",
- "merchantTransactionId": "string",
- "consent": {
- "merchantConsentId": "string",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "WEB",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}, - "tel": {
- "inboundPhoneNumber": {
- "countryCode": "string",
- "number": "string"
}
}
}
}, - "authRequired": true
}
Response samples
- 202
- 400
- 406
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendor": "string",
- "customer": {
- "id": "string",
- "name": "string",
- "idType": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "description": "string",
- "paymentType": "PRE_AUTH",
- "currencyCode": "string",
- "authorizeCard": true,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "vendorPaymentId": "string",
- "vendorMerchantId": "string",
- "merchantTransactionId": "string",
- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string",
- "chargeDetails": {
- "vendorChargeId": "1e258ff9-48fc-496c-868f-234f4993888c",
- "amount": 0,
- "amountCaptured": 0,
- "amountRefunded": 0,
- "currencyCode": "string",
- "statementDescriptor": "string",
- "createdAt": 0,
- "paymentMethodType": "CARD",
- "card": {
- "last4": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "countryCode": "string",
- "brand": "VISA"
}, - "vendorPaymentMethodId": "string",
- "chargeStatus": "SUCCEEDED",
- "paid": false,
- "chargeError": {
- "vendorErrorCode": "string",
- "vendorErrorMessage": "string"
}
}
}
}
Get Payment Status by PaymentId
Authorizations:
gateway
path Parameters
paymentId required | string |
Responses
Response samples
- 200
- 400
- 406
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendor": "string",
- "customer": {
- "id": "string",
- "name": "string",
- "idType": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "description": "string",
- "paymentType": "PRE_AUTH",
- "currencyCode": "string",
- "authorizeCard": true,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "vendorPaymentId": "string",
- "vendorMerchantId": "string",
- "merchantTransactionId": "string",
- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string",
- "chargeDetails": {
- "vendorChargeId": "1e258ff9-48fc-496c-868f-234f4993888c",
- "amount": 0,
- "amountCaptured": 0,
- "amountRefunded": 0,
- "currencyCode": "string",
- "statementDescriptor": "string",
- "createdAt": 0,
- "paymentMethodType": "CARD",
- "card": {
- "last4": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "countryCode": "string",
- "brand": "VISA"
}, - "vendorPaymentMethodId": "string",
- "chargeStatus": "SUCCEEDED",
- "paid": false,
- "chargeError": {
- "vendorErrorCode": "string",
- "vendorErrorMessage": "string"
}
}
}
}
DRAFT - Capture partial or full amount in Auth operations by PaymentId
Authorizations:
gateway
path Parameters
paymentId required | string <uuid> |
header Parameters
X-Merchant-Id required | string <uuid> |
Request Body schema: application/json
amount | integer <int64> |
object |
Responses
Request samples
- Payload
Content type
application/json
{- "amount": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendor": "string",
- "customer": {
- "id": "string",
- "name": "string",
- "idType": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "description": "string",
- "paymentType": "PRE_AUTH",
- "currencyCode": "string",
- "authorizeCard": true,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "vendorPaymentId": "string",
- "vendorMerchantId": "string",
- "merchantTransactionId": "string",
- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string",
- "chargeDetails": {
- "vendorChargeId": "1e258ff9-48fc-496c-868f-234f4993888c",
- "amount": 0,
- "amountCaptured": 0,
- "amountRefunded": 0,
- "currencyCode": "string",
- "statementDescriptor": "string",
- "createdAt": 0,
- "paymentMethodType": "CARD",
- "card": {
- "last4": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "countryCode": "string",
- "brand": "VISA"
}, - "vendorPaymentMethodId": "string",
- "chargeStatus": "SUCCEEDED",
- "paid": false,
- "chargeError": {
- "vendorErrorCode": "string",
- "vendorErrorMessage": "string"
}
}
}
}
DRAFT - Cancel Payment by PaymentId
Authorizations:
gateway
path Parameters
paymentId required | string <uuid> |
header Parameters
X-Merchant-Id required | string <uuid> |
Request Body schema: application/json
paymentCancellationReason required | string Enum: "DUPLICATE" "FRAUDULENT" "REQUESTED_BY_CUSTOMER" "ABANDONED" |
paymentCancellationMessage | string |
Responses
Request samples
- Payload
Content type
application/json
{- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string"
}
Response samples
- 200
- 400
- 404
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "amount": 0,
- "authorizedAmount": 0,
- "capturedAmount": 0,
- "status": "INITIATED",
- "vendor": "string",
- "customer": {
- "id": "string",
- "name": "string",
- "idType": "string"
}, - "metaData": {
- "property1": "string",
- "property2": "string"
}, - "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "description": "string",
- "paymentType": "PRE_AUTH",
- "currencyCode": "string",
- "authorizeCard": true,
- "partialAuthorization": false,
- "paymentMethodId": "b6df8625-cd25-4123-b345-638aa7b5d011",
- "vendorPaymentId": "string",
- "vendorMerchantId": "string",
- "merchantTransactionId": "string",
- "paymentCancellationReason": "DUPLICATE",
- "paymentCancellationMessage": "string",
- "chargeDetails": {
- "vendorChargeId": "1e258ff9-48fc-496c-868f-234f4993888c",
- "amount": 0,
- "amountCaptured": 0,
- "amountRefunded": 0,
- "currencyCode": "string",
- "statementDescriptor": "string",
- "createdAt": 0,
- "paymentMethodType": "CARD",
- "card": {
- "last4": "string",
- "expiryMonth": 0,
- "expiryYear": 0,
- "countryCode": "string",
- "brand": "VISA"
}, - "vendorPaymentMethodId": "string",
- "chargeStatus": "SUCCEEDED",
- "paid": false,
- "chargeError": {
- "vendorErrorCode": "string",
- "vendorErrorMessage": "string"
}
}
}
}
Create session for initializing the convenient checkout widget
Authorizations:
gateway
header Parameters
X-Merchant-Id required | string <uuid> |
Request Body schema: application/jsonrequired
object (PaymentDetail) | |
object (CustomerDetail) | |
object (Consent) |
Responses
Request samples
- Payload
Content type
application/json
{- "payment": {
- "amount": 0,
- "metaData": {
- "property1": "string",
- "property2": "string"
}, - "paymentType": "SALE",
- "authorizeCard": false,
- "partialAuthorization": false,
- "merchantTransactionId": "string",
- "statementDescriptorSuffix": "Chan FAIR",
- "paymentDescription": "string"
}, - "customer": {
- "hsid": "string",
- "name": "string",
- "email": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "dateOfBirth": "2000-01-30",
- "phoneNumber": {
- "number": "4567",
- "coutryCode": "1"
}, - "ssnLastFour": "string"
}, - "consent": {
- "merchantConsentId": "string",
- "merchantConsentText": "string",
- "collectionTimestamp": "string",
- "collectionDetails": {
- "type": "WEB",
- "web": {
- "ipAddress": "string",
- "userAgent": "string"
}, - "tel": {
- "inboundPhoneNumber": {
- "countryCode": "string",
- "number": "string"
}
}
}
}
}
Response samples
- 200
- 500
Content type
application/json
{- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459"
}
DRAFT - Create Checkout Session
Authorizations:
gateway
header Parameters
X-Merchant-Id required | string <uuid> |
X-Customer-Id | string |
Request Body schema: application/jsonrequired
amount | integer <int64> |
object | |
paymentType required | string Enum: "PRE_AUTH" "SALE" "REFUND" "REVERSAL" |
merchantTransactionId | string |
statementDescriptorSuffix | string <= 10 characters ^(?=.*[a-zA-Z])[a-zA-Z0-9 \-.]{0,10}$|^$ Suffix to be added to the statement descriptor |
paymentDescription | string <= 100 characters Payment description |
Responses
Request samples
- Payload
Content type
application/json
{- "amount": 0,
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "paymentType": "PRE_AUTH",
- "merchantTransactionId": "string",
- "statementDescriptorSuffix": "Chan FAIR",
- "paymentDescription": "string"
}
Response samples
- 200
- 500
Content type
application/json
{- "url": "string",
- "data": { }
}
DRAFT - Find payment-methods for customer
Authorizations:
gateway
header Parameters
X-Merchant-Id required | string <uuid> |
Request Body schema: application/jsonrequired
hsid | string |
name | string |
email required | string |
object | |
dateOfBirth | string <date> |
object | |
ssnLastFour | string |
Responses
Request samples
- Payload
Content type
application/json
{- "hsid": "string",
- "name": "string",
- "email": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "dateOfBirth": "2000-01-30",
- "phoneNumber": {
- "number": "4567",
- "coutryCode": "1"
}, - "ssnLastFour": "string"
}
Response samples
- 200
- 400
- 500
Content type
application/json
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "card": {
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0,
- "vendorPaymentMethodFingerprint": "string"
}, - "status": "INITIATED",
- "vendor": "STRIPE",
- "default": true,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentMethodType": "CARD",
- "vendorPaymentMethodId": "string"
}
]
Response samples
- 200
- 400
- 500
Content type
application/json
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "card": {
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0,
- "vendorPaymentMethodFingerprint": "string"
}, - "status": "INITIATED",
- "vendor": "STRIPE",
- "default": true,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentMethodType": "CARD",
- "vendorPaymentMethodId": "string"
}
]
getPaymentMethod
Authorizations:
gateway
path Parameters
id required | string <uuid> |
payment-method-id required | string <uuid> |
Responses
Response samples
- 200
- 400
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "card": {
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0,
- "vendorPaymentMethodFingerprint": "string"
}, - "status": "INITIATED",
- "vendor": "STRIPE",
- "default": true,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentMethodType": "CARD",
- "vendorPaymentMethodId": "string"
}
}
updatePaymentMethod
Authorizations:
gateway
path Parameters
id required | string <uuid> |
payment-method-id required | string <uuid> |
Request Body schema: application/jsonrequired
default | boolean |
isDefault | boolean |
expiryYear | integer <int32> |
nameOnCard | string |
expiryMonth | integer <int32> |
Responses
Request samples
- Payload
Content type
application/json
{- "default": true,
- "isDefault": true,
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0
}
Response samples
- 202
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "card": {
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0,
- "vendorPaymentMethodFingerprint": "string"
}, - "status": "INITIATED",
- "vendor": "STRIPE",
- "default": true,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentMethodType": "CARD",
- "vendorPaymentMethodId": "string"
}
}
deletePaymentMethod
Authorizations:
gateway
path Parameters
id required | string <uuid> |
payment-method-id required | string <uuid> |
Responses
Response samples
- 202
- 500
Content type
application/json
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "card": {
- "last4": "string",
- "status": "ACTIVE",
- "cardBrand": "VISA",
- "expiryYear": 0,
- "nameOnCard": "string",
- "expiryMonth": 0,
- "vendorPaymentMethodFingerprint": "string"
}, - "status": "INITIATED",
- "vendor": "STRIPE",
- "default": true,
- "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
- "paymentMethodType": "CARD",
- "vendorPaymentMethodId": "string"
}
createSetupPaymentMethod
Authorizations:
gateway
path Parameters
id required | string <uuid> |
Request Body schema: application/jsonrequired
paymentMethodType | string Enum: "CARD" "BANK_ACCOUNT" |
Responses
Request samples
- Payload
Content type
application/json
{- "paymentMethodType": "CARD"
}
Response samples
- 202
- 400
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "INITIATED",
- "paymentMethodType": "CARD",
- "platformVendorMerchantId": "string"
}
}
getSetupPaymentMethodById
Authorizations:
gateway
path Parameters
id required | string <uuid> |
setup-payment-method-id required | string <uuid> |
Responses
Response samples
- 200
- 400
- 500
Content type
application/json
{- "url": "string",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "INITIATED",
- "paymentMethodType": "CARD",
- "platformVendorMerchantId": "string"
}
}