---
title: "Import a File"
method: POST
path: "/importfile/SX/{SXCategory}/{slotId}"
tags: ["Seller Extensions"]
---

# Import a File

`POST /importfile/SX/{SXCategory}/{slotId}`

## Request

- Base URL: `https://companynode.pricefx.com/pricefx/companypartition`
- URL: `https://companynode.pricefx.com/pricefx/companypartition/importfile/SX/{SXCategory}/{slotId}`
- Auth: one of:
  - HTTP basic
  - API key in header `X-PriceFx-jwt`
- TypeScript: <https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/docs/importfile/SX/:SXCategory/:slotId/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads a CSV or XLSX file to the Seller Extensions table.<br>
Delete the upload slot using the **/uploadmanager.deleteslot/{slot_id}** (Delete an Upload Slot) endpoint after the file has been uploaded.

## Query parameters

- `truncate` string

## Request body `multipart/form-data`

- object
  - `fileName` string, binary

## Response `202`

Accepted

---

[API](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api.md) - [All operations](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pricefx/apis/the-pricefx-backend-api/revisions/23d941b00ac0?raw)
