Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting APIML API
Data API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging APIReporting APIML API
Data API
  1. ML API
  • Introduction
  • Sendings
    • Deprecated
      • Predict Sending KPI v1
      • Explain Sending KPI Prediction v1
      • Predict Sending KPI In Date Range v1
      • Explain Sending Text KPI Prediction v1
    • Predict Sending Text Popularity
      POST
    • Explain Sending Text Popularity Prediction
      POST
    • Predict Sending Time Series Popularity
      POST
    • Explain Sending Time Series Popularity Prediction
      POST
    • Predict Sending Popularity
      POST
    • Predict Bulk Sending Popularity
      POST
    • Explain Sending Popularity Prediction
      POST
    • Recommend sending time
      POST
  • Detect receipt fraud
    POST
  • Predict item classes
    POST
  • Generate Image
    POST
  • Generate Image Caption
    POST
  • Generate Text
    POST
  • Generate Sending Text
    POST
  1. ML API

Predict item classes

POST
https://api.mpc.dev.placewise.com/v1/ml/receipt/predict_item_classes
API Permit:ML:Receipt:DetectFraud:Post
API Context:Loyalty Club
Authorizations:UserToken
Classify each item from receipt as one of:
1 - food
2 - clothes, sports
3 - footwear, shoes, boots
4 - bags, jewellery, accessories
5 - household items, furniture, engineering, gardening, outdoors, pets
6 - health, pharmaceuticals, beauty, cosmetics
7 - electronics, computers
8 - culture, books, stationery, paper, drawing supplies
9 - children, toys, games
10 - other

Example#

When successful, returns:
{
    'predictions': [1, 8, 1]
}

Request

Header Params

Body Params application/json

Example
{
    "items": [
        "string"
    ],
    "store_name": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C#
Ruby
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mpc.dev.placewise.com/v1/ml/receipt/predict_item_classes' \
--header 'X-User-Agent: ApiDog' \
--header 'X-Product-Name: default' \
--header 'X-Loyalty-Club-Slug: infinity-mall' \
--header 'X-Customer: 447' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "items": [
        "string"
    ],
    "store_name": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "predictions": [
        0
    ]
}
Previous
Detect receipt fraud
Next
Generate Image
Built with