Pobierz zwroty zamówienia
GET
/api/v3/returns/GetByOrderId/{id}
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/GetByOrderId/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/GetByOrderId/1 \ --header 'Authorization: Bearer <token>'Zwraca zwroty powiązane z zamówieniem o podanym ID.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
id
integer format: int64
connectionId
string
sourcePlatformAccountId
string
sourcePlatformOrderId
string
sourcePlatformReturnId
string
platformDateAddedUtc
string format: date-time
payment
object
paymentName
string
payments
Array<object>
object
id
integer format: int64
platformId
string
platformName
string
finishedAtUtc
string format: date-time
currency
string
amount
number format: double
buyer
object
email
string
username
string
phone
string
delivery
object
recipient
object
username
string
firstName
string
lastName
string
companyName
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
cost
object
currency
string
amount
number format: double
summary
object
totalToPay
object
currency
string
amount
number format: double
returnStatusId
integer format: int64
statusUpdatedAtUtc
string format: date-time
additionalField1
string
additionalField2
string
packStationId
integer format: int64
orderReturnAccountNumber
string
orderReturnIBan
string
orderReturnSwitft
string
sellerComments
Array<string>
fulfillmentStatus
integer format: int32
lineItems
Array<object>
object
product
object
id
integer format: int64
warehouseId
string
platformId
string
name
string
code
string
ean
string
imageUrl
string
bundleId
string
storage
string
parentName
string
variantId
string
location
string
id
integer format: int64
platformId
string
quantity
number format: double
quantityPicked
number format: double
quantityPacked
number format: double
tax
object
symbol
string
rate
number format: double
price
object
currency
string
unitPrice
number format: double
originalCreatedAt
string format: date-time
returnsReasonId
integer format: int64
returnsPositionStatusId
integer format: int64
additionalFields
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
fieldValue
string
miniatures
object
originalImageUrl
string
selector
string
entityId
string
clientNote
string
orderId
integer format: int64
isComplete
boolean
shipments
Array<object>
object
id
integer format: int64
shipmentId
string
dateAddedUtc
string format: date-time
courierCode
string
trackingNumber
string
externalCarrierTrackingNumber
string
status
string
connectionId
string
courierConnectionType
string
courierService
string
trackingUrl
string
courierTransport
Array<string>
deliveryMethodPlatformId
string
shippingDate
string format: date
isReturn
boolean
connection
object
id
integer format: int64
name
string
connectionType
string
externalSourceType
string
externalSourceTypeName
string
externalSourceId
string
isConfigured
boolean
isSystemTool
boolean
positionInDefinition
object
position
integer format: int64
createdAt
string format: date-time
courierPickup
boolean
referenceNumber
string
externalPackage
boolean
buyerComment
string
additionalFields
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
fieldValue
string
Examplegenerated
[ { "id": 1, "connectionId": "example", "sourcePlatformAccountId": "example", "sourcePlatformOrderId": "example", "sourcePlatformReturnId": "example", "platformDateAddedUtc": "2026-04-15T12:00:00Z", "payment": { "paymentName": "example", "payments": [ { "id": 1, "platformId": "example", "platformName": "example", "finishedAtUtc": "2026-04-15T12:00:00Z", "currency": "example", "amount": 1 } ] }, "buyer": { "email": "example", "username": "example", "phone": "example" }, "delivery": { "recipient": { "username": "example", "firstName": "example", "lastName": "example", "companyName": "example", "phone": "example", "address": { "apartmentNo": "example", "houseNo": "example", "street": "example", "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "cost": { "currency": "example", "amount": 1 } }, "summary": { "totalToPay": { "currency": "example", "amount": 1 } }, "returnStatusId": 1, "statusUpdatedAtUtc": "2026-04-15T12:00:00Z", "additionalField1": "example", "additionalField2": "example", "packStationId": 1, "orderReturnAccountNumber": "example", "orderReturnIBan": "example", "orderReturnSwitft": "example", "sellerComments": [ "example" ], "fulfillmentStatus": 1, "lineItems": [ { "product": { "id": 1, "warehouseId": "example", "platformId": "example", "name": "example", "code": "example", "ean": "example", "imageUrl": "example", "bundleId": "example", "storage": "example", "parentName": "example", "variantId": "example", "location": "example" }, "id": 1, "platformId": "example", "quantity": 1, "quantityPicked": 1, "quantityPacked": 1, "tax": { "symbol": "example", "rate": 1 }, "price": { "currency": "example", "unitPrice": 1 }, "originalCreatedAt": "2026-04-15T12:00:00Z", "returnsReasonId": 1, "returnsPositionStatusId": 1, "additionalFields": [ { "objectId": 1, "ownerType": "example", "definitionId": 1, "fieldType": "example", "fieldName": "example", "fieldDisplayName": "example", "fieldValue": "example" } ], "miniatures": { "originalImageUrl": "example", "selector": "example", "entityId": "example" }, "clientNote": "example" } ], "orderId": 1, "isComplete": true, "shipments": [ { "id": 1, "shipmentId": "example", "dateAddedUtc": "2026-04-15T12:00:00Z", "courierCode": "example", "trackingNumber": "example", "externalCarrierTrackingNumber": "example", "status": "example", "connectionId": "example", "courierConnectionType": "example", "courierService": "example", "trackingUrl": "example", "courierTransport": [ "example" ], "deliveryMethodPlatformId": "example", "shippingDate": "2026-04-15", "isReturn": true, "connection": { "id": 1, "name": "example", "connectionType": "example", "externalSourceType": "example", "externalSourceTypeName": "example", "externalSourceId": "example", "isConfigured": true, "isSystemTool": true, "positionInDefinition": { "position": 1 }, "createdAt": "2026-04-15T12:00:00Z" }, "courierPickup": true } ], "referenceNumber": "example", "externalPackage": true, "buyerComment": "example", "additionalFields": [ { "objectId": 1, "ownerType": "example", "definitionId": 1, "fieldType": "example", "fieldName": "example", "fieldDisplayName": "example", "fieldValue": "example" } ] }]Not Found
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
