All URIs are relative to https://secure.ultracart.com/rest/v2
Method | HTTP request | Description |
---|---|---|
acknowledgeOrders | PUT /fulfillment/distribution_centers/{distribution_center_code}/acknowledgements | Acknowledge receipt of orders. |
generatePackingSlip | GET /fulfillment/distribution_centers/{distribution_center_code}/orders/{order_id} | Generate a packing slip for this order for the given distribution center. |
getDistributionCenterOrders | GET /fulfillment/distribution_centers/{distribution_center_code}/orders | Retrieve orders queued up for this distribution center. |
getDistributionCenters | GET /fulfillment/distribution_centers | Retrieve distribution centers |
shipOrders | POST /fulfillment/distribution_centers/{distribution_center_code}/shipments | Mark orders as shipped |
updateInventory | POST /fulfillment/distribution_centers/{distribution_center_code}/inventory | Update inventory |
acknowledgeOrders($distribution_center_code, $order_ids)
Acknowledge receipt of orders.
Acknowledge receipt of orders so that they are removed from the fulfillment queue. This method must be called after receiving and order (via webhook) or retrieving (via retrieve orders method).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
$distribution_center_code = "distribution_center_code_example"; // string | Distribution center code
$order_ids = array(new \ultracart\v2\models\string[]()); // string[] | Orders to acknowledge receipt of (limit 100)
try {
$apiInstance->acknowledgeOrders($distribution_center_code, $order_ids);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->acknowledgeOrders: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
distribution_center_code | string | Distribution center code | |
order_ids | string[] | Orders to acknowledge receipt of (limit 100) |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\OrdersResponse generatePackingSlip($distribution_center_code, $order_id)
Generate a packing slip for this order for the given distribution center.
The packing slip PDF that is returned is base 64 encoded
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
$distribution_center_code = "distribution_center_code_example"; // string | Distribution center code
$order_id = "order_id_example"; // string | Order ID
try {
$result = $apiInstance->generatePackingSlip($distribution_center_code, $order_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->generatePackingSlip: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
distribution_center_code | string | Distribution center code | |
order_id | string | Order ID |
\ultracart\v2\models\OrdersResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\OrdersResponse getDistributionCenterOrders($distribution_center_code)
Retrieve orders queued up for this distribution center.
Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
$distribution_center_code = "distribution_center_code_example"; // string | Distribution center code
try {
$result = $apiInstance->getDistributionCenterOrders($distribution_center_code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->getDistributionCenterOrders: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
distribution_center_code | string | Distribution center code |
\ultracart\v2\models\OrdersResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\ultracart\v2\models\DistributionCentersResponse getDistributionCenters()
Retrieve distribution centers
Retrieves the distribution centers that this user has access to.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
try {
$result = $apiInstance->getDistributionCenters();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->getDistributionCenters: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\ultracart\v2\models\DistributionCentersResponse
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
shipOrders($distribution_center_code, $shipments)
Mark orders as shipped
Store the tracking information and mark the order shipped for this distribution center.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
$distribution_center_code = "distribution_center_code_example"; // string | Distribution center code
$shipments = array(new \ultracart\v2\models\FulfillmentShipment()); // \ultracart\v2\models\FulfillmentShipment[] | Orders to mark shipped
try {
$apiInstance->shipOrders($distribution_center_code, $shipments);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->shipOrders: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
distribution_center_code | string | Distribution center code | |
shipments | \ultracart\v2\models\FulfillmentShipment[] | Orders to mark shipped |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateInventory($distribution_center_code, $inventories)
Update inventory
Update the inventory for items associated with this distribution center
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
$simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00';
$api_instance = ultracart\v2\api\FulfillmentApi::usingApiKey($simple_key);
$distribution_center_code = "distribution_center_code_example"; // string | Distribution center code
$inventories = array(new \ultracart\v2\models\FulfillmentInventory()); // \ultracart\v2\models\FulfillmentInventory[] | Inventory updates (limit 500)
try {
$apiInstance->updateInventory($distribution_center_code, $inventories);
} catch (Exception $e) {
echo 'Exception when calling FulfillmentApi->updateInventory: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
distribution_center_code | string | Distribution center code | |
inventories | \ultracart\v2\models\FulfillmentInventory[] | Inventory updates (limit 500) |
void (empty response body)
ultraCartOauth, ultraCartSimpleApiKey
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]