Amili Docs
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
  • Pay
Go to amili.no
Home
Products
Products
  • Debt.collection
  • Account Receivable
  • Distribution
  • Pay
Go to amili.no
  1. Product lines classification
  • AmiliPay API Introduction
  • Industry Categories Reference
  • Webhooks Reference
  • Merchant
    • List all customers
      GET
    • Create customer
      POST
    • Retrieve customer
      GET
    • Update customer
      PUT
    • Create customer token
      POST
    • Retrieve pricing for a merchant
      GET
    • Update pricing for a merchant
      POST
    • List a customer's accepted agreements
      GET
  • User
    • List all users
      GET
    • Create user
      POST
    • Retrieve user
      GET
    • Update user
      PUT
    • Delete user
      DELETE
  • Onboarding
    • Create onboarding application
      POST
    • Retrieve onboarding application
      GET
    • Update onboarding application
      PUT
    • Delete onboarding application
      DELETE
    • Start processing onboarding
      POST
    • Delete onboarding shareholder
      DELETE
    • Create onboarding document
      POST
    • Retrieve onboarding document
      GET
    • Delete onboarding document
      DELETE
    • Retrieve available account agreements
      GET
    • Create onboarding agreement
      POST
    • Mark selected agreement as an accepted by the account
      POST
    • Retrieve a single agreement
      GET
    • Update onboarding agreement
      PUT
    • Deactivate agreement
      DELETE
  • Invoice
    • List all invoices
    • Create invoice
    • Retrieve invoice
    • Update invoice
    • Delete invoice
    • Refund invoice
  • Transactions
    • Get invoice transactions
  • Payout
    • List all payouts
    • Retrieve payout
    • Retrieve payout details
  • Product lines classification
    • Upload a CSV file
      POST
    • Manually get processed CSV file path
      POST
    • Download a previously uploaded CSV file
      GET
  1. Product lines classification

Upload a CSV file

POST
/v1/pcm/classify
Uploads a CSV file and returns a path you can use with POST /pcm/classify/result to retrieve it again. Product-line classification is not currently available. Accepts either this JSON body (csv as base64) or a multipart/form-data request with a csv file field (must end in .csv) and a language form field - both are handled by the same endpoint.

Request

Authorization
API Key
Add parameter in header
X-API-KEY
Example:
X-API-KEY: ********************
or
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params
application/json

Examples

Responses

🟢202
application/json
Accepted
Bodyapplication/json

🟠400
🟠401
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/pcm/classify' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "csv": "V2UtdmliZSBpY29uaWMgdG95ClBvcm5odWIgbWVtYmVyc2hpcApEZXZpbCBzbW9rZQpaYXJhIHBhbnRzClQtU2hpcnQgSCZNCk1pbGsgM2wKQ29jYS1Db2xhCg==",
    "language": "en"
}'
Response Response Example
202 - response
{
    "message": "Accepted",
    "data": {
        "path": "csvs/Ra8QH49Jv0XDDZniVaeFNBg95U6x5e.csv"
    }
}
Modified at 2026-09-25 07:15:05
Previous
Retrieve payout details
Next
Manually get processed CSV file path
Built with