> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-requests/cross-sell/place-orders-with-cross-selling-campaigns.md).

# Place orders with cross-selling campaigns

Use the **CrossSell** object below to recommend additional products to customers via JSON-RPC API 6.0.

Cross-selling allows you to recommend additional products to customers and increase the average order value. The 2Checkout Public API supports classic cross-sell campaigns which means you can recommend more products from your own product catalog to your shoppers.

## CrossSell object for the placeOrder API method

<table><thead><tr><th width="169.199951171875">Parameter</th><th>Type / Description</th></tr></thead><tbody><tr><td><code>ParentCode</code></td><td><p><strong>Required (string)</strong></p><p>Product code of the product to be recommended to the shopper.</p></td></tr><tr><td><code>CampaignCode</code></td><td><p><strong>Required (string)</strong></p><p>The upsell campaign code.</p></td></tr></tbody></table>

### Request sample

```php
{
  "Currency": "USD",
  "Language": "EN",
  "Country": "US",
  "CustomerIP": "10.10.10.10",
  "Source": "sourceAPI.net",
  "CustomerReference": 421820775,
  "Items": [\
\
    {\
      "Code": "15",\
      "Quantity": 1\
    },\
    {\
      "Code": "34924C876E",\
      "Quantity": 1,\
      "CrossSell":{\
        "ParentCode" : "15",\
        "CampaignCode" : "2Xrl83KSkemCv3G3dL%2B9eA%3D%3D"\
      }\
    }\
  ],

   "BillingDetails":{

      "FirstName":"Customer First Name",
      "LastName":"Customer Last Name",
      "CountryCode":"US",
      "State":"California",
      "City":"San Francisco",
      "Address1":"Example Street",
      "Zip":"90210",
      "Email":"example@email.com"

   },

  "PaymentDetails": {
    "Type": "CC",
    "Currency": "USD",
    "CustomerIP": "10.10.10.10",
    "PaymentMethod": {

      "Vendor3DSReturnURL": "https:\/\/example.com",
      "Vendor3DSCancelURL": "https:\/\/example.com",
      "CardNumber": "4111111111111111",
      "CardType": "VISA",
      "ExpirationYear": "2020",
      "ExpirationMonth": "12",
      "CCID": "123",
    }
  }
}
```

## Response

Using the same structure, the **getContents** method will take into account the discount associated with the cross-sell campaign and display the appropriate prices and taxes.

```php
{
    "Country": "DE",
    "Currency": "EUR",
    "Items": [\
        {\
            "Code": "NIQRPI0GTU",\
            "Quantity": 1\
        },\
\
        {\
            "Code": "0XICS3OVDK",\
            "Quantity": 1,\
\
"CrossSell":{\
        "ParentCode" : " NIQRPI0GTU ",\
        "CampaignCode" : "2Xrl83KSkemCv3G3dL%2B9eA%3D%3D"\
      }\
\
        }\
    ],

    "BillingDetails": {
        "FirstName": "Customer First Name",
        "LastName": "Customer Last Name",
        "CountryCode": "DE",
        "City": "Bucharest",
        "Address1": "Example Street",
        "Zip": "73331",
        "Email": "example@email.com"
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/json-rpc-api-reference/json-rpc-api-6.0/api-requests/cross-sell/place-orders-with-cross-selling-campaigns.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
