SDK for the Boxture API v2

0.1.0 2019-06-04 13:13 UTC

This package is auto-updated.

Last update: 2024-07-05 00:12:42 UTC



Detailed documentation and test tool for the Boxture API v2

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Package version: 0.1.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen


PHP 5.5 and later

Installation & Usage


To install the bindings via Composer, add the following to composer.json:

  "repositories": [
      "type": "vcs",
      "url": ""
  "require": {
    "yogarine/boxture-v2-sdk-php": "*@dev"

Then run composer install

Manual Installation

Download the files and include autoload.php:



To run the unit tests:

composer install

Getting Started

Please follow the installation procedure and then run the following:

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

// Configure API key authorization: api_key
$config = Boxture\V2\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Boxture\V2\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Boxture\V2\Api\HandlingUnitsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
$search = 'search_example'; // string | 
$orderField = 'orderField_example'; // string | Exact field name you want to sort the output by
$orderDirection = 'asc'; // string | Sort direction
$page = 1; // int | Page number
$pageSize = 25; // int | Max number of results per page

try {
    $result = $apiInstance->getHandlingUnits($search, $orderField, $orderDirection, $page, $pageSize);
} catch (Exception $e) {
    echo 'Exception when calling HandlingUnitsApi->getHandlingUnits: ', $e->getMessage(), PHP_EOL;


Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
HandlingUnitsApi getHandlingUnits GET /handling_units List handling units
ShipmentsApi getShipments GET /shipments List shipments
ShipmentsApi getShipmentsId GET /shipments/{id}
ShipmentsApi patchShipmentsId PATCH /shipments/{id}
ShipmentsApi postShipments POST /shipments Shipment quote
ShipmentsApi postShipmentsIdAccept POST /shipments/{id}/accept Shipment accept
ShipmentsApi postShipmentsIdAssign POST /shipments/{id}/assign Shipment assign
ShipmentsApi postShipmentsIdCancel POST /shipments/{id}/cancel Shipment cancel
ShipmentsApi postShipmentsIdDropoff POST /shipments/{id}/dropoff Shipment dropoff
ShipmentsApi postShipmentsIdPickup POST /shipments/{id}/pickup Shipment pickup
ShipmentsApi postShipmentsIdPurchase POST /shipments/{id}/purchase Shipment purchase
ShipmentsApi postShipmentsIdReplan POST /shipments/{id}/replan Shipment replan

Documentation For Models

Documentation For Authorization


  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header