---
schema_version: "1"
id: e1e37f40b516d8cc48525e5b02abc7ccc3c343291ff3617d76e63148e5d3800a
title: AsyncCartProcessor Interface
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_interface_sfdc_checkout_AsyncCartProcessor.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_sfdc_checkout_AsyncCartProcessor.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4b376c39b08b57128f0e708adc8cedd77133a0ac8aa602bdcb93fc65e9e56183
description: Use this interface to implement asynchronous integrations in B2B Commerce.The startCartProcessAsync method is called asynchronously by the integration framework. Calling this method begins cart processing for Commerce checkout.
---
# AsyncCartProcessor Interface

Use this interface to implement asynchronous integrations in B2B Commerce.

## Namespace

[Sfdc\_Checkout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_sfdc_checkout.htm "The Sfdc_Checkout namespace provides an interface and classes for B2B Commerce apps in Salesforce.")

- **[AsyncCartProcessor Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_sfdc_checkout_AsyncCartProcessor.htm#apex_sfdc_checkout_AsyncCartProcessor_methods)**
- **[AsyncCartProcessor Example Implementation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_sfdc_checkout_AsyncCartProcessor.htm#apex_interface_sfdc_checkout_AsyncCartProcessor_Example)**

## AsyncCartProcessor Methods

The following are methods for AsyncCartProcessor.

- **[startCartProcessAsync(integrationInfo, cartId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_sfdc_checkout_AsyncCartProcessor.htm#apex_sfdc_checkout_AsyncCartProcessor_startCartProcessAsync)**  
    The startCartProcessAsync method is called asynchronously by the integration framework. Calling this method begins cart processing for Commerce checkout.

### startCartProcessAsync(integrationInfo, cartId)

The startCartProcessAsync method is called asynchronously by the integration framework. Calling this method begins cart processing for Commerce checkout.

#### Signature

public sfdc\_checkout.IntegrationStatus startCartProcessAsync(sfdc\_checkout.IntegrationInfo integrationInfo, Id cartId)

#### Parameters

- **integrationInfo**:
    
    Type: [IntegrationInfo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_checkout_IntegrationInfo.htm#apex_class_sfdc_checkout_IntegrationInfo "Provides the values that B2B Commerce Checkout uses to map requests to responses, necessary metadata, and context.")
    
    Provides values that B2B Commerce checkout APIs use to map requests to responses, necessary metadata, and context.
- **cartId**:
    
    Type: [Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")
    
    ID of the WebCart object.

#### Return Value

Type: [IntegrationStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_sfdc_checkout_IntegrationStatus.Status.htm "The IntegrationStatus.Status enum describes the status of the current integration.")

Status of the current integration. Possible values are SUCCESS and FAILED.

## AsyncCartProcessor Example Implementation

This is an example implementation of the sfdc\_checkout.AsyncCartProcessor interface.

global interface checkout\_AsyncCartProcessor {
 
   //Integration for async processing
   IntegrationStatus startCartProcessAsync(
      IntegrationInfo integrationInfo,
      Id cartId);
}

AsyncCartProcessor is a base interface. There are four interfaces that extend it, including CartInventoryValidation, CartPriceCalculations, CartShippingCharges, and CartTaxCalculations. For more information about these interfaces, including code examples and test classes, see [Checkout Integrations](https://github.com/forcedotcom/b2b-commerce-on-lightning-quickstart/tree/master/examples/checkout/integrations "HTML (New Window)").