Skip to content

upowl/ia_prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

IA INTEGRATION API

DIMENSIONS:

Category

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"
]

Family

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"
]

Grid

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"
]

Group

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"
]

Patterning

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"
]

Product

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"
]

Store

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"
]

Subgroup

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"
]

Genre

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"
]

Salesman

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"
]

Collection

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"
]

TIMESERIES:

Sales

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!"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published