Znajdź zamówienie po zeskanowanym kodzie
GET
/api/v6/Orders/by-code/{scannedValue}
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/by-code/example';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/v6/Orders/by-code/example \ --header 'Authorization: Bearer <token>'Wyszukuje zamówienie po kodzie kreskowym, numerze lub wartości pola dodatkowego. Używane przy stanowiskach pakowania.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”scannedValue
wymagane
string
Parametry zapytania
Dział zatytułowany „Parametry zapytania”additionalFieldName
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
matchedOrder
object
id
integer format: int64
source
object
connectionId
integer format: int64
connectionType
string
platformAccountId
string
platformOrderId
string
externalSourceId
string
externalSourceType
string
sourceOrderId
string
asteriskMarked
boolean
asteriskKindId
integer format: int64
asteriskKindColor
string
asteriskKindIcon
string
sellerComments
string
buyerComments
string
platformDateAddedUtc
string format: date-time
platformDateConfirmedUtc
string format: date-time
seller
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
buyer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
payments
object
paymentStatus
string
paymentName
string
payments
Array<object>
object
id
integer format: int64
platformId
string
platformName
string
finishedAtUtc
string format: date-time
paymentAmount
object
currency
string
amount
number format: double
notRoundedAmount
number format: double
amountBefore
number format: double
change
number format: double
status
object
id
integer format: int64
from
string format: date-time
delivery
object
recipient
object
email
string
fullName
string
companyName
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
pickupPoint
object
code
string
name
string
description
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
cost
object
currency
string
amount
number format: double
method
object
platformId
string
platformName
string
isCod
boolean
isPacked
boolean
isPicked
boolean
isBeingPacked
boolean
isBeingPicked
boolean
packedByUserId
integer format: int64
invoice
object
required
boolean
payer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
lineItems
Array<object>
object
id
integer format: int64
platformId
string
product
object
id
integer format: int64
platformId
string
name
string
code
string
ean
string
bundleId
string
warehouseId
string
parentName
string
additionalEans
Array<object>
object
ean
string
quantity
number format: double
description
string
quantity
number format: double
tax
object
symbol
string
rate
number format: double
price
object
currency
string
unitPrice
Cena brutto
number format: double
originalUnitPrice
number format: double
elasticFields
Array<object>
object
fieldName
string
fieldValue
string
allegroOfferUrl
string
attachments
Array<object>
object
id
integer format: int64
orderId
integer format: int64
contentType
string
fileName
string
uri
string
bytesSize
integer format: int64
status
string
uploadType
string
invoiceNumber
string
ksef
object
number
string
summary
object
totalToPay
object
currency
string
amount
number format: double
toPayWithoutShipment
object
currency
string
amount
number format: double
ksef
object
errorMessage
string
status
string
orderIdFromWhichThisWasCreatedBySplit
integer format: int64
orderIdsWhichWereCreatedBySplitFromThis
Array<integer>
fulfillmentByMarketplace
boolean
return
object
returnedAtUtc
string format: date-time
reason
string
mergedOrders
Array<object>
object
id
integer format: int64
connectionPlatformOrderId
string
connectionId
integer format: int64
currency
string
additionalField1
string
additionalField2
string
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
returnId
integer format: int64
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
cancellation
object
cancelledAtUtc
string format: date-time
reason
string
packStation
object
id
integer format: int64
name
string
printers
Array<object>
object
id
integer format: int64
printerId
integer format: int64
printerName
string
computerName
string
position
integer format: int32
returnIds
Array<integer>
elasticFields
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
fieldValue
string
matchedBy
string
Example
{ "matchedOrder": { "payments": { "paymentStatus": "Unpaid" } }, "matchedBy": "ShipmentTrackingNumber"}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"}Server Error

