Checking access…

Skip to main content

Convenient Checkout API (v2)

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.

πŸ”€ Migrating from V1?

Compare everything that changed between v1 and v2 β€” new endpoints, removed fields, response schema updates, and more.

Upgrade Your Integration β†’

Merchant

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.

Create Session

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. For hosted popup integration and Branded Button SDK result handling, see the Hosted Experience guide.

Applicable Session Modes
  • PAYMENT_WITH_WALLET: Session is created for processing a payment using a stored payment method in the wallet. The session will be used to present the user with their saved payment methods and facilitate the checkout process.
  • PAYMENT_AND_SAVE: Session is created for processing a payment and saving the new payment method to the wallet. The session will guide the user through entering their payment details, processing the payment, and securely storing the new payment method for future use.
  • PAYMENT: Session is created for processing a one-time payment without saving the payment method. The session will allow the user to enter their payment details and complete the transaction without storing the payment method in the wallet.
  • WALLET: Session is created for wallet management operations, such as adding or managing stored payment methods. The session will provide the necessary context for securely handling payment method information and facilitating wallet-related interactions.
  • PAYMENT_METHOD_ENTRY: Session is created for entering new payment method details without processing a payment. The session will allow the user to input their payment information, which can then be saved to the wallet for future transactions.
  • PAYMENT_METHOD_SELECT: Session is created for selecting from existing payment methods in the wallet without processing a payment. The session will present the user with their saved payment methods and allow them to choose one for future transactions.
  • PAYMENT_METHOD_DISPLAY: Session is created for displaying existing payment methods in the wallet without processing a payment. The session will show the user their saved payment methods for informational purposes without allowing selection or entry of new payment details.
Authorizations:
ProductionStaging
header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

X-Source
string <= 50 characters

Specify the Source System Identifier. Learn More

Request Body schema: application/json
required
object or null (SessionPaymentMethod)
Default: null

References a saved payment method from the customer's wallet for wallet-based payment scenarios.

  • Required:
    • PAYMENT_METHOD_DISPLAY mode.
object or null (SessionPaymentRequest)
Default: null

Payment payload for transaction creation.

Processing Rules
  • Applicability:
    • Session flows that create a payment transaction during session processing such as PAYMENT and PAYMENT_WITH_WALLET.
object or null (CustomerRequest)
Default: null

Customer context used for user-scoped session flows.

Processing Rules
  • Applicability:
    • Session modes that require customer context (for example, PAYMENT_WITH_WALLET).
  • For session flows that support both customer and guest contexts, the presence of the customer object indicates a customer-scoped session, while its absence (or null value) indicates a guest session.
object or null (SessionConfig)
Default: null

Session configuration options.

object or null (appearance)
Default: null

Appearance configuration for the checkout session

object or null (AgentRequest)
Default: null

Agent information provided by the caller. Learn More

Responses

Request samples

Content type
application/json
{
  • "paymentMethod": {
    },
  • "payment": {
    },
  • "customer": {
    },
  • "config": {
    },
  • "appearance": {},
  • "agent": null
}

Response samples

Content type
application/json
Example
{}

Get Session

Retrieves merchant-facing session status.

Authorizations:
ProductionStaging
path Parameters
sessionId
required
string <uuid>
Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Unique identifier of the session which needs to be retrieved. Generated when the session is created.

header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "data": {
    }
}

Get Payment by Merchant Transaction Id

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.

Authorizations:
ProductionStaging
query Parameters
merchantTransactionId
required
string <= 50 characters

Unique identifier that can be used to track this transaction.

This identifier will make sure to prevent duplicate transactions.

header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

Get Payment by PaymentId

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.

Authorizations:
ProductionStaging
path Parameters
paymentId
required
string <uuid>
header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

Cancel payment by PaymentId

Authorizations:
ProductionStaging
path Parameters
paymentId
required
string <uuid>

Id of the payment needs to be cancelled.

header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

X-Source
string <= 50 characters

Specify the Source System Identifier. Learn More

Request Body schema: application/json
paymentCancellationReason
required
string (PaymentCancellationReason)
Enum: "DUPLICATE" "FRAUDULENT" "REQUESTED_BY_CUSTOMER" "ABANDONED"

Payment cancellation reason.

Processing Rules
  • Required: Yes, if the payment is being cancelled.
  • Value must be one of the following:
    • DUPLICATE: Cancellation due to duplicate payment
    • FRAUDULENT: Cancellation due to suspected fraud
    • REQUESTED_BY_CUSTOMER: Cancellation requested by customer
    • ABANDONED: Cancellation due to abandoned payment (e.g. customer did not complete 3DS authentication)
paymentCancellationMessage
string or null
Default: null

