curl --location --request POST '/salesorders?ignore_auto_number_generation=false&can_send_in_mail=true&totalFiles=0&doc=' \
--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",
"shipment_date": "",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"place_of_supply": "DU",
"salesperson_id": " ",
"merchant_id": "460000000000597",
"gst_treatment": "business_gst",
"gst_no": "22AAAAA0000A1Z5",
"is_inclusive_tax": false,
"location_id": "460000000038080",
"line_items": [
{
"item_order": 1,
"item_id": 460000000000108,
"rate": 1.23,
"name": "Hard Drive",
"description": "The New York State Department of Taxation and Finance",
"quantity": 1,
"product_type": "goods",
"hsn_or_sac": "string",
"sat_item_key_code": "string",
"unitkey_code": "string",
"location_id": "460000000038080",
"discount": "30%",
"tax_id": "982000000566009",
"tds_tax_id": "string",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001"
}
],
"unit": "100GB",
"item_custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"tax_exemption_id": "460000000076002",
"tax_exemption_code": "RESELLER",
"tax_treatment_code": "uae_others",
"avatax_exempt_no": "string",
"avatax_use_code": 982000000037049,
"project_id": "460000000044019"
}
],
"notes": " ",
"terms": "Terms and conditions apply.",
"billing_address_id": "string",
"shipping_address_id": "218500000000142014",
"crm_owner_id": "string",
"crm_custom_reference_id": 0,
"vat_treatment": "string",
"tax_treatment": "vat_registered",
"is_reverse_charge_applied": true,
"salesorder_number": "SO-00001",
"reference_number": " ",
"is_update_customer": false,
"discount": "30%",
"exchange_rate": 1,
"salesperson_name": " ",
"notes_default": "string",
"terms_default": "string",
"tax_id": "460000000017094",
"tax_authority_id": "460000000066001",
"tax_exemption_id": "460000000076002",
"tax_authority_name": "Illinois Department of Revenue",
"tax_exemption_code": "RESELLER",
"avatax_exempt_no": "string",
"avatax_use_code": 982000000037049,
"shipping_charge": 0,
"adjustment": 0,
"delivery_method": "Air",
"estimate_id": "string",
"is_discount_before_tax": true,
"discount_type": "entity level",
"adjustment_description": " ",
"pricebook_id": "string",
"template_id": 0,
"documents": [
"string"
],
"zcrm_potential_id": 0,
"zcrm_potential_name": "string"
}'{
"code": 0,
"message": "Sales Order Created Successfully.",
"salesorder": [
{
"salesorder_id": "460000124728314",
"documents": [
"string"
],
"is_pre_gst": false,
"gst_no": "22AAAAA0000A1Z5",
"gst_treatment": "business_gst",
"place_of_supply": "DU",
"vat_treatment": "string",
"tax_treatment": "vat_registered",
"zcrm_potential_id": 0,
"zcrm_potential_name": "string",
"salesorder_number": "SO-00001",
"date": "2013-10-01",
"status": "active",
"shipment_date": "",
"reference_number": " ",
"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
}
}
],
"currency_id": "460000000000097",
"currency_code": "USD",
"currency_symbol": "$",
"exchange_rate": 1,
"discount_amount": 20,
"discount": "30%",
"discount_applied_on_amount": 0,
"is_discount_before_tax": true,
"discount_type": "entity level",
"estimate_id": "string",
"delivery_method": "Air",
"delivery_method_id": "string",
"is_inclusive_tax": false,
"location_id": "460000000038080",
"location_name": "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"
}
],
"shipping_charge": 0,
"adjustment": 0,
"adjustment_description": " ",
"sub_total": 33,
"tax_total": 0,
"total": 10000,
"taxes": "982000000566009",
"price_precision": 2,
"is_emailed": false,
"billing_address": [
"address",
"city",
"state",
"zip",
"country",
"fax",
"attention"
],
"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"
},
"city": "New York City",
"state": "New York",
"zip": 11364,
"country": "string",
"fax": "string"
},
"notes": " ",
"terms": "Terms and conditions apply.",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"template_id": 0,
"template_name": "Standard Template",
"page_width": "8.27in",
"page_height": "11.69in",
"orientation": "portrait",
"template_type": "standard",
"created_time": "2016-06-05T02:30:08-0700",
"last_modified_time": "string",
"created_by_id": "2112155000000069001",
"attachment_name": "string",
"can_send_in_mail": false,
"salesperson_id": " ",
"salesperson_name": " ",
"merchant_id": "460000000000597",
"merchant_name": "John Louis"
}
]
}