`Flex API` v2 Integration Task List {#flex-api-2-task-list}
===========================================================

The `Flex API` v2 is a suite of APIs that enables a merchant to safely and securely accept customer payment information from within a client application. The objective is to replace sensitive payment information with a transient token that can be transmitted without exposing the payment information.  
Integrating your system with the `Flex API` v2 consists of these tasks:

1. **Use the `/sessions` API endpoint to generate the capture context.**  
   See [Generating the Capture Context](/docs/vas/en-us/digital-accept-flex/developer/all/rest/digital-accept-flex/flex-api-2/flex-api-2-generate-capture-context.md "").
2. **Use the `/public-keys{}` API endpoint to validate the capture context.**  
   See [Validating the Capture Context](/docs/vas/en-us/digital-accept-flex/developer/all/rest/digital-accept-flex/flex-api-2/validate-capture-context-flexv2.md "").
3. **Compile the payment information in the appropriate JWE format.**  
   The data must match the data you specified in [Generating the Capture Context](/docs/vas/en-us/digital-accept-flex/developer/all/rest/digital-accept-flex/flex-api-2/flex-api-2-generate-capture-context.md "").
4. **Use the `/tokens` API endpoint to tokenize the payment information.**  
   See [Tokenizing Payment Information](/docs/vas/en-us/digital-accept-flex/developer/all/rest/digital-accept-flex/flex-api-2/flex-api-2-tokenize-payment-info.md "").
5. Validate the Transient Token
6. Using the Transient Token to Process a Payment

