Przejdź do głównej zawartości

Uruchom import płatności

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

Rozpoczyna import płatności (np. z wyciągu bankowego) z wgranego pliku i przypisuje je do zamówień.

object
mappings
Array<object>
nullable
object
property
string
nullable
column
integer format: int32
csvSettings
object
includesHeader
boolean
separator
string
encoding
string
nullable
fileId
string format: uuid
matchingStrategy
Array<string>
nullable
Dozwolone wartości: None ByOrderId ByOrderSourcePlatformId ByPaymentPlatformId

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
updatedCount
integer format: int32
Example
{
"status": "New"
}