> For the complete documentation index, see [llms.txt](https://integrations.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.impact.com/integration-guides/for-partners/card-linked-offers-beta/integration.md).

# Integration

{% hint style="success" %}
**Note:** If you'd like to send Card-Linked Transactions via API instead, check out the [Conversions endpoint](https://integrations.impact.com/partner-api-reference/reference/conversions).
{% endhint %}

{% stepper %}
{% step %}

### Create a connection

Navigate to ![](/files/qPLiENtq33ewHc3tmEP4) **\[User profile] → Settings →** [**Connections**](https://app.impact.com/secure/mediapartner/connections/fr/connectors-ui.ihtml) to create a new Card-Linked Transactions SFTP connection.

* Learn more about [Creating and Managing Connections](https://help.impact.com/en/support/solutions/articles/155000000338).
  {% endstep %}

{% step %}

### Prepare to send

Prepare to send transaction-level data to impact.com.

* Data upload frequency: There are no limitations on frequency. You can upload transactions as often as you want.
* File format: Plain text CSV format. Each row in the file represents a transaction.
  * Data for multiple programs can be sent within the same or separate files.
* SFTP Folder: Used to add new card-linked transaction files. The connection name determines the SFTP folder location name using the following format:
  * Connection name: Russel Sprout
  * Folder name: russel\_sprout/add
  * The folder name is derived from your connection name. Lowercase it, replace spaces with underscores, and append /add.
* File Name: We recommend using a unique and descriptive file name that includes your company name, data type, and timestamp.
  * `partnername_card_linked_transactions_YYYYMMDDHHMMSS.csv`
    {% endstep %}

{% step %}

### Confirm information

Confirm you have the necessary information from the brand.

* *Program ID* (formerly Campaign ID) specific to Card-Linked Offers. This is provided with each transaction. [See the sample schema below](#sample-schema).
* *Event Type ID* specific to Card-Linked Offers. This is provided with each transaction. [See the sample schema below](#sample-schema).
* Active terms with the brand's program that include the CLO event. [View your terms](https://help.impact.com/en/support/solutions/articles/48001234655-contracts-explained-for-partners).
* The Merchant IDs (MIDs) of the brand's locations to identify transactions.
  {% endstep %}

{% step %}

### Test the integration

Work with your Partner Development Manager or submit a [support ticket](https://app.impact.com/support/portal.ihtml) to test the integration. Our team will set up a contract with a test brand account and provide the **Program ID** and an **Event Type ID** for the setup. You can then send a small number of test transactions to confirm that all results are tracked as expected.
{% endstep %}

{% step %}

### Confirm the first batch

Once you send the first batch of transaction data, the impact.com support team will confirm that the data shows within the *Pending Actions* screen for the brand account. Confirm with the brand that the *Action Cost* and *Revenue* data are populated as expected.
{% endstep %}
{% endstepper %}

## Sample Schema

The below schema is representative of a subset of supported fields most commonly used for Card-Linked Offer programs. The data ingest also supports additional fields consistent with the brand's conversion object.

| Card-Linked Transaction Fields | Description                                                                                                                                                                                                                       | Example                              |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| `MediaPartnerId`               | Required. Your impact.com Account ID.                                                                                                                                                                                             | 123456                               |
| `CampaignId`                   | Required. The impact.com Program ID of the brand.                                                                                                                                                                                 | 12345                                |
| `EventTypeId`                  | The impact.com Event Type ID is created for *CardLinkedOffer* transactions. This should be a separate Event Type from regular online sale transactions.                                                                           | 78901                                |
| `EventTypeCode`                | The brand's impact.com Event Type Code (if EventTypeId is not provided).                                                                                                                                                          | clo\_transaction                     |
| `Amount`                       | <p>Required. Transaction Amount.<br><strong>We do not currently support returns or negative amounts being submitted, and doing this will result in an error.</strong></p>                                                         | 156.11                               |
| `EventDate`                    | Required. Time and date when the conversion event actually took place, in ISO 8601 format.                                                                                                                                        | 2022-10-12T05:41:04+0000             |
| `CurrencyCode`                 | Three-letter ISO 4217 alpha code representing the currency. If not sent, your account's default currency will be used.                                                                                                            | USD                                  |
| `CardLinkedTransactionId`      | Required. Unique identifier of the transaction.                                                                                                                                                                                   | 854edc88-10c7-4c1f-aadc-d64f30c415af |
| `CustomerPostCode`             | Billing Zip.                                                                                                                                                                                                                      | 11101                                |
| `CustomerCountry`              | Billing Country.                                                                                                                                                                                                                  | US                                   |
| `CustomerCity`                 | Billing City.                                                                                                                                                                                                                     | New York                             |
| `CardBin`                      | Card Bin (Bank Identification number)                                                                                                                                                                                             | 401159                               |
| `CardLastFour`                 | The last 4 digits of the card relevant to the transaction.                                                                                                                                                                        | 1234                                 |
| `LocationId`                   | Merchant ID (MID) or similar.                                                                                                                                                                                                     | 12345                                |
| `LocationName`                 | Merchant Location Name (e.g. name of physical location or website).                                                                                                                                                               | company.com                          |
| `PayoutAmount`                 | The payout amount as calculated by the card-linking platform. This amount is not used, but is captured for information purposes only. All payouts are calculated based on the impact.com terms between the partner and the brand. | 15.6                                 |
| `SharedId`                     | A free-form field that accepts any value that can be used by brands to create custom payouts to partners. Maximum length: 255 characters.                                                                                         | Recurring                            |
| `SubId1 - 3`                   | Custom text field typically used by partners to segment traffic.                                                                                                                                                                  | Card-Linked                          |
| `Numeric1 - 3`                 | General numeral field that accepts any numeric data you want to send. Appears in brand reports. Format: Decimal (18,2).                                                                                                           | 15.6                                 |
| `Money1 - 3`                   | General numeral field that accepts any money or financial numeric data you want to send. Appears in brand reports. Format: Decimal (18,2).                                                                                        | 173.11                               |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://integrations.impact.com/integration-guides/for-partners/card-linked-offers-beta/integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
