Upload a File to PX/CX/SX

post/importfile/{TypeCode}/{target}/{uploadSlotId}

Uploads CSV, or XLSX file to Product Extensions, Customer Extensions, or Seller Extensions table.

Securitybasic or X-PriceFx-jwt
Request
path Parameters
TypeCode
required
string

Type code of the table you want to upload the file to.

Possible values: "PX" "CX" "SX"
Example: PX
target
required
string

The name of the PX/CX/SX table.

uploadSlotId
required
string

id of the upload slot. Use the uploadslotmanager.newuploadslot endpoint to retrieve the id.

Example: 5000
query Parameters
truncate
string

Set to true to overwrite existing data, or false to add new lines to existing data.

Possible values: "true" "false"
Example: truncate=false
Request Body schema: multipart/form-data
file
string <binary>

Provide the file (CSV, or XLSX format) you want to upload.

Responses
200

A general response that contains data property with a content depending on returned objects (e.g., Product master table fields when calling the /fetch/P endpoint). Can be null.

Response Schema: application/json
object
node
string
data
object or null
status
integer
startRow
integer
endRow
integer
Request samples
Response samples
application/json
{
  • "response": {
    • "node": "string",
    • "data": null,
    • "status": 0,
    • "startRow": 0,
    • "endRow": 0
    }
}