Api is available at https://cloud.miniorders.com/partner-api/v1 under this conditions:
{ “status”: “ok” } * always HTTP STATUS equals 200 * field status = “ok”
{ “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
X-hmac = hash_hmac(‘SHA1’ ,PUBLIC+REQUEST_PATH+HTTP_PARAMS, PRIVATE)
X-hmac = hash_hmac(‘SHA1’, PUBLIC+REQUEST_PATH+HTTP_POST_JSON_BODY, PRIVATE)
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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"
}
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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"
}
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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"
}
Status | 200 OK |
---|---|
|
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"
}
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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"
}
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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
}
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
Host | cloud.miniordersss.com:8000 |
Date | Tue, 01 Sep 2020 09:45:53 GMT |
Date | Tue, 01 Sep 2020 09:45:53 GMT |
Connection | close |
X-Powered-By | PHP/7.2.22 |
Cache-Control | no-cache |
Content-Type | application/json |
X-Debug-Token | 42a0b9 |
X-Debug-Token-Link | http://cloud.miniordersss.com:8000/_profiler/42a0b9 |
|
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
}
]
}
Status | 200 OK |
---|---|
|
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
Status | 200 OK |
---|---|
|