Skip to main content

Sales Order Information

The GetSalesOrderInfo endpoint returns information about a specific sales order in the MIMS system.


How to get sales order information

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/GetSalesOrderInfo
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetSalesOrderInfo"

Input Parameters

ParameterTypeRequiredDescription
SalesOrderNoString(25)YesExternal code of the sales order
BranchNoString(25)YesExternal code of the branch

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
SalesOrderInfoGetSalesOrderInfoDataYesObject containing the sales order data

📝 GetSalesOrderInfoData Object

The GetSalesOrderInfoData object represents a sales order.

Return Parameters

ParameterTypeRequiredDescription
CustomerNoString(25)YesExternal code of the customer
CustomerAuxiliaryNoString(25)NoAuxiliary external code of the customer
SellerNoString(25)YesExternal code of the seller
SalesOrderDateDataHoraYesOrder date
DeliveryDateDataHoraYesDelivery date
RegisterDateDataHoraYesOrder entry date
FreightTypeFreightTypeYesEnumerator with possible values for freight type: ftShipper (CIF) or ftRemittee (FOB)
DeliveryAddressAddressInfoNoObject containing the delivery address information of the order
BillingAddressAddressInfoNoObject containing the billing address information of the order
NotesString(2000)NoSales order notes
ItemListGetSalesOrderItemInfoListYesList of all sales order items

📝 GetSalesOrderItemInfo Object

The GetSalesOrderItemInfo object represents a sales order item.

Return Parameters

ParameterTypeRequiredDescription
ItemNoString(25)NoExternal code of the sales order item
ProductNoString(25)YesExternal code of the product
UnitValueFloatNoUnit value
PackageQtyIntegerNoQuantity of packages of boxes ordered
QtyIntegerNoQuantity of boxes ordered
WeightFloatNoOrdered weight
TotalValueFloatNoTotal value
ShelflifeLimitBeginDateDataHoraNoInitial date for production date restriction
ShelflifeLimitFinalDateDataHoraNoFinal date for production date restriction

Request Example

{
"SalesOrderNo": "SO12345",
"BranchNo": "BR001"
}

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"SalesOrderInfo": {
"CustomerNo": "03960",
"CustomerAuxiliaryNo": "01",
"CustomerCorporateName": "CLIENTE TESTE",
"CustomerCode": 5987,
"DeliveryAddress": {
"AddressType": "",
"Address": "RO ADHEMAR PEREIRA DE BARROS, SN",
"Number": "",
"District": "JARDIM BELA VISTA",
"ZIPCode": "13804060",
"City": "",
"CityNo": "",
"State": "",
"StateInitials": "",
"Country": "",
"SubLogisticRegionNo": "",
"PersonAdressNo": ""
},
"BillingAddress": {
"AddressType": "",
"Address": "RO ADHEMAR PEREIRA DE BARROS, SN",
"Number": "",
"District": "JARDIM BELA VISTA",
"ZIPCode": "13804060",
"City": "",
"CityNo": "",
"State": "",
"StateInitials": "",
"Country": "",
"SubLogisticRegionNo": "",
"PersonAdressNo": ""
},
"SellerNo": "0001",
"SalesOrderDate": "2025-10-23",
"RegisterDate": "2025-10-28T11:48:12.000Z",
"DeliveryDate": "2026-02-28",
"LoadNo": "",
"FreightType": "ftShipper",
"Notes": "Obs padrão do pedido",
"PriceTableNo": "21",
"PromotionalPriceTableNo": "21",
"SalesOrderStatus": "AB",
"ItemList": null
}
}

🐞 Possible Errors

CodeMessage
GSO‑001The informed "SalesOrderNo" does not exist!