> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appcharge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consume Purchase

Based on the response message of the `OnPurchaseComplete`, provide the orderId the execute Consume Purchase as follow:

## Code Example

<CodeGroup>
  ```csharp csharp theme={"system"}
  CheckoutController.ConsumePurchase(String customerId, String orderId, Session transactionSessionId);
  ```
</CodeGroup>

The `ConsumePurchase` receives two arguments:

| Argument                 | Description                                          |
| ------------------------ | ---------------------------------------------------- |
| `customerId`             | Represents the customer identification               |
| `orderId`                | Represents the orderId we want to consume            |
| `publisherTransactionId` | Represents a unique metadata for the consume process |

***Note:** Publishers may also send transactionSessionId for extra data if available. This field is not mandatory and may stay empty.*
