curl --location --request POST '/banktransactions/uncategorized//categorize' \
--header 'Content-Type: application/json' \
--data-raw '{
"from_account_id": "460000000070003",
"to_account_id": "460000000048001",
"transaction_type": "customer_payment",
"amount": 2000,
"date": "2013-10-01",
"reference_number": " ",
"payment_mode": "Cash",
"exchange_rate": 1,
"description": "The New York State Department of Taxation and Finance",
"customer_id": "460000000044001",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001",
"tag_name": "Location",
"tag_option_name": "USA"
}
],
"documents": [
"string"
],
"currency_id": "460000000000097",
"tax_id": "982000000566009",
"to_account_tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001"
}
],
"from_account_tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001"
}
],
"is_inclusive_tax": false,
"bank_charges": 0,
"user_id": "460000000036868",
"tax_authority_id": "460000000066001",
"tax_exemption_id": "460000000076002",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"line_items": [
{
"line_id": "460000000038005",
"account_id": "460000000000358",
"account_name": "Undeposited Funds",
"description": "The New York State Department of Taxation and Finance",
"tax_amount": 0,
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_type": "tax",
"tax_percentage": 10.5,
"item_total": 7500,
"item_total_inclusive_of_tax": 7500,
"item_order": 1,
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001",
"tag_name": "Location",
"tag_option_name": "USA"
}
]
}
]
}'