sgrRetornaPedido
Returns the data of the order consulted.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method. |
cdclient | integer | Yes | Client code, returned by the sgrListCompaniesPASUsers method. |
cdordered | integer | Yes* | * Required when searching by order code |
nrpedido | Varchar[20] | Yes* | * Required when searching by order number |
METHOD RETURN
Field | Type | Description |
---|---|---|
cdorder | Integer | Order code |
nrOrder | varchar[20] | Order number |
cdCli | integer | Customer code |
cdCliSolicitor | integer | Order requester code |
flsituacao | smallint | Order status: 0-Open; 1-Completed; 2-Canceled; |
dtPrevIni | datetime | Expected start date |
dtPrevEnd | datetime | Expected end date |
cdOpCancel | integer | Operator responsible for canceling the order |
dtCancel | datetime | Cancellation date |
cdCancelReason | integer | Cancellation reason code, returned by the sgrListCancelReason method |
dsObs | varchar[4000] | Free field for order comments |
cdOp | integer | Code of the operator responsible for the last change to the order |
products | object | Contains the attributes shown in the item OrderProduct. |