Request:
POST /v2/api/category HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Category name"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Category name"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Category name"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/family HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/grid HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/group HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/patterning HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/product HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/store HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/subgroup HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/genre HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/salesman HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/collection HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
[
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
},
{
"company_token": "asdasdasdasd...",
"reference_id": "asdasd-asdasd-asdasd-asdasd",
"description": "Name item"
}
]
Response:
[
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd",
"asdasd-asdasd-asdasd-asdasd"
]
Request:
POST /v2/api/sales HTTP/1.1
Host: <url-api>
Content-Type: application/json
Authorization: Bearer asadasdasd...
cache-control: no-cache
{
"company_token": "asdfasdasdasd...",
"sales": [
{
"time": "2019-01-03T00:00:00.544Z",
"store_id": "asdasd-asdasd-asdasd-asdasd",
"product_id": "asdasd-asdasd-asdasd-asdasd",
"group_id": "asdasd-asdasd-asdasd-asdasd",
"subgroup_id": "asdasd-asdasd-asdasd-asdasd",
"category_id": "asdasd-asdasd-asdasd-asdasd",
"family_id": "asdasd-asdasd-asdasd-asdasd",
"patterning_id": "asdasd-asdasd-asdasd-asdasd",
"grid_id": "asdasd-asdasd-asdasd-asdasd",
"genre_id": "asdasd-asdasd-asdasd-asdasd",
"salesman_id": "asdasd-asdasd-asdasd-asdasd",
"collection_id": "asdasd-asdasd-asdasd-asdasd",
"value_total": 0.0,
"value_liquid": 0.0,
"discount": 0.0,
"impost": 0.0,
"consign_qtd": 0.0,
"quantity": 0.0
}
]
}
Response:
{
"message": "Saved successfully!"
}