Skip to main content

sgrRetornaPedido

Returns the data of the order consulted.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method.
cdclientintegerYesClient code, returned by the sgrListCompaniesPASUsers method.
cdorderedintegerYes** Required when searching by order code
nrpedidoVarchar[20]Yes** Required when searching by order number

METHOD RETURN

FieldTypeDescription
cdorderIntegerOrder code
nrOrdervarchar[20]Order number
cdCliintegerCustomer code
cdCliSolicitorintegerOrder requester code
flsituacaosmallintOrder status: 0-Open; 1-Completed; 2-Canceled;
dtPrevInidatetimeExpected start date
dtPrevEnddatetimeExpected end date
cdOpCancelintegerOperator responsible for canceling the order
dtCanceldatetimeCancellation date
cdCancelReasonintegerCancellation reason code, returned by the sgrListCancelReason method
dsObsvarchar[4000]Free field for order comments
cdOpintegerCode of the operator responsible for the last change to the order
productsobjectContains the attributes shown in the item OrderProduct.