Additional context for the cancellation.

Responses

Request samples

Content type
application/json
{
  • "paymentCancellationReason": "DUPLICATE",
  • "paymentCancellationMessage": "Customer requested cancellation"
}

Response samples

Content type
application/json
{
  • "data": {
    }
}

Capture payment by PaymentId

Capture an authorized payment by its ID.

This endpoint captures card payments that are in AUTHORIZED state. It supports full capture (omit amount) or partial capture (specify amount).

Authorizations:
ProductionStaging
path Parameters
paymentId
required
string <uuid>

Platform-generated unique payment identifier of the payment to capture.

header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

X-Source
string <= 50 characters

Specify the Source System Identifier. Learn More

Request Body schema: application/json
Array of objects

Array of payment allocation objects for distributed payment capture.

object or null (Metadata) <= 20 properties
Default: null

Additional metadata to merge with existing payment metadata during capture.

Processing Rules
  • Constraints:
    • Combined count (existing + new metadata) must not exceed 20 entries
    • Key length: 1-40 characters
    • Value length: 1-100 characters

Responses

Request samples

Content type
application/json
{
  • "paymentAllocations": [
    ],
  • "metadata": null
}

Response samples

Content type
application/json
{
  • "data": {
    }
}

Create Refund

Submit a refund request for a payment.

Supported refund types:

  • Linked refunds: Issued against a specific payment, allowing for full or partial refund amounts. Applicable for payments completed by authenticated and guest users.
  • Unlinked refunds: Processed directly to a stored payment method in the wallet against an existing user without referencing a particular payment.
Authorizations:
ProductionStaging
header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

X-Source
string <= 50 characters

Specify the Source System Identifier. Learn More

Request Body schema: application/json
required
paymentId
string or null <uuid>
Default: null

Original payment ID to refund against.

Processing Rules
  • Required: Yes, for linked refund
  • Payment must exist and have status COMPLETED.
  • Provide either paymentId or refundAllocations[0].paymentMethodId.
    • The request must not include both fields.
    • Exactly one of the two fields is required.
reason
string or null
Default: null
Enum: "REQUESTED_BY_CUSTOMER" "DUPLICATE" "FRAUDULENT"

Reason for processing the refund.

Processing Rules
  • When provided, the value must be one of the allowed values below:
    • REQUESTED_BY_CUSTOMER: Customer requested the refund
    • DUPLICATE: Customer was charged multiple times for the same product/service
    • FRAUDULENT: Payment was found to be fraudulent
merchantTransactionId
required
string <= 50 characters

Unique identifier for one refund request. Every new refund request requires a new value. Reusing a value returns 422; this field is not an idempotency or safe-replay key. Learn more

  • Must be unique per merchant across all refund requests
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
  • Constraints:
    • Key length: 1-40 characters
    • Value length: 1-100 characters
  • Non-PII recommendation: Avoid storing sensitive personal information (SSN, DOB, full card numbers).
Array of Linked Refund Allocation (object) or Unlinked Refund Allocation (object) or (RefundAllocationsRequest)
Default: null

Specifies how the refund amount should be distributed across one or more payment methods.

Processing Rules
  • Required: Yes, for partial linked and un-linked refunds.
  • Constraints:
    • Max items: 2 for linked refunds
    • Max items: 1 for un-linked refunds.
  • When not provided, linked refunds will be processed as full refunds.
object or null (AgentRequest)
Default: null

Agent information provided by the caller. Learn More

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
  • Required: Yes, for un-linked refunds.
  • Customer Identification:
    • At least one customer identifier must be provided for customer lookup:
    • enterpriseIdentifier
    • hsid
    • metadata
  • Lookup Priority: When multiple identifiers are provided, below is the lookup priority order:
    • enterpriseIdentifier (highest priority)
    • hsid
    • metadata (lowest priority)
  • Fallback Behavior:
    • If enterpriseIdentifier lookup fails β†’ falls back to hsid
    • If hsid lookup fails β†’ falls back to metadata

Responses

Request samples

Content type
application/json
{
  • "paymentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  • "reason": "REQUESTED_BY_CUSTOMER",
  • "merchantTransactionId": "564b6ee6",
  • "metadata": {
    },
  • "refundAllocations": null,
  • "agent": {
    },
  • "customer": {
    }
}

Response samples

Content type
application/json
{
  • "url": "string",
  • "data": {
    }
}

Get Refund by RefundId

Authorizations:
ProductionStaging
path Parameters
refund-id
required
string <uuid>
header Parameters
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
string
Enum: "dev" "test" "reg" "perf"

Required for non-production routing and omitted in production. Learn More

Only required for Non-Prod Environment

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "data": {
    }
}