Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
140 lines (94 loc) · 4.38 KB

File metadata and controls

140 lines (94 loc) · 4.38 KB

Swagger\Client\BackOrderApi

All URIs are relative to https://demo.channelengine.net/api

Method HTTP request Description
backOrderCreate POST /v2/backorders Mark (part of) an order as in backorder.
backOrderGet GET /v2/backorders/{merchantReference} Retrieve a backorder by its reference. A back order references the order which is temporarly out of stock.
backOrderIndex GET /v2/backorders Gets all backorders created since the supplied date.

backOrderCreate

\Swagger\Client\Model\BackOrderViewModel backOrderCreate($back_order)

Mark (part of) an order as in backorder.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BackOrderApi();
$back_order = new \Swagger\Client\Model\BackOrderViewModel(); // \Swagger\Client\Model\BackOrderViewModel | 

try {
    $result = $api_instance->backOrderCreate($back_order);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackOrderApi->backOrderCreate: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
back_order \Swagger\Client\Model\BackOrderViewModel

Return type

\Swagger\Client\Model\BackOrderViewModel

Authorization

No authorization required

HTTP request headers

  • 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]

backOrderGet

\Swagger\Client\Model\BackOrderViewModel backOrderGet($merchant_reference)

Retrieve a backorder by its reference. A back order references the order which is temporarly out of stock.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BackOrderApi();
$merchant_reference = "merchant_reference_example"; // string | The unique backorder reference supplied by the merchant

try {
    $result = $api_instance->backOrderGet($merchant_reference);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackOrderApi->backOrderGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
merchant_reference string The unique backorder reference supplied by the merchant

Return type

\Swagger\Client\Model\BackOrderViewModel

Authorization

No authorization required

HTTP request headers

  • 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]

backOrderIndex

\Swagger\Client\Model\BackOrderViewModel[] backOrderIndex($created_since)

Gets all backorders created since the supplied date.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BackOrderApi();
$created_since = new \DateTime(); // \DateTime | 

try {
    $result = $api_instance->backOrderIndex($created_since);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackOrderApi->backOrderIndex: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
created_since \DateTime

Return type

\Swagger\Client\Model\BackOrderViewModel[]

Authorization

No authorization required

HTTP request headers

  • 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]