Cdi api

General notes

Api is available at https://cloud.miniorders.com/partner-api/v1 under this conditions:

  • API always return JSON
  • content_type = application/json
  • authorization using HMAC
  • every right answer contains {“status”: “ok”}

Standard answers

Confirmation

{ “status”: “ok” } * always HTTP STATUS equals 200 * field status = “ok”

Error

{ “status”: “error”, “error”: “AccessDenied” } * error always has HTTP STATUS different than 200 (400,401,403,404,500) * it’s field status = “error” * error field can have additional parameter

Calculating a control sum of HMAC for GET and DELETE

X-hmac = hash_hmac(‘SHA1’ ,PUBLIC+REQUEST_PATH+HTTP_PARAMS, PRIVATE)

Calculating a control sum of HMAC for POST and PUT

X-hmac = hash_hmac(‘SHA1’, PUBLIC+REQUEST_PATH+HTTP_POST_JSON_BODY, PRIVATE)

API detail

Dictionary

Dictionary: Languages

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/language"
GET /partner-api/v1/language HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "name": "English"
        },
        {
            "id": 2,
            "name": "Polski"
        },
        {
            "id": 13,
            "name": "Japan"
        }
    ]
}

Dictionary: Currency

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/currency"
GET /partner-api/v1/currency HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "name": "USD",
            "short": "$",
            "direction": false
        },
        {
            "id": 2,
            "name": "PLN",
            "short": "zł",
            "direction": true
        },
        {
            "id": 3,
            "name": "EUR",
            "short": "€",
            "direction": false
        },
        {
            "id": 4,
            "name": "AED",
            "short": "د.إ",
            "direction": false
        },
        {
            "id": 5,
            "name": "RUB",
            "short": "₽",
            "direction": false
        },
        {
            "id": 6,
            "name": "CZK",
            "short": "Kč",
            "direction": true
        },
        {
            "id": 7,
            "name": "WON",
            "short": "₩",
            "direction": true
        },
        {
            "id": 8,
            "name": "CAD",
            "short": "$",
            "direction": false
        },
        {
            "id": 9,
            "name": "AUD",
            "short": "$",
            "direction": false
        },
        {
            "id": 10,
            "name": "SEK",
            "short": "kr",
            "direction": true
        },
        {
            "id": 11,
            "name": "BRL",
            "short": "R$",
            "direction": false
        },
        {
            "id": 12,
            "name": "MAD",
            "short": "د.م.",
            "direction": false
        },
        {
            "id": 13,
            "name": "ZAR",
            "short": "R ",
            "direction": false
        },
        {
            "id": 14,
            "name": "JPY",
            "short": "¥",
            "direction": false
        }
    ]
}

Dictionary: Country

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/country"
GET /partner-api/v1/country HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "name": "Afghanistan"
        },
        {
            "id": 2,
            "name": "Albania"
        },
        {
            "id": 264,
            "name": "Poland"
        }
    ]
}

Dictionary: Product template

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/product-template"
GET /partner-api/v1/product-template HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "name": "pizza"
        },
        {
            "id": 2,
            "name": "sushi"
        },
        {
            "id": 3,
            "name": "burgers"
        },
        {
            "id": 4,
            "name": "meal"
        },
        {
            "id": 5,
            "name": "bakeries"
        },
        {
            "id": 6,
            "name": "milk"
        },
        {
            "id": 7,
            "name": "vegetables"
        }
    ]
}

User

User: Get

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}"
GET /partner-api/v1/user/%7Bid%7D HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 113,
        "name": "test1@example.com",
        "email": "test1@example.com",
        "language": 1,
        "timezone": "Europe/Warsaw",
        "status": true,
        "added": "2020-08-07 08:00:20",
        "lastLogin": null,
        "companies": [
            {
                "id": 150,
                "user_id": 113,
                "name": "test company",
                "added": "2020-08-10 11:31:30",
                "email": "test1@example.com",
                "language": 1,
                "maxProducts": 10,
                "maxOrders": 500,
                "products": 1,
                "orders": 0,
                "ordersValuation": 0,
                "adminBlock": false
            }
        ]
    }
}

User: Add

curl -X POST -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
	"email": "test2@example.com",
	"password": "password123",
	"language": 1,
	"timezone": "Europe/Warsaw"
}' "https://cloud.miniorders.com/partner-api/v1/user"
POST /partner-api/v1/user HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
	"email": "test2@example.com",
	"password": "password123",
	"language": 1,
	"timezone": "Europe/Warsaw"
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 114,
        "name": "test2@example.com",
        "email": "test2@example.com",
        "language": 1,
        "timezone": "Europe/Warsaw",
        "admin": false
    }
}

