---
title: "Import an affiliate network sales report (CSV body, Content-Type: text/csv; up to 5 MB)"
method: POST
path: "/v1/admin/affiliate-sales/import"
tags: ["Admin"]
---

# Import an affiliate network sales report (CSV body, Content-Type: text/csv; up to 5 MB)

`POST /v1/admin/affiliate-sales/import`

## Request

- Base URL: `https://api.fairly.gg`
- URL: `https://api.fairly.gg/v1/admin/affiliate-sales/import`
- Auth: API key in header `X-Api-Key`

Parameters: `network` (required: `impact` = Actions report, `cj` = Commission Detail, anything else = generic column mapping), optional `currency` for reports without one and `store` (store code) for rows whose click id is unknown and whose merchant name matches no store. Upserts by (network, transaction id): re-uploading updates status and amounts, never duplicates. The file is accepted or rejected as a whole (400 lists up to 20 row errors).

## Response `200`

OK

---

[API](https://skmtc.dev/fairly/apis/fairly-api.md) · [All operations](https://skmtc.dev/fairly/apis/fairly-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fairly/apis/fairly-api/revisions/9b21c64dffa2?raw)
