Skip to main content

Endpoints: Flex API v2


Flex API v2 exposes these REST endpoints, grouped by the stage of the tokenization flow each one supports.

Capture Context

MethodPathDescription
POST/flex/v2/sessionsGenerate the capture context that scopes and secures the data to capture.
GET/flex/v2/public-keys/{keyId}Retrieve the public key used to validate a capture context's signature.

Tokenization

MethodPathDescription
POST/flex/v2/tokensTokenize the secured payment information and receive a transient token.

Server URLs

Use the base URL for your environment as the URL prefix. See API Server URLs for the full reference:

EnvironmentBase URL
Productionapi.cybersource.com
Production (Saudi Arabia)api.sa.cybersource.com
Testapitest.cybersource.com
Test (Saudi Arabia)apitest.sa.cybersource.com
EnvironmentBase URL
Productionapi.visaacceptance.com
Testapitest.visaacceptance.com
EnvironmentBase URL
Productionapi.smartpayfuse.barclaycard
Testapi.smartpayfuse-test.barclaycard
EnvironmentBase URL
Productionapi.merchant-services.bankofamerica.com
Testapitest.merchant-services.bankofamerica.com
EnvironmentBase URL
Productionapi.gw.cliq.com
Testapi.gw.cas.cliq.com
EnvironmentBase URL
Productionnabgateway-api.nab.com.au
Testnabgateway-api-test.nab.com.au

Last published: September 29, 2026