# Create a Virtual Card to Pay an Invoice
source: https://developer.mastercard.com/iccp/documentation/03_use-cases/virtual_card/index.md

Create a virtual card in two steps. First, make all the configuration calls to collect the necessary information to create a VCN. Second, make the submitpurchaserequest call to generate the VCN.

## 1. Run the Configuration Calls {#1-run-the-configuration-calls}

See [Configuration Details](https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/configuration-details/index.md) section to see the API Calls.
Diagram configuration

## 2. Make the Submitpurchaserequest call {#2-make-the-submitpurchaserequest-call}

Include the collected information along with spend controls, validity period, and VCN description. See the [SubmitPurchaseRequest](https://developer.mastercard.com/iccp/documentation/05_api_reference/soap_api/purchaserequest/submitpurchaserequest/index.md) call.
Diagram createVCN
