# In Control APIs source: https://developer.mastercard.com/iccp/documentation/index.md In Control APIs streamline business transactions using configurable spending controls and enhanced data. ## Overview {#overview} In Control APIs allow you to create and manage virtual card numbers (VCNs) that offer a flexible, simple, and secure way to pay, while capturing the data you need to reconcile payments later. #### Unique card number for every transaction {#unique-card-number-for-every-transaction} A new account number is generated for each transaction and used only once, which gives each purchase its own unique identifier #### Set transaction level controls {#set-transaction-level-controls} Transaction-level authorization lets you define how, where, and when cards are used #### Get enhanced data {#get-enhanced-data} Information important to each individual payment is included in each transaction #### Automated reconciliation {#automated-reconciliation} VCN data is available for reconciliation reporting #### Workflow control {#workflow-control} Approval routing for transactions follows the existing approval process - can also be used as a key tool to reinvent your requisition-to-pay process ### Requesting a Virtual Card Number {#requesting-a-virtual-card-number} To create a VCN using In Control APIs, you submit a purchase request. The purchase request captures important details about the request, including real card details, supplier details, and the controls that constrain the card usage. ### Adding Invoice Details {#adding-invoice-details} In Control APIs allow you to attach invoice details to a purchase request. For each virtual card, you can include up to 5000 invoice details. The invoice details are included in the email that is sent to the supplier. ### Requesting Reports {#requesting-reports} You can generate reports of the authorization and clearing activities that occur on a VCN and use these reports to reconcile payments and find discrepancies. ## How It Works {#how-it-works} ### Initial Setup {#initial-setup} To use In Control APIs to issue and manage virtual cards, you must be one of the following: * An issuer of Mastercard commercial credit cards * A corporate customer of such an issuer * A payment agent acting on behalf of the issuer or its corporate customers When you enroll for In Control APIs, you set up real card numbers that will be used to fund the virtual cards that you create and templates that will determine their characteristics. You also set up details for the suppliers that you will pay using VCNs. You can then use In Control APIs to create and report on VCNs, and you can make payments with those VCNs as you would with any credit card in a 'card not present' transaction. ### Using In Control APIs {#using-in-control-apis} The sequence diagram shows how the client interacts with In Control APIs to create a VCN, deliver it to the supplier and obtain a report on the VCN usage. For simplicity, the issuer and acquirer involvement are not shown. Their participation is the same as in a standard card transaction. Diagram green-path In more detail, the flow is as follows: 1. Using In Control APIs, create a VCN by submitting a purchase request, specifying the real card that funds the VCN, the controls to apply, and the supplier to be paid. 2. In Control APIs respond with the details of the VCN. 3. In Control APIs pass the details of the VCN to the Mastercard network so that it will be recognized when presented for payment. 4. Use the API to add details of the invoices that you will be paying with this VCN. 5. In Control APIs respond to confirm that the details have been updated. 6. In Control APIs optionally send the VCN and invoice details to the supplier via secure email. You may alternatively provide the VCN details to the supplier via other means. 7. The supplier uses the VCN details to request payment via its acquiring bank. The supplier never sees the details of the real card that funds the transaction. 8. Mastercard processes the payment authorization request by: * Checking that the payment is within the bounds of the controls that you set (and declining the transaction if the controls are breached) * Adding the real card details to the authorization request and sending the authorization request to the card issuer for approval * Once the issuer responds, removing the real card details and sending the issuer response to the acquirer, who passes it back to the supplier 9. In Control APIs obtain the payment authorization details from the Mastercard network in order to report on transaction details. 10. Using In Control APIs, request a VCN authorizations report for the VCN that you used to make the payment. 11. In Control APIs respond with a report of the authorization transactions for the VCN. Once the transaction clears, you can obtain a report of cleared transactions in the same manner. Note: Payment Card Industry Data Security Standards (PCI DSS) may apply for In Control APIs integrations. PCI Compliance Standards can be found [here](https://www.pcisecuritystandards.org/pci_security/). ## Next Steps {#next-steps} * Refer to the [Use Cases](https://developer.mastercard.com/iccp/documentation/use-cases/index.md) and [API Reference](https://developer.mastercard.com/iccp/documentation/api-reference/index.md) to learn more about In Control APIs. * For definitions of terms and acronyms used in the In Control APIs documentation, refer to the [Glossary of Terms and Acronyms](https://developer.mastercard.com/iccp/documentation/glossary/index.md).