sale.order.get
Scope: catalog Permissions to execute: for all
sale.order.get(id)
The method accesses fields of an order and binded entities.
When successful, returns order resource in response body.
Parameters
Parameter | Type | Description |
---|---|---|
Id | string | Order number. |
Examples
BX24.callMethod( 'sale.order.get', { id: id }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
Example for REST query from PL/SQL
For getting a single order
- 1) POST method;
- 2) URL: <сайт>/rest/1/
/sale.order.get; - 3) Message body: {id:47010} where 47010 order number;
- 4) Server response gets information about order in JSON format.
© «Bitrix24», 2001-2024