User: Status

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "status": true
}' "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/status"
PUT /partner-api/v1/user/%7Bid%7D/status HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "status": true
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 114,
        "name": "test2@example.com",
        "email": "test2@example.com",
        "language": 1,
        "timezone": "Europe/Warsaw",
        "status": true
    }
}

User: Change password

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "password": "password123"
}' "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/password"
PUT /partner-api/v1/user/%7Bid%7D/password HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "password": "password123"
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 114,
        "name": "test2@example.com",
        "email": "test2@example.com",
        "language": 1,
        "timezone": "Europe/Warsaw",
        "admin": false
    }
}

User: Remove

curl -X DELETE -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}"
DELETE /partner-api/v1/user/%7Bid%7D HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok"
}

User: Sign in

curl -X POST -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "email": "test@example.com"
}' "https://cloud.miniorders.com/partner-api/v1/user/login-email"
POST /partner-api/v1/user/login-email HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "email": "test@example.com"
}
Status200 OK
{
    "status": "ok",
    "data": {
        "hash": "r2ff804l8azfke1mboayg3re1jskou1a",
        "url": "https://cloud.miniorders.com/login-otp/r2ff804l8azfke1mboayg3re1jskou1a"
    }
}

User: Back btn

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
"email": "test@example.com"
}' "https://cloud.cdi.to/partner-api/v1/user/{id}/back-btn"
PUT https://cloud.cdi.to/partner-api/v1/user/{id}/back-btn HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "backBtnTop": true,
    "backBtnFooter": true,
    "backBtn": "https://example.com",
    "backBtnTxt": "Optional text"
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 1,
        "name": "admin@example.com",
        "email": "admin@example.com",
        "language": 1,
        "timezone": "Europe/Berlin",
        "status": true,
        "added": "2023-03-14 10:59:56",
        "lastLogin": "2023-03-14 11:29:04",
        "backBtnTop": true,
        "backBtnFooter": true,
        "backBtn": "https://onet.pl",
        "backBtnTxt": "Optional text"
    }
}

User: Allow add company

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
"email": "test@example.com"
}' "https://cloud.cdi.to/partner-api/v1/user/{id}/allow-add-company"
PUT https://cloud.cdi.to/partner-api/v1/user/{id}/allow-add-company HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "allowAddCompany": false
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 1,
        "name": "admin@example.com",
        "email": "admin@example.com",
        "language": 1,
        "timezone": "Europe/Berlin",
        "status": true,
        "added": "2023-03-15 09:24:12",
        "lastLogin": "2023-03-16 09:07:09",
        "allowAddCompany": false,
        "backBtnTop": false,
        "backBtnFooter": false,
        "backBtn": null,
        "backBtnTxt": null
    }
}

User: Logo upload

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.cdi.to/partner-api/v1/user/{id}/upload-logo"
PUT https://cloud.cdi.to/partner-api/v1/user/{id}/upload-logo HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

Upload file as post field “logo” value
Status200 OK
{
    "status": "ok",
    "data": {
        "file": "/img/logo/52281c319d701aaaa74f83c413960e3a.png"
    }
}

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
"logoWhite": "https://cloud.ord.to/logo/en/black.png",
"logoBlack": "https://cloud.ord.to/logo/en/black.png"
}' "https://cloud.cdi.to/partner-api/v1/user/{id}/logo"
PUT https://cloud.cdi.to/partner-api/v1/user/{id}/logo HTTP/1.1
Host: cloud.acq.to
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "logoWhite": "https://cloud.ord.to/logo/en/black.png",
    "logoBlack": "https://cloud.ord.to/logo/en/black.png"
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 1,
        "name": "admin@example.com",
        "email": "admin@example.com",
        "language": 1,
        "timezone": "Europe/Berlin",
        "status": true,
        "added": "2023-03-15 09:24:12",
        "lastLogin": "2023-03-16 09:07:09",
        "allowAddCompany": false,
        "backBtnTop": false,
        "backBtnFooter": false,
        "backBtn": null,
        "backBtnTxt": null,
        "logoWhite": "/img/logo/045976e982f1dbe4ec2d5e54e7831d05.png",
        "logoBlack": "/img/logo/6c3898c9171df21a6221e7dd76f60cce.png"
    }
}

User: Billing tab

