You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commerce/order_management/order_management_api.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,29 +9,29 @@ edition: commerce
9
9
10
10
To learn how to manage orders with the REST API, see the [REST API reference](../../api/rest_api/rest_api_reference/rest_api_reference.html#orders).
11
11
12
-
To get orders and manage them, use the `Ibexa\Contracts\OrderManagement\OrderServiceInterface` interface.
12
+
To get orders and manage them, use the [`Ibexa\Contracts\OrderManagement\OrderServiceInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html) interface.
13
13
14
14
## Get single order
15
15
16
16
### Get single order by identifier
17
17
18
-
To access a single order by using its string identifier, use the `OrderService::getOrderByIdentifier` method:
18
+
To access a single order by using its string identifier, use the [`OrderService::getOrderByIdentifier`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_getOrderByIdentifier) method:
To access a single order by using its numerical ID, use the `OrderService::getOrder` method:
26
+
To access a single order by using its numerical ID, use the [`OrderService::getOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_getOrder) method:
To fetch multiple orders, use the `OrderService::findOrders` method.
34
+
To fetch multiple orders, use the [`OrderService::findOrders`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_findOrders) method.
35
35
It follows the same search query pattern as other APIs:
36
36
37
37
```php
@@ -43,7 +43,7 @@ It follows the same search query pattern as other APIs:
43
43
44
44
## Create order
45
45
46
-
To create an order, use the `OrderService::createOrder` method and provide it with the [`Ibexa\Contracts\OrderManagement\Value\Struct\OrderCreateStruct`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Value-Struct-OrderCreateStruct.html) object that contains a list of products, purchased quantities, product, total prices, and tax amounts.
46
+
To create an order, use the [`OrderService::createOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_createOrder) method and provide it with the [`Ibexa\Contracts\OrderManagement\Value\Struct\OrderCreateStruct`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Value-Struct-OrderCreateStruct.html) object that contains a list of products, purchased quantities, product, total prices, and tax amounts.
@@ -53,7 +53,7 @@ To create an order, use the `OrderService::createOrder` method and provide it wi
53
53
54
54
You can update the order after it's created.
55
55
You could do it to support a scenario when, for example, the order is processed manually and its status has to be changed in the system.
56
-
To update order information, use the `OrderService::updateOrder` method:
56
+
To update order information, use the [`OrderService::updateOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_updateOrder) method:
0 commit comments