POST
/
addLearningRule
addLearningRule
curl --request POST \
  --url https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceNumber": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "extractDescription": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "learningSettings": {
    "OverideInvoiceClassification": "<string>",
    "CustomizeInvoiceRule": "<string>"
  },
  "supplierName": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "customerName": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "taxNumber": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "invoiceTotal": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "locale": {
    "value": 123,
    "specified": true
  },
  "aitask": {
    "value": 123,
    "specified": true
  },
  "workflow": {
    "value": "<string>",
    "specified": true
  },
  "docSubType": {
    "type": 0,
    "keyword": "<string>",
    "position": 0
  },
  "Hint": "<string>",
  "isSet": true,
  "extra_keywords": {
    "name": "<string>",
    "custom_name": "<string>",
    "custom_operator": "<string>",
    "custom_hint": "<string>",
    "keywords": "<any>",
    "weight": 123,
    "exclusive": true,
    "position": 123,
    "create": true,
    "type": 123
  }
}'
{
  "invoice_id": 123,
  "message": "<string>",
  "status": 0
}

Query Parameters

APIKey
string
required
invoiceid
integer
required

Body

invoiceNumber
object
extractDescription
object
learningSettings
object
supplierName
object
customerName
object
taxNumber
object
invoiceTotal
object
locale
object
aitask
object
workflow
object
docSubType
object
Hint
string
isSet
boolean
extra_keywords
object

Response

Success

invoice_id
integer
message
string
status
enum<integer>

Enum values

Available options:
0,
1,
2,
3