showBilling values
1 - Inherit from global value
2 - On
3 - Off

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "showBilling": 1
}' "https://cloud.cdi.to/partner-api/v1/user/{id}/billing-tab"
PUT https://cloud.cdi.to/partner-api/v1/user/{id}/billing-tab HTTP/1.1
Host: cloud.acq.to
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "showBilling": 1
}
Status200 OK
{
"status": "ok",
"data": {
        "id": 1,
        "name": "admin@example.com",
        "email": "admin@example.com",
        "language": 2,
        "timezone": "Europe/Warsaw",
        "status": true,
        "added": "2021-09-17 05:51:19",
        "lastLogin": "2023-05-12 06:49:08",
        "allowAddCompany": true,
        "backBtnTop": true,
        "backBtnFooter": true,
        "backBtn": "https://example.com",
        "backBtnTxt": "Optional text",
        "logoWhite": "/img/logo/wv5cpedlbl2sbgznk2q1p5dmmrti0y5l.png",
        "logoBlack": "/img/logo/pm7f5bqcycnxq3b3dcxsigprt42sb9f1.png",
        "showBilling": 1
    }
}

Company

Company: Get

curl -X GET -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/user/{id}/company/{cid}"
GET /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 150,
        "user_id": 113,
        "name": "test company",
        "added": "2020-08-10 11:31:30",
        "email": "test1@example.com",
        "language": 1,
        "maxProducts": 10,
        "maxOrders": 500,
        "products": 1,
        "orders": 0,
        "ordersValuation": 0,
        "adminBlock": false
    }
}

Company: Add

curl -X POST -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "name": "Test",
    "country": 1,
    "currency": 1,
    "subdomain": "a1aba1a112test1234a1",
    "maxProducts": 20,
    "maxOrders": 200,
    "language": 1,
    "email": "test@example.com",
    "description": "description",
    "address": "address",
    "postalCode": "00-000",
    "city": "city",
    "phone": "+48 123 321 123",
    "productTemplate": 1
}' "https://cloud.miniorders.com/partner-api/v1/user/{id}/company"
POST /partner-api/v1/user/%7Bid%7D/company HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "name": "Test",
    "country": 1,
    "currency": 1,
    "subdomain": "a1aba1a112test1234a1",
    "maxProducts": 20,
    "maxOrders": 200,
    "language": 1,
    "email": "test@example.com",
    "description": "description",
    "address": "address",
    "postalCode": "00-000",
    "city": "city",
    "phone": "+48 123 321 123",
    "productTemplate": 1
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 141,
        "name": "Test",
        "email": "test@example.com",
        "language": 1,
        "maxProducts": "20",
        "maxOrders": "200"
    }
}

Company: Limit change

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "maxProducts": 20,
    "maxOrders": 200,
    "userInvitesLimit": 10
}' "https://cloud.miniorders.com/partner-api/v1/user/{id}/company/{cid}/limit"
PUT /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/limit HTTP/1.1
Host: cloud.miniorders.com
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "maxProducts": 20,
    "maxOrders": 200,
    "userInvitesLimit": 10
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 146,
        "name": "Test",
        "email": "test@example.com",
        "language": 1,
        "maxProducts": "20",
        "maxOrders": "200",
        "userInvitesLimit": "10"
    }
}

Company: Block

curl -X PUT -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "adminBlock": true
}' "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/admin-block"
PUT /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/admin-block HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "adminBlock": true
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 146,
        "user_id": 114,
        "name": "Test",
        "email": "test@example.com",
        "language": 1,
        "maxProducts": 20,
        "maxOrders": 200,
        "adminBlock": true
    }
}

Company: Payment types

curl -X GET -H "X-hmac: skip" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "https://cloud.miniorders.com/partner-api/v1/user/{id}/company/{cid}/payment-type"
GET /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/payment-type HTTP/1.1
Host: cloud.miniorders.com
X-hmac: skip
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 5,
            "name": "Cash on delivery"
        },
        {
            "id": 7,
            "name": "Card on delivery"
        }
    ]
}

Company: Products

curl -X GET -H "X-hmac: skip" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/products"
GET /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/products HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: skip
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 190,
            "name": "Pepperoni Pizza",
            "price": 100,
            "currency": {
                "id": 1,
                "name": "USD",
                "short": "$",
                "direction": false
            },
            "forSell": true,
            "tags": [
                {
                    "id": 83,
                    "name": "test1"
                },
                {
                    "id": 84,
                    "name": "test222"
                }
            ],
            "additions": [
                {
                    "id": 60,
                    "name": "Extra mozarella"
                },
                {
                    "id": 61,
                    "name": "Extra tomato sauce"
                }
            ],
            "priceOptions": [
                {
                    "id": 21,
                    "name": "test11",
                    "price": "100.00",
                    "main": true
                },
                {
                    "id": 22,
                    "name": "test22",
                    "price": "150.00",
                    "main": false
                }
            ]
        }
    ]
}

Company: Members

