curl --location --request PUT '/bills' \
--header 'X-Unique-Identifier-Key;' \
--header 'X-Unique-Identifier-Value;' \
--header 'X-Upsert;' \
--header 'Content-Type: application/json' \
--data-raw '{
"vendor_id": " ",
"currency_id": "460000000000097",
"vat_treatment": "string",
"is_update_customer": false,
"purchaseorder_ids": [
460000000068231,
460000000068233
],
"bill_number": "B-1000",
"documents": [
"string"
],
"source_of_supply": "TN",
"destination_of_supply": "TN",
"place_of_supply": "DU",
"permit_number": "string",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"gst_no": "22AAAAA0000A1Z5",
"pricebook_id": "string",
"reference_number": " ",
"date": "2013-10-01",
"due_date": "6:52 PM",
"payment_terms": 0,
"payment_terms_label": "Due on Receipt",
"recurring_bill_id": 982000000567240,
"exchange_rate": 1,
"is_item_level_tax_calc": false,
"is_inclusive_tax": false,
"adjustment": 0,
"adjustment_description": " ",
"custom_fields": [
{
"index": 1,
"value": "Normal"
}
],
"line_items": [
{
"purchaseorder_item_id": "string",
"line_item_id": "3640355000000319008",
"item_id": 460000000000108,
"name": "Hard Drive",
"account_id": "460000000000358",
"description": "The New York State Department of Taxation and Finance",
"rate": 1.23,
"hsn_or_sac": "string",
"reverse_charge_tax_id": 982000000567254,
"location_id": "460000000038080",
"quantity": 1,
"tax_id": "982000000566009",
"tds_tax_id": "string",
"tax_treatment_code": "uae_others",
"tax_exemption_id": "460000000076002",
"tax_exemption_code": "RESELLER",
"item_order": 1,
"product_type": "goods",
"acquisition_vat_id": "string",
"reverse_charge_vat_id": "string",
"unit": "100GB",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001",
"tag_name": "Location",
"tag_option_name": "USA"
}
],
"is_billable": true,
"project_id": "460000000044019",
"customer_id": "460000000044001",
"item_custom_fields": [
{
"custom_field_id": 0,
"label": "string",
"value": "Normal",
"index": 1
}
],
"serial_numbers": [
"string"
]
}
],
"location_id": "460000000038080",
"taxes": [
{
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_amount": 0
}
],
"notes": " ",
"terms": "Terms and conditions apply.",
"approvers": [
{
"approver_id": 0,
"order": 0
}
]
}'{
"code": 0,
"message": "Bill information has been updated.",
"bill": {
"bill_id": "460000000053199",
"purchaseorder_ids": [
460000000068231,
460000000068233
],
"vendor_id": " ",
"vendor_name": "Bowmen and co",
"vat_treatment": "string",
"vat_reg_no": "string",
"source_of_supply": "TN",
"destination_of_supply": "TN",
"place_of_supply": "DU",
"permit_number": "string",
"gst_no": "22AAAAA0000A1Z5",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"is_pre_gst": false,
"pricebook_id": "string",
"pricebook_name": "string",
"is_reverse_charge_applied": true,
"unused_credits_payable_amount": 187,
"status": "active",
"bill_number": "B-1000",
"date": "2013-10-01",
"due_date": "6:52 PM",
"payment_terms": 0,
"payment_terms_label": "Due on Receipt",
"payment_expected_date": "string",
"reference_number": " ",
"recurring_bill_id": 982000000567240,
"due_by_days": "string",
"due_in_days": 0,
"currency_id": "460000000000097",
"currency_code": "USD",
"currency_symbol": "$",
"documents": [
"string"
],
"price_precision": 2,
"exchange_rate": 1,
"adjustment": 0,
"adjustment_description": " ",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"is_tds_applied": true,
"is_item_level_tax_calc": false,
"is_inclusive_tax": false,
"filed_in_vat_return_id": "string",
"filed_in_vat_return_name": "string",
"filed_in_vat_return_type": "string",
"is_abn_quoted": "string",
"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",
"location_name": "string",
"sub_total": 33,
"tax_total": 0,
"total": 10000,
"payment_made": 0,
"vendor_credits_applied": 0,
"is_line_item_invoiced": false,
"purchaseorders": [
{
"purchaseorder_id": "460000000068231",
"purchaseorder_number": "PO-0001",
"purchaseorder_date": "19 Jan 2017",
"purchaseorder_status": "billed"
}
],
"taxes": "982000000566009",
"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
}
]
}
],
"acquisition_vat_total": 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
}
]
}
],
"reverse_charge_vat_total": 0,
"balance": "48.75",
"billing_address": [
"address",
"city",
"state",
"zip",
"country",
"fax",
"attention"
],
"payments": [
{
"payment_id": "460000000076027",
"bill_id": "460000000053199",
"bill_payment_id": "string",
"payment_mode": "Cash",
"payment_number": 8,
"description": "The New York State Department of Taxation and Finance",
"date": "2013-10-01",
"reference_number": " ",
"exchange_rate": 1,
"amount": 2000,
"paid_through_account_id": "460000000000358",
"paid_through_account_name": "string",
"is_single_bill_payment": true,
"is_paid_via_print_check": false,
"check_details": [
{
"memo": "string",
"check_number": "string"
}
],
"is_ach_payment": false,
"ach_payment_status": "string",
"ach_gw_transaction_id": "string",
"filed_in_vat_return_id": "string",
"filed_in_vat_return_name": "string",
"filed_in_vat_return_type": "string"
}
],
"vendor_credits": [
{
"vendor_credit_id": "460000000030049",
"vendor_credit_bill_id": "string",
"vendor_credit_number": "DN-00002",
"date": "27 Dec 2016",
"amount": 10
}
],
"created_time": "2016-06-05T02:30:08-0700",
"created_by_id": "2112155000000069001",
"last_modified_time": "string",
"reference_id": "string",
"notes": " ",
"terms": "Terms and conditions apply.",
"attachment_name": "string",
"open_purchaseorders_count": 1
}
}