Przejdź do głównej zawartości

Uruchom import zamówień

POST
/api/v2/Imports/orders/import
curl --request POST \
--url https://twoja-instancja-importer-api.enterprise.sellrocket.pl/api/v2/Imports/orders/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "mappings": [ { "property": "example", "column": 1 } ], "fileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "csvSettings": { "includesHeader": true, "separator": "example", "encoding": "example" }, "createNonExistingEntities": true, "useNewOrderSchema": true, "forceSilentChanges": true, "connectionId": 1, "statusId": 1 }'

Rozpoczyna import zamówień z wgranego pliku według podanego mapowania kolumn.

object
mappings
wymagane
Array<object>
nullable
object
property
string
nullable
column
integer format: int32
fileId
wymagane
string format: uuid
csvSettings
wymagane
object
includesHeader
boolean
separator
string
encoding
string
nullable
createNonExistingEntities
boolean
useNewOrderSchema
boolean
forceSilentChanges
boolean
connectionId
integer format: int64
nullable
statusId
integer format: int64
nullable
Examplegenerated
{
"mappings": [
{
"property": "example",
"column": 1
}
],
"fileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"csvSettings": {
"includesHeader": true,
"separator": "example",
"encoding": "example"
},
"createNonExistingEntities": true,
"useNewOrderSchema": true,
"forceSilentChanges": true,
"connectionId": 1,
"statusId": 1
}

OK

Typ treściapplication/json
object
id
integer format: int64
status
string
Dozwolone wartości: New InProgress Completed Cancelled Failed
message
string
nullable
createdAt
string format: date-time
finishedAt
string format: date-time
nullable
includesHeader
boolean
separator
string
nullable
encoding
string
nullable
fileSize
integer format: int64
updatedOrdersCount
integer format: int32
createdOrdersCount
integer format: int32
results
Array<object>
nullable
object
lineNumber
integer format: int32
message
string
nullable
errorCode
string
Dozwolone wartości: Unknown ProductNotFound InvalidValue WarehouseNotFound PriceGroupNotFound RequestToPimFailed MissingField PimReturnedError OrderNotFound MultipleOrdersFound NotCreating PropertyFromPaymentNameNotFound OrderAlreadyPaid IncorrectPaymentAmount
errorParams
Array<string>
nullable
dateFinished
string format: date-time
orderId
integer format: int64
nullable
buyerUserName
string
nullable
sourceOrderId
string
nullable
Example
{
"status": "New",
"results": [
{
"errorCode": "Unknown"
}
]
}