DescriçãoO endpoint GET /orders/salesChannelOrderId/{orderId} é utilizado para pesquisar pedidos por seu identificador único na origem (SalesChannelOrderId). Parâmetros - orderId (obrigatório): O identificador único do pedido na origem.
- page_size (opcional): Quantidade de registros por página.
- current_page (opcional): Página corrente.
RespostasSucesso (200)
{
"Pagination": {
"TotalCount": 0,
"PageSize": 0,
"CurrentPage": 0
},
"Items": [
{
"OrderId": 0,
"OrderOriginId": "string",
"DeliveryOriginId": "string",
"OriginBranch": "string",
"FulfillmentBranch": "string",
"SalesChannelOrderId": "string",
"OrderType": 0,
"CustomerId": "string",
"SalesmanId": "string",
"PriceTable": "string",
"SalesOperationId": "string",
"PaymentTypeId": "string",
"TotalQuantity": 0,
"TotalAmount": 0,
"Discount": 0,
"IsCanceled": true,
"Observation": "string",
"Date": "2024-07-22T18:05:04.529Z",
"IsInvoiced": true,
"IsCreated": true,
"PaymentDiscount": 0,
"User": "string",
"DeliveryAddressId": 0,
"ShipmentAmount": 0,
"RecipientName": "string",
"GiftMessage": "string",
"Carrier": "string",
"Tracking": "string",
"IsStoreOnlyOperation": true,
"CancelationReason": "string",
"IsChecked": true,
"SiteId": "string",
"ShipmentType": "string",
"ClearsaleStatus": "string",
"CampaignId": 0,
"DiscountId": "string",
"FControlStatus": "string",
"CampaignActionId": 0,
"OrderExecutionStatus": 0,
"B2CTransferStatus": 0,
"IsScheduledDelivery": true,
"DeliveryHours": "string",
"DeliveryDate": "2024-07-22T18:05:04.529Z",
"InvoiceDate": "2024-07-22T18:05:04.529Z",
"UpdateDate": "2024-07-22T18:05:04.529Z",
"IsLegalEntity": true,
"AvoidsCPFECFRecording": true,
"IsPrintedDAV": true,
"IsPresale": 0,
"IntermediaryId": 0,
"OrderStatus": {
"OrderId": 0,
"OriginBranch": "string",
"Status": "string"
},
"OrderItems": [
{
"ProductColorId": "string",
"OrderId": 0,
"OriginBranch": "string",
"Item": 0,
"Barcode": "string",
"Size": "string",
"Quantity": 0,
"LiquidPrice": 0,
"ItemDiscount": 0,
"IsCanceled": true,
"ProductId": "string",
"SalesmanId": 0,
"SaleQuantity": 0,
"Giftwrap": true,
"PersonalizationName": "string",
"PersonalizationNumber": "string",
"PersonalizationNameType": "string",
"PersonalizationNumberType": "string",
"Tracking": "string",
"Checked": true,
"CheckedQuantity": 0,
"IsFutureDelivery": true,
"IsEcommerceItem": true,
"Quote": 0,
"ReturnedQuantity": 0,
"ThirdPartyQuantity": 0,
"CreationDate": "2024-07-22T18:05:04.529Z"
}
],
"OrderPayments": [
{
"OrderId": 0,
"OriginBranch": "string",
"PaymentNumber": "string",
"PaymentTypeId": "string",
"Amount": 0,
"DueDate": "2024-07-22T18:05:04.529Z",
"TitleNumber": "string",
"Bank": "string",
"Currency": "string",
"AdministratorId": "string",
"ApprovalCode": "string",
"Installments": 0,
"ExchangeRate": 0,
"IsPaymentCaptured": true,
"CanceledAmount": 0,
"CurrencyAmount": 0,
"MoneyCashback": 0,
"TacAmount": 0,
"CreditCardCheck": "string",
"PaymentDate": "2024-07-22T18:05:04.529Z"
}
],
"OrderGiftList": {
"OrderId": 0,
"OriginBranch": "string",
"EventName": "string",
"ContactName1": "string",
"ContactName2": "string",
"ContactName3": "string",
"EventDate": "2024-07-22T18:05:04.529Z"
},
"ContactAddress": {
"AddressId": 0,
"AddressDescription": "string",
"Country": "string",
"ZipCode": "string",
"Neighbourhood": "string",
"City": "string",
"AdditionalAddress": "string",
"Number": "string",
"Street": "string",
"State": "string",
"IsMainAddress": true,
"ContactId": "string"
},
"Customer": {
"CustomerName": "string",
"CpfCnpj": "string",
"Email": "string",
"CustomerId": "string",
"CustomerType": "string",
"ContactId": "string",
"BranchId": "string",
"RgIe": "string",
"Country": "string",
"ZipCode": "string",
"Neighbourhood": "string",
"City": "string",
"AdditionalAddress": "string",
"Number": "string",
"Street": "string",
"State": "string",
"IsIndividual": true,
"RegisterDate": "2024-07-22T18:05:04.529Z",
"DateOfBirth": "2024-07-22T18:05:04.529Z",
"Gender": "string",
"Telephone": "string",
"TelephoneDistrictNumber": "string",
"Mobile": "string",
"MobileDistrictNumber": "string",
"StreetType": "string",
"NickName": "string",
"HasNewsletter": "string",
"HasNoCredit": true,
"HasSPCRegister": true,
"IsBlockedOnB2C": true,
"FaxNumber": "string",
"CreditLimit": 0,
"TotalCreditLimit": 0,
"Observation": "string",
"Status": 0,
"HasNoCheckAnalysis": true,
"MaritalStatus": 0,
"Profession": "string",
"CustomerExecutionStatus": 0,
"UpdateDate": "2024-07-22T18:05:04.529Z",
"BillingAddressId": 0,
"Contact": {
"ContactId": "string",
"ContactName": "string",
"Email": "string",
"Company": "string",
"IsIndividual": true,
"CpfCnpj": "string",
"Gender": "string",
"DateOfBirth": "2024-07-22T18:05:04.529Z",
"IsRetailCustomer": true,
"RegisterDate": "2024-07-22T18:05:04.529Z",
"CompanyName": "string",
"IsSystemUser": true,
"IsThirdPartyCustomer": true,
"IntegratesEmail": true,
"IntegratesEmailWithCrm": true,
"ExchangeWorkflow": true,
"ExchangeCrm": true,
"Telephone": "string",
"Address": "string",
"TelephoneInternationalDistrictNumber": "string",
"TelephoneDistrictNumber": "string",
"ZipCode": "string",
"City": "string"
}
},
"Shipments": [
{
"ShipmentId": 0,
"ShipmentType": "string",
"ShipmentDate": "2024-07-22T18:05:04.529Z",
"ShipmentOrder": {
"OrderId": 0,
"BranchId": "string",
"ShipmentId": 0
}
}
],
"StockAccountingDate": "2024-07-22T18:05:04.529Z",
"Invoices": [
{
"InvoiceId": "string",
"InvoiceSerialNumber": "string",
"BranchId": "string",
"OperationId": "string",
"IssueDate": "2024-07-22T18:05:04.529Z",
"FulfillmentDate": "2024-07-22T18:05:04.529Z",
"IsReceived": true,
"TotalQuantity": 0,
"NetWeight": 0,
"GrossWeight": 0,
"NumberOfVolumes": 0,
"VolumeType": "string",
"Shipment": 0,
"Insurance": 0,
"ItemsTotalAmount": 0,
"Discount": 0,
"Taxes": 0,
"TotalAmount": 0,
"Observation": "string",
"IsPrinted": true,
"CarrierName": "string",
"CarrierCity": "string",
"CarrierCnpj": "string",
"CarrierIe": "string",
"CarrierAddress": "string",
"IsRetailCustomer": true,
"AggregatedTaxAmount": 0,
"IsCanceled": true,
"CancelationDate": "2024-07-22T18:05:04.529Z",
"CanceledAmount": 0,
"OriginType": 0,
"UniqueSequentialNumber": 0,
"NsuGenerationDate": "2024-07-22T18:05:04.529Z",
"EletronicInvoiceKey": "string",
"EletronicInvoiceAuthorizationProtocol": "string",
"EletronicInvoiceStatus": 0,
"IsPriority": true,
"EletronicInvoiceIssueType": 0,
"EletronicInvoiceCancelationReason": "string",
"IsEletronicInvoiceIssued": 0,
"DpecRegistry": "string",
"Pin": "string",
"DpecIssueDate": "2024-07-22T18:05:04.529Z",
"EletronicInvoiceCancelationProtocol": "string",
"ContingencyDate": "2024-07-22T18:05:04.529Z",
"ContingencyReason": "string",
"ReferencedInvoiceId": "string",
"ReferencedInvoiceSerialNumber": "string",
"EletronicInvoiceEmail": "string",
"ApproximatedTaxAmount": 0,
"RecipientName": "string",
"DeliveryAddressId": 0,
"EletronicInvoiceAuthorazionDateHour": "2024-07-22T18:05:04.529Z",
"IssueDateHour": "2024-07-22T18:05:04.529Z",
"FulfillmentDateHour": "2024-07-22T18:05:04.529Z",
"EletronicInvoiceAuthorazionDateUtc": "2024-07-22T18:05:04.529Z",
"IssueDateUtc": 0,
"FulfillmentDateUtc": 0,
"InvoiceOperation": {
"OperationId": "string",
"Operation": "string",
"OperationDescription": "string"
},
"RetailBranch": {
"BranchId": "string",
"BranchName": "string"
},
"InvoiceItems": [
{
"ProductColorId": "string",
"InvoiceId": "string",
"InvoiceSerialNumber": "string",
"BranchId": "string",
"ItemNumber": "string",
"SubItemSize": 0,
"ItemCode": "string",
"Description": "string",
"ProductId": "string",
"Qty": 0,
"MeasurementUnit": "string",
"Amount": 0,
"UnitPrice": 0,
"Discount": 0,
"ItemTaxPercentage": 0,
"Weight": 0,
"Observation": "string",
"OriginTax": "string",
"IcmsTax": "string",
"TaxOperation": "string",
"TaxClassification": "string",
"TaxException": 0,
"Account": "string",
"TaxAmount": 0,
"DiscountAmount": 0,
"EletronicInvoiceItemNumber": 0,
"ShipmentPortionAmount": 0,
"InsurancePortionAmount": 0,
"ApproximatedTaxAmount": 0,
"ItemOrigin": "string"
}
],
"InvoiceXml": "string",
"InvoiceOrder": {
"OrderId": 0,
"BranchId": "string",
"InvoiceId": "string",
"InvoiceSerialNumber": "string"
}
}
]
}
]
}
Retorna uma lista de pedidos com informações detalhadas, incluindo paginação. Solicitação Inválida (400)Indica que ocorreu um erro na requisição, geralmente devido a parâmetros inválidos. {
"erro": "string",
"stackTrace": "string"
} |
Não autorizado (401)Indica que a requisição não foi autorizada. Certifique-se de que você possui as credenciais adequadas para acessar este endpoint. Erro Interno (500)
{
"erro": "string",
"stackTrace": "string"
} |
Indica que ocorreu um erro interno no servidor durante o processamento da requisição. O campo erro fornece uma descrição do erro, e stackTrace pode conter informações adicionais para diagnóstico. |