All URIs are relative to https://demo.channelengine.net/api
Method | HTTP request | Description |
---|---|---|
orderCreate | POST /v2/orders | Create a new order in ChannelEngine. |
orderCreate_0 | POST /v2/orders/acknowledge | Acknowledge an order. By acknowledging the order the merchant can confirm that the order has been imported. When acknowledging an order the merchant has to supply references that uniquely identify the order and the order lines. These references will be used in the other API calls. |
orderGet | GET /v2/orders/{merchantReference} | |
orderGetNew | GET /v2/orders/new | Fetch newly placed orders (order with status NEW). |
\Swagger\Client\Model\OrderViewModel orderCreate($model)
Create a new order in ChannelEngine.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OrderApi();
$model = new \Swagger\Client\Model\CreateOrderViewModel(); // \Swagger\Client\Model\CreateOrderViewModel |
try {
$result = $api_instance->orderCreate($model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderApi->orderCreate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
model | \Swagger\Client\Model\CreateOrderViewModel |
\Swagger\Client\Model\OrderViewModel
No authorization required
- Content-Type: application/json, text/json, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\OrderViewModel orderCreate_0($model)
Acknowledge an order. By acknowledging the order the merchant can confirm that the order has been imported. When acknowledging an order the merchant has to supply references that uniquely identify the order and the order lines. These references will be used in the other API calls.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OrderApi();
$model = new \Swagger\Client\Model\OrderAcknowledgementViewModel(); // \Swagger\Client\Model\OrderAcknowledgementViewModel | Relations between the id's returned by ChannelEngine and the references which the merchant uses
try {
$result = $api_instance->orderCreate_0($model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderApi->orderCreate_0: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
model | \Swagger\Client\Model\OrderAcknowledgementViewModel | Relations between the id's returned by ChannelEngine and the references which the merchant uses |
\Swagger\Client\Model\OrderViewModel
No authorization required
- Content-Type: application/json, text/json, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\OrderViewModel orderGet($merchant_reference)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OrderApi();
$merchant_reference = "merchant_reference_example"; // string |
try {
$result = $api_instance->orderGet($merchant_reference);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderApi->orderGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
merchant_reference | string |
\Swagger\Client\Model\OrderViewModel
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\OrderViewModel[] orderGetNew()
Fetch newly placed orders (order with status NEW).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OrderApi();
try {
$result = $api_instance->orderGetNew();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrderApi->orderGetNew: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\OrderViewModel[]
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]