Przejdź do głównej zawartości

Zaktualizuj płatności wielu zamówień

POST
/api/v3/Orders/batch-payments
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/batch-payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ { "ownerData": { "email": "example", "userName": "example", "fullName": "example", "id": 1, "roles": [ "example" ] }, "orderId": 1, "clientReference": "example", "payload": { "platformId": "example", "platformName": "example", "finishedAtUtc": "2026-04-15T12:00:00Z", "paymentAmount": { "currency": "example", "amount": 1 }, "paid": true } } ]'

Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

Typ treściapplication/json
Array<object>
object
ownerData
object
email
string
nullable
userName
string
nullable
fullName
string
nullable
id
integer format: int64
roles
Array<string>
nullable
orderId
integer format: int64
clientReference
string
nullable
payload
object
platformId
string
nullable
platformName
string
nullable
finishedAtUtc
string format: date-time
nullable
paymentAmount
object
currency
string
nullable
amount
number format: double
paid
boolean
nullable
Examplegenerated
[
{
"ownerData": {
"email": "example",
"userName": "example",
"fullName": "example",
"id": 1,
"roles": [
"example"
]
},
"orderId": 1,
"clientReference": "example",
"payload": {
"platformId": "example",
"platformName": "example",
"finishedAtUtc": "2026-04-15T12:00:00Z",
"paymentAmount": {
"currency": "example",
"amount": 1
},
"paid": true
}
}
]

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}