curl --location --request PUT '/creditnotes/?ignore_auto_number_generation=false' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": "460000000044001",
"currency_id": "460000000000097",
"contact_persons_associated": [
{
"contact_person_id": 0,
"communication_preference": {
"is_email_enabled": true,
"is_whatsapp_enabled": true
}
}
],
"date": "2013-10-01",
"is_draft": true,
"exchange_rate": 1,
"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",
"creditnote_number": "CN-29",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"is_reverse_charge_applied": true,
"gst_no": "22AAAAA0000A1Z5",
"cfdi_usage": "acquisition_of_merchandise",
"cfdi_reference_type": "return_of_merchandise",
"place_of_supply": "DU",
"ignore_auto_number_generation": true,
"reference_number": " ",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"notes": " ",
"terms": "Terms and conditions apply.",
"template_id": 0,
"tax_id": "982000000566009",
"tax_authority_id": "460000000066001",
"tax_exemption_id": "460000000076002",
"avatax_use_code": 982000000037049,
"avatax_exempt_no": "string",
"vat_treatment": "string",
"is_inclusive_tax": false,
"item_id": 460000000000108,
"account_id": "460000000000358",
"name": "Hard Drive",
"avatax_tax_code": 982000000037049,
"description": "The New York State Department of Taxation and Finance",
"unit": "100GB",
"rate": 1.23,
"quantity": 1
}'{
"code": 0,
"message": "The credit note has been updated.",
"creditnote": {
"creditnote_id": "4000000030049",
"creditnote_number": "CN-29",
"date": "2013-10-01",
"is_pre_gst": false,
"place_of_supply": "DU",
"vat_treatment": "string",
"vat_reg_no": "string",
"gst_no": "22AAAAA0000A1Z5",
"cfdi_usage": "acquisition_of_merchandise",
"cfdi_reference_type": "return_of_merchandise",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"is_reverse_charge_applied": true,
"status": "active",
"customer_id": "460000000044001",
"customer_name": "SAF Instruments Inc",
"contact_persons_associated": [
{
"contact_person_id": 0,
"contact_person_name": "Peter",
"first_name": "Peter",
"last_name": "Parker",
"contact_person_email": "willsmith@bowmanfurniture.com",
"phone": "+1-925-921-9201",
"mobile": "+1-4054439562",
"communication_preference": {
"is_email_enabled": true,
"is_whatsapp_enabled": true
}
}
],
"custom_fields": [
{
"index": 1,
"value": "Normal",
"label": "string",
"data_type": "string"
}
],
"reference_number": " ",
"email": "willsmith@bowmanfurniture.com",
"total": 10000,
"balance": "48.75",
"line_items": [
{
"item_id": 460000000000108,
"description": "The New York State Department of Taxation and Finance",
"code": "basic-monthly",
"name": "Hard Drive",
"type": "customer",
"account_id": "460000000000358",
"account_name": "Undeposited Funds",
"quantity": 1,
"tax_id": "982000000566009",
"tax_treatment_code": "uae_others",
"product_type": "goods",
"serial_numbers": [
"string"
],
"location_id": "460000000038080",
"location_name": "string",
"project_id": "460000000044019"
}
],
"invoices": [
{
"invoice_id": "",
"invoice_number": "INV-00004",
"amount": 2000
}
],
"taxes": [
{
"tax_id": "982000000566009",
"tax_name": "Sales Group",
"tax_amount": 0
}
],
"currency_code": "USD",
"currency_symbol": "$",
"location_id": "460000000038080",
"location_name": "string",
"billing_address": {
"address": {
"city": "New York City",
"state": "New York",
"country": "string",
"attention": "string",
"state_code": "NY",
"street_address1": "No:234,90 Church Street",
"street_address2": "McMillan Avenue"
},
"street2": "Suite 310",
"city": "New York City",
"state": "New York",
"zip": 11364,
"country": "string",
"fax": "string",
"attention": "string"
},
"shipping_address": {
"address": {
"city": "New York City",
"state": "New York",
"country": "string",
"attention": "string",
"state_code": "NY",
"street_address1": "No:234,90 Church Street",
"street_address2": "McMillan Avenue"
},
"street2": "Suite 310",
"city": "New York City",
"state": "New York",
"zip": 11364,
"country": "string",
"fax": "string",
"attention": "string"
},
"created_time": "2016-06-05T02:30:08-0700",
"updated_time": "2016-06-05T02:15:20-0700",
"template_id": 0,
"template_name": "Standard Template",
"notes": " ",
"terms": "Terms and conditions apply."
}
}