承接 acut-fulfillment/wms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

acut-fulfillment/wms

最新稳定版本:v1.0.0

Composer 安装命令:

composer require acut-fulfillment/wms

包简介

Official acut fulfillment WMS PHP-SDK

README 文档

README

This is the offical PHP-SDK for connecting to the acut fulfillment WMS API.

MIT License

Prerequisites

  • PHP >= 8.1
  • Valid API-Key for the acut fulfillment WMS
  • Valid useraccount for the acut fulfillment Client Dashboard

Installation

The recommended way to install this SDK is through composer.

composer require acut-fulfillment/wms

Getting started

The following code is all you need to get all your orders paginated.

require 'vendor/autoload.php';

$wms = new AcutFulfillment\Wms\Wms(
    apiKey: 'YOUR_API_KEY',
    user: 'YOUR_USERNAME',
    password: 'YOUR_PASSWORD'
);

$req = $wms->getOrders();

if ($req->failed()) {
    echo "Request failed with status {$req->getStatus()} and message {$req->getMessage()}";
} else {
    $orders = $req->getResponse();

    foreach ($orders['data'] as $order) {
        // ...
    }
}

If you want to use query parameters like page oder page_size you can do it as follows

$req = $wms->getOrders([
    'current_status' => 1, // returns only open orders
    'page' => 1, // returns the first page
    'page_size' => 10 // returns max. 10 entries per page
]);

Functions and params

Entity Method Function and params Description
Orders GET getOrders(array $params = []) Get paginated orders
Orders GET getOrderById(int $id) Get a single order by its id
Orders GET getOrderByExtId(string $extId) Get a single orders by its external id
Orders PUT cancelOrderById(int $id) Cancel order by its id
Orders POST createOrder(array $data) Create an order (see example)
Items GET getItems(array $params = []) Get paginated items
Items GET getItemById(int $id) Get a single item by its id
Items GET getItemByBarcode(string $barcode) Get a single item by one of its barcodes (can have several)

Swagger documentation

You can find the swagger documentation here

Support

For support, send an email to dominic@acut-fulfillment.de

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-16