Skip to main content
Version: v2

Session API Error Codes

This page documents all error codes for the Sessions API (v2). These errors occur when creating and managing checkout sessions. Each error includes the code name, HTTP status, description, recommended developer action, and notes where applicable.

Error Summary

Authorization Error

Resource Not Found Error

Error TitleHTTP StatusError Message
NOT_FOUND404Session Id not found
NOT_FOUND404Parent Session id is invalid

Business Rule Violation Error

Error TitleHTTP StatusError Message
UNPROCESSABLE_ENTITY422Card WS2 check has failed
UNPROCESSABLE_ENTITY422consent is required
UNPROCESSABLE_ENTITY422payment is required
UNPROCESSABLE_ENTITY422Payment method type is not configured
UNPROCESSABLE_ENTITY422No payment method channels available for PAYMENT_METHOD_ENTRY or PAYMENT modes
UNPROCESSABLE_ENTITY422Partial authorization not allowed for authorizeCard = false

Config Object

Error TitleHTTP StatusError Message
UNPROCESSABLE_ENTITY422Invalid Request. Request parameter saveDisabled or paymentMethodSaveMode not supported in Mode: [modes]
UNPROCESSABLE_ENTITY422Payment Method ID is required for mode - PAYMENT_METHOD_DISPLAY
UNPROCESSABLE_ENTITY422Invalid request: 'saveDisabled' and 'paymentMethodSaveMode' cannot be used together. Use only 'paymentMethodSaveMode'
UNPROCESSABLE_ENTITY422Payment method type is not configured
UNPROCESSABLE_ENTITY422You have no capture methods available
UNPROCESSABLE_ENTITY422Session Mode not applicable for guest checkout
UNPROCESSABLE_ENTITY422Invalid card category type config.cardCategories.type
UNPROCESSABLE_ENTITY422Medication list contains duplicate items
UNPROCESSABLE_ENTITY422UI version '%s' is not supported for backend API version '%s'. Supported versions: %s

Customer Object

Error TitleHTTP StatusError Message
UNPROCESSABLE_ENTITY422agent is required when Collection Type is TEL or PPD

Payment Details Object

Schema validation error

Config Object

Error TitleHTTP StatusError Message
INVALID_REQUEST400config.merchant.name contains invalid characters
INVALID_REQUEST400config.merchant.name must not be blank
INVALID_REQUEST400config.merchant.name must be less than or equal to 80 characters
INVALID_REQUEST400Invalid mode
INVALID_REQUEST400Invalid PaymentMethodChannel
INVALID_REQUEST400config.privacyPolicyUrl must be a valid URL
INVALID_REQUEST400Maximum of 100 medications allowed in cardCategories[].medication
INVALID_REQUEST400Medications cannot be empty in cardCategories[].medications
INVALID_REQUEST400Category label cannot exceed 100 characters
INVALID_REQUEST400Medication value cannot be empty and maximum allowed length is 100
INVALID_REQUEST400Medication label cannot be empty and maximum allowed length is 100
INVALID_REQUEST400config.uiVersion must be in valid format

Customer Object

Error TitleHTTP StatusError Message
INVALID_REQUEST400customer.firstName cannot exceed 50 characters
INVALID_REQUEST400customer.lastName cannot exceed 50 characters
INVALID_REQUEST400customer.email must be a valid email address
INVALID_REQUEST400customer.email cannot exceed 120 characters
INVALID_REQUEST400customer.ssn must contain only digits and cannot exceed 4 characters
INVALID_REQUEST400customer.dateOfBirth must be a valid date in format YYYY-MM-DD
INVALID_REQUEST400customer.zip5 must be exactly 5 digits
INVALID_REQUEST400customer.phoneNumber.countryCode must contain only digits and must be 1 to 3 characters long
INVALID_REQUEST400customer.phoneNumber.number must contain only digits and must be 4-11 characters long
INVALID_REQUEST400customer.enterpriseIdentifier must contain only digits
INVALID_REQUEST400customer.hsid must be a valid UUID

Payment Object

Agent Object

Error TitleHTTP StatusError Message
INVALID_REQUEST400agent.userId is required
INVALID_REQUEST400agent.userId cannot exceed 50 characters
INVALID_REQUEST400agent.firstName cannot exceed 50 characters
INVALID_REQUEST400agent.lastName cannot exceed 50 characters
Error TitleHTTP StatusError Message
INVALID_REQUEST400payment.consent.merchantConsentText is required
INVALID_REQUEST400payment.consent.merchantConsentText cannot exceed 1000 characters
INVALID_REQUEST400payment.consent.merchantConsentId is required
INVALID_REQUEST400payment.consent.merchantConsentId cannot exceed 100 characters
INVALID_REQUEST400payment.consent.consentCollectionTimestamp is required
INVALID_REQUEST400payment.consent.consentCollectionTimestamp must be in ISO 8601 format
INVALID_REQUEST400Country Code for Telephone Consent must contain only digits and must be 1 to 3 characters long
INVALID_REQUEST400PhoneNumber for Telephone Consent must contain only digits and must be 4-11 characters long
INVALID_REQUEST400ConsentCollectionType should match any one of the values accepted for Enum class: [TEL, WEB, PPD]

Error Details

Authorization Error

Resource Not Found Error

Business Rule Violation Error

Config Object

Customer Object

Payment Details Object

Schema validation error

Config Object

Customer Object

Payment Object

Agent Object