Przejdź do głównej zawartości

Ustaw płatności zamówienia (nadpisz)

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

Zastępuje płatności zamówienia przekazaną listą; nagłówek X-SR-ForceSilentChanges pozwala pominąć wyzwalanie automatyzacji.

orderId
wymagane
integer format: int64
X-SR-ForceSilentChanges
string

This header allows for settings collection of payments without raising events

Typ treściapplication/json
Array<object>
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
[
{
"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"
}