curl -X GET -H "X-hmac: skip" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/members"
GET /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/members HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: skip
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "email": "test@test.com",
            "limited": true,
            "status": 2,
            "username": "test",
            "firstname": null,
            "lastname": null
        },
        {
            "id": 2,
            "email": "test@test.com",
            "limited": false,
            "status": 1,
            "username": "test2",
            "firstname": null,
            "lastname": null
        }
    ]
}

Company: Order types

curl -X GET -H "X-hmac: skip" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/order-type"
GET /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/order-type HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: skip
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
Hostcloud.miniordersss.com:8000
DateTue, 01 Sep 2020 09:45:53 GMT
DateTue, 01 Sep 2020 09:45:53 GMT
Connectionclose
X-Powered-ByPHP/7.2.22
Cache-Controlno-cache
Content-Typeapplication/json
X-Debug-Token42a0b9
X-Debug-Token-Linkhttp://cloud.miniordersss.com:8000/_profiler/42a0b9
{
    "status": "ok",
    "data": [
        {
            "id": 1,
            "name": "Delivery"
        },
        {
            "id": 2,
            "name": "Personal pickup"
        }
    ]
}

Company: Add order

curl -X POST -H "X-hmac: skip" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" -d '{
    "orderType": 1,
    "paymentType": 5,
    "street": "Testowa",
    "hn": "24",
    "fn": "11",
    "postalCode": "10-687",
    "city": "Olsztyn",
    "phone": "+48111111111",
    "email": "test@example.com",
    "products": [
        {
            "product": 190,
            "qt": 2,
            "tagId": 83,
            "additions": [61],
            "priceOption": 22
        }
    ]
}' "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/order/add"
POST /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/order/add HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: skip
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json

{
    "orderType": 1,
    "paymentType": 5,
    "street": "Testowa",
    "hn": "24",
    "fn": "11",
    "postalCode": "10-687",
    "city": "Olsztyn",
    "phone": "+48111111111",
    "email": "test@example.com",
    "products": [
        {
            "product": 190,
            "qt": 2,
            "tagId": 83,
            "additions": [61],
            "priceOption": 22
        }
    ]
}
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 406,
        "number_raw": 13,
        "number": "00013",
        "created_at": "2020-09-01T09:58:28+0000",
        "status": 1,
        "payment_type": 5,
        "payment_status": 6,
        "type": 1,
        "order_date": "2020-08-31T22:00:00+0000",
        "order_start_date": null,
        "email": "test@example.com",
        "company_name": null,
        "first_name": "Klient 206",
        "last_name": null,
        "phone": "+48111111111",
        "street": "Testowa",
        "hn": "24",
        "fn": "11",
        "postal_code": "10-687",
        "city": "Olsztyn",
        "shipment_company_name": null,
        "shipment_first_name": "Klient 206",
        "shipment_last_name": null,
        "shipment_phone": "+48111111111",
        "shipment_street": "Testowa",
        "shipment_hn": "24",
        "shipment_fn": "11",
        "shipment_postal_code": "10-687",
        "shipment_city": "Olsztyn",
        "price": 304,
        "shippment_price": 0,
        "currency": {
            "id": 1,
            "name": "USD",
            "short": "$",
            "direction": false
        },
        "products": [
            {
                "product_id": 190,
                "name": "Pepperoni Pizza",
                "price": 152,
                "quantity": 2,
                "currency": {
                    "id": 1,
                    "name": "USD",
                    "short": "$",
                    "direction": false
                },
                "additions": [
                    {
                        "product_id": 172,
                        "name": "Extra tomato sauce",
                        "price": 2
                    }
                ]
            }
        ],
        "notes": null,
        "delivery_data": null,
        "table_number": null,
        "pickup_code": "SMBL39HK",
        "lat": 53.778422,
        "lng": 20.4801192
    }
}

Company: Remove member

curl -X DELETE -H "X-hmac: calculated_hmac" -H "X-public: yybt8br6t20flh51hrjbzywcqj6swel3" -H "Content-type: application/json" "http://cloud.miniordersss.com:8000/partner-api/v1/user/{id}/company/{cid}/member/{mid}/remove"
DELETE /partner-api/v1/user/%7Bid%7D/company/%7Bcid%7D/member/%7Bmid%7D/remove HTTP/1.1
Host: cloud.miniordersss.com:8000
X-hmac: calculated_hmac
X-public: yybt8br6t20flh51hrjbzywcqj6swel3
Content-type: application/json
Status200 OK
{
    "status": "ok",
    "data": {
        "id": 141,
        "name": "Test",
        "email": "test@example.com",
        "language": 1,
        "maxProducts": "20",
        "maxOrders": "200"
    }
}