addLearningRule
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceNumber": {
"keyword": "<string>"
},
"extractDescription": {
"keyword": "<string>"
},
"learningSettings": {
"OverideInvoiceClassification": "<string>",
"CustomizeInvoiceRule": "<string>"
},
"supplierName": {
"keyword": "<string>"
},
"customerName": {
"keyword": "<string>"
},
"taxNumber": {
"keyword": "<string>"
},
"invoiceTotal": {
"keyword": "<string>"
},
"locale": {
"value": 123,
"specified": true
},
"aitask": {
"value": 123,
"specified": true
},
"workflow": {
"value": "<string>",
"specified": true
},
"docSubType": {
"keyword": "<string>"
},
"Hint": "<string>",
"isSet": true,
"extra_keywords": {
"name": "<string>",
"custom_name": "<string>",
"custom_operator": "<string>",
"custom_hint": "<string>",
"keywords": "<string>",
"weight": 123,
"exclusive": true,
"position": 123,
"create": true,
"type": 123
}
}
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule"
payload = {
"invoiceNumber": { "keyword": "<string>" },
"extractDescription": { "keyword": "<string>" },
"learningSettings": {
"OverideInvoiceClassification": "<string>",
"CustomizeInvoiceRule": "<string>"
},
"supplierName": { "keyword": "<string>" },
"customerName": { "keyword": "<string>" },
"taxNumber": { "keyword": "<string>" },
"invoiceTotal": { "keyword": "<string>" },
"locale": {
"value": 123,
"specified": True
},
"aitask": {
"value": 123,
"specified": True
},
"workflow": {
"value": "<string>",
"specified": True
},
"docSubType": { "keyword": "<string>" },
"Hint": "<string>",
"isSet": True,
"extra_keywords": {
"name": "<string>",
"custom_name": "<string>",
"custom_operator": "<string>",
"custom_hint": "<string>",
"keywords": "<string>",
"weight": 123,
"exclusive": True,
"position": 123,
"create": True,
"type": 123
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
invoiceNumber: {keyword: '<string>'},
extractDescription: {keyword: '<string>'},
learningSettings: {OverideInvoiceClassification: '<string>', CustomizeInvoiceRule: '<string>'},
supplierName: {keyword: '<string>'},
customerName: {keyword: '<string>'},
taxNumber: {keyword: '<string>'},
invoiceTotal: {keyword: '<string>'},
locale: {value: 123, specified: true},
aitask: {value: 123, specified: true},
workflow: {value: '<string>', specified: true},
docSubType: {keyword: '<string>'},
Hint: '<string>',
isSet: true,
extra_keywords: {
name: '<string>',
custom_name: '<string>',
custom_operator: '<string>',
custom_hint: '<string>',
keywords: '<string>',
weight: 123,
exclusive: true,
position: 123,
create: true,
type: 123
}
})
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'invoiceNumber' => [
'keyword' => '<string>'
],
'extractDescription' => [
'keyword' => '<string>'
],
'learningSettings' => [
'OverideInvoiceClassification' => '<string>',
'CustomizeInvoiceRule' => '<string>'
],
'supplierName' => [
'keyword' => '<string>'
],
'customerName' => [
'keyword' => '<string>'
],
'taxNumber' => [
'keyword' => '<string>'
],
'invoiceTotal' => [
'keyword' => '<string>'
],
'locale' => [
'value' => 123,
'specified' => true
],
'aitask' => [
'value' => 123,
'specified' => true
],
'workflow' => [
'value' => '<string>',
'specified' => true
],
'docSubType' => [
'keyword' => '<string>'
],
'Hint' => '<string>',
'isSet' => true,
'extra_keywords' => [
'name' => '<string>',
'custom_name' => '<string>',
'custom_operator' => '<string>',
'custom_hint' => '<string>',
'keywords' => '<string>',
'weight' => 123,
'exclusive' => true,
'position' => 123,
'create' => true,
'type' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule"
payload := strings.NewReader("{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"invoice_id": 123,
"message": "<string>"
}EzzyRest
addLearningRule
POST
/
addLearningRule
addLearningRule
curl --request POST \
--url https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceNumber": {
"keyword": "<string>"
},
"extractDescription": {
"keyword": "<string>"
},
"learningSettings": {
"OverideInvoiceClassification": "<string>",
"CustomizeInvoiceRule": "<string>"
},
"supplierName": {
"keyword": "<string>"
},
"customerName": {
"keyword": "<string>"
},
"taxNumber": {
"keyword": "<string>"
},
"invoiceTotal": {
"keyword": "<string>"
},
"locale": {
"value": 123,
"specified": true
},
"aitask": {
"value": 123,
"specified": true
},
"workflow": {
"value": "<string>",
"specified": true
},
"docSubType": {
"keyword": "<string>"
},
"Hint": "<string>",
"isSet": true,
"extra_keywords": {
"name": "<string>",
"custom_name": "<string>",
"custom_operator": "<string>",
"custom_hint": "<string>",
"keywords": "<string>",
"weight": 123,
"exclusive": true,
"position": 123,
"create": true,
"type": 123
}
}
'import requests
url = "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule"
payload = {
"invoiceNumber": { "keyword": "<string>" },
"extractDescription": { "keyword": "<string>" },
"learningSettings": {
"OverideInvoiceClassification": "<string>",
"CustomizeInvoiceRule": "<string>"
},
"supplierName": { "keyword": "<string>" },
"customerName": { "keyword": "<string>" },
"taxNumber": { "keyword": "<string>" },
"invoiceTotal": { "keyword": "<string>" },
"locale": {
"value": 123,
"specified": True
},
"aitask": {
"value": 123,
"specified": True
},
"workflow": {
"value": "<string>",
"specified": True
},
"docSubType": { "keyword": "<string>" },
"Hint": "<string>",
"isSet": True,
"extra_keywords": {
"name": "<string>",
"custom_name": "<string>",
"custom_operator": "<string>",
"custom_hint": "<string>",
"keywords": "<string>",
"weight": 123,
"exclusive": True,
"position": 123,
"create": True,
"type": 123
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
invoiceNumber: {keyword: '<string>'},
extractDescription: {keyword: '<string>'},
learningSettings: {OverideInvoiceClassification: '<string>', CustomizeInvoiceRule: '<string>'},
supplierName: {keyword: '<string>'},
customerName: {keyword: '<string>'},
taxNumber: {keyword: '<string>'},
invoiceTotal: {keyword: '<string>'},
locale: {value: 123, specified: true},
aitask: {value: 123, specified: true},
workflow: {value: '<string>', specified: true},
docSubType: {keyword: '<string>'},
Hint: '<string>',
isSet: true,
extra_keywords: {
name: '<string>',
custom_name: '<string>',
custom_operator: '<string>',
custom_hint: '<string>',
keywords: '<string>',
weight: 123,
exclusive: true,
position: 123,
create: true,
type: 123
}
})
};
fetch('https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'invoiceNumber' => [
'keyword' => '<string>'
],
'extractDescription' => [
'keyword' => '<string>'
],
'learningSettings' => [
'OverideInvoiceClassification' => '<string>',
'CustomizeInvoiceRule' => '<string>'
],
'supplierName' => [
'keyword' => '<string>'
],
'customerName' => [
'keyword' => '<string>'
],
'taxNumber' => [
'keyword' => '<string>'
],
'invoiceTotal' => [
'keyword' => '<string>'
],
'locale' => [
'value' => 123,
'specified' => true
],
'aitask' => [
'value' => 123,
'specified' => true
],
'workflow' => [
'value' => '<string>',
'specified' => true
],
'docSubType' => [
'keyword' => '<string>'
],
'Hint' => '<string>',
'isSet' => true,
'extra_keywords' => [
'name' => '<string>',
'custom_name' => '<string>',
'custom_operator' => '<string>',
'custom_hint' => '<string>',
'keywords' => '<string>',
'weight' => 123,
'exclusive' => true,
'position' => 123,
'create' => true,
'type' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule"
payload := strings.NewReader("{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.ezzydoc.com/EzzyService.svc/Rest/addLearningRule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"invoiceNumber\": {\n \"keyword\": \"<string>\"\n },\n \"extractDescription\": {\n \"keyword\": \"<string>\"\n },\n \"learningSettings\": {\n \"OverideInvoiceClassification\": \"<string>\",\n \"CustomizeInvoiceRule\": \"<string>\"\n },\n \"supplierName\": {\n \"keyword\": \"<string>\"\n },\n \"customerName\": {\n \"keyword\": \"<string>\"\n },\n \"taxNumber\": {\n \"keyword\": \"<string>\"\n },\n \"invoiceTotal\": {\n \"keyword\": \"<string>\"\n },\n \"locale\": {\n \"value\": 123,\n \"specified\": true\n },\n \"aitask\": {\n \"value\": 123,\n \"specified\": true\n },\n \"workflow\": {\n \"value\": \"<string>\",\n \"specified\": true\n },\n \"docSubType\": {\n \"keyword\": \"<string>\"\n },\n \"Hint\": \"<string>\",\n \"isSet\": true,\n \"extra_keywords\": {\n \"name\": \"<string>\",\n \"custom_name\": \"<string>\",\n \"custom_operator\": \"<string>\",\n \"custom_hint\": \"<string>\",\n \"keywords\": \"<string>\",\n \"weight\": 123,\n \"exclusive\": true,\n \"position\": 123,\n \"create\": true,\n \"type\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"invoice_id": 123,
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Body
application/jsontext/jsonapplication/*+json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I