curl --location --request PUT '/expenses' \
--header 'X-Unique-Identifier-Key;' \
--header 'X-Unique-Identifier-Value;' \
--header 'X-Upsert;' \
--header 'Content-Type: application/json' \
--data-raw '{
"account_id": "460000000000358",
"date": "2013-10-01",
"amount": 120.5,
"tax_id": "982000000566009",
"source_of_supply": "TN",
"destination_of_supply": "TN",
"place_of_supply": "DU",
"hsn_or_sac": "string",
"gst_no": "22AAAAA0000A1Z5",
"reverse_charge_tax_id": 982000000567254,
"line_items": [
{
"line_id": "460000000038005",
"account_id": "460000000000358",
"customer_id": "460000000044001",
"customer_name": "SAF Instruments Inc",
"account_name": "Undeposited Funds",
"description": "The New York State Department of Taxation and Finance",
"debit_or_credit": "debit",
"tax_exemption_id": "460000000076002",
"tax_exemption_type": "string",
"tax_exemption_code": "RESELLER",
"tax_authority_id": "460000000066001",
"tax_authority_name": "Illinois Department of Revenue",
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_type": "tax",
"tax_percentage": 10.5,
"amount": 2000,
"bcy_amount": 2000,
"acquisition_vat_id": "string",
"acquisition_vat_name": "string",
"acquisition_vat_percentage": "string",
"acquisition_vat_amount": "string",
"reverse_charge_vat_id": "string",
"reverse_charge_vat_name": "string",
"reverse_charge_vat_percentage": "string",
"reverse_charge_vat_amount": "string",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001",
"tag_name": "Location",
"tag_option_name": "USA"
}
],
"location_id": "460000000038080",
"location_name": "string",
"project_id": "460000000044019",
"project_name": "REAL TIME TRAFFIC FLUX"
}
],
"location_id": "460000000038080",
"taxes": "982000000566009",
"is_inclusive_tax": false,
"is_billable": true,
"reference_number": " ",
"description": "The New York State Department of Taxation and Finance",
"customer_id": "460000000044001",
"currency_id": "460000000000097",
"exchange_rate": 1,
"project_id": "460000000044019",
"mileage_type": "non_mileage",
"vat_treatment": "string",
"tax_treatment": "vat_registered",
"product_type": "goods",
"acquisition_vat_id": "string",
"reverse_charge_vat_id": "string",
"start_reading": "string",
"end_reading": "string",
"distance": 4,
"mileage_unit": "km",
"mileage_rate": 0,
"employee_id": 0,
"vehicle_type": "car",
"can_reclaim_vat_on_mileage": true,
"fuel_type": "string",
"engine_capacity_range": "string",
"paid_through_account_id": "460000000000358",
"vendor_id": " ",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
]
}'{
"code": 0,
"message": "Expense information has been updated.",
"expense": {
"expense_id": 982000000030049,
"transaction_id": "460000000050163",
"transaction_type": "customer_payment",
"gst_no": "22AAAAA0000A1Z5",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"destination_of_supply": "TN",
"destination_of_supply_state": "TN",
"place_of_supply": "DU",
"hsn_or_sac": "string",
"source_of_supply": "TN",
"paid_through_account_name": "string",
"vat_reg_no": "string",
"reverse_charge_tax_id": 982000000567254,
"reverse_charge_tax_name": "intra",
"reverse_charge_tax_percentage": 10,
"reverse_charge_tax_amount": 100,
"tax_amount": 0,
"is_itemized_expense": false,
"is_pre_gst": false,
"trip_id": "",
"trip_number": "",
"reverse_charge_vat_total": 0,
"acquisition_vat_total": 0,
"acquisition_vat_summary": [
{
"tax": [
{
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_percentage": 10.5,
"tax_type": "tax",
"tax_factor": "rate",
"tds_payable_account_id": "132086000000107337",
"tax_authority_id": "460000000066001",
"tax_authority_name": "Illinois Department of Revenue",
"is_value_added": false,
"tax_specific_type": "string",
"country": "string",
"country_code": "UK",
"purchase_tax_expense_account_id": 0
}
]
}
],
"reverse_charge_vat_summary": [
{
"tax": [
{
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_percentage": 10.5,
"tax_type": "tax",
"tax_factor": "rate",
"tds_payable_account_id": "132086000000107337",
"tax_authority_id": "460000000066001",
"tax_authority_name": "Illinois Department of Revenue",
"is_value_added": false,
"tax_specific_type": "string",
"country": "string",
"country_code": "UK",
"purchase_tax_expense_account_id": 0
}
]
}
],
"taxes": "982000000566009",
"expense_item_id": 982000000567220,
"account_id": "460000000000358",
"account_name": "Undeposited Funds",
"date": "2013-10-01",
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_percentage": 10.5,
"currency_id": "460000000000097",
"currency_code": "USD",
"exchange_rate": 1,
"sub_total": 33,
"total": 10000,
"bcy_total": 100,
"amount": 120.5,
"is_inclusive_tax": false,
"reference_number": " ",
"description": "The New York State Department of Taxation and Finance",
"is_billable": true,
"is_personal": false,
"customer_id": "460000000044001",
"customer_name": "SAF Instruments Inc",
"expense_receipt_name": " ",
"expense_receipt_type": " ",
"last_modified_time": "string",
"status": "active",
"invoice_id": "",
"invoice_number": "INV-00004",
"location_id": "460000000038080",
"location_name": "string",
"project_id": "460000000044019",
"project_name": "REAL TIME TRAFFIC FLUX",
"mileage_rate": 0,
"mileage_type": "non_mileage",
"expense_type": "non_mileage",
"start_reading": "string",
"end_reading": "string"
}
}