curl --location --request POST '/recurringinvoices' \
--header 'Content-Type: application/json' \
--data-raw '{
"recurrence_name": "Monthly Rental",
"reference_number": " ",
"customer_id": "460000000044001",
"currency_id": "460000000000097",
"contact_persons_associated": [
{
"contact_person_id": 0,
"communication_preference": {
"is_email_enabled": true,
"is_whatsapp_enabled": true
}
}
],
"place_of_supply": "DU",
"vat_treatment": "string",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"is_reverse_charge_applied": true,
"cfdi_usage": "acquisition_of_merchandise",
"allow_partial_payments": true,
"gst_no": "22AAAAA0000A1Z5",
"start_date": "2019-01-01",
"end_date": "2019-01-02",
"recurrence_frequency": "months",
"repeat_every": 1,
"location_id": "460000000038080",
"line_items": [
{
"line_item_id": "3640355000000319008",
"quantity": 1,
"name": "Hard Drive",
"item_total": 7500,
"product_type": "goods",
"hsn_or_sac": "string",
"sat_item_key_code": "string",
"unitkey_code": "string",
"tags": [
{
"tag_id": "460000000094001",
"tag_option_id": "460000000048001",
"tag_name": "Location",
"tag_option_name": "USA"
}
],
"location_id": "460000000038080",
"tax_id": "982000000566009",
"tds_tax_id": "string",
"tax_treatment_code": "uae_others",
"project_id": "460000000044019",
"header_name": "Header 1"
}
],
"tax_id": "982000000566009",
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"email": "willsmith@bowmanfurniture.com",
"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"
},
"avatax_use_code": 982000000037049,
"avatax_exempt_no": "string",
"template_id": 0,
"payment_terms": 0,
"payment_terms_label": "Due on Receipt",
"tax_authority_id": "460000000066001",
"tax_exemption_id": "460000000076002",
"exchange_rate": 1,
"payment_options": {
"payment_gateways": [
{
"configured": true,
"additional_field1": "standard",
"gateway_name": "paypal"
}
]
},
"discount": "30%",
"is_discount_before_tax": true,
"discount_type": "entity level",
"is_inclusive_tax": false,
"item_id": 460000000000108,
"name": "Hard Drive",
"description": "The New York State Department of Taxation and Finance",
"rate": 1.23,
"quantity": 1,
"unit": "100GB",
"avatax_tax_code": 982000000037049,
"salesperson_name": " ",
"shipping_charge": 0,
"adjustment": 0,
"adjustment_description": " "
}'{
"code": 0,
"message": "The recurring invoice has been created.",
"recurring_invoice": {
"recurring_invoice_id": "90300000072369",
"recurrence_name": "Monthly Rental",
"reference_number": " ",
"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
}
}
],
"is_pre_gst": false,
"gst_no": "22AAAAA0000A1Z5",
"gst_treatment": "business_gst",
"tax_treatment": "vat_registered",
"is_reverse_charge_applied": true,
"cfdi_usage": "acquisition_of_merchandise",
"vat_treatment": "string",
"place_of_supply": "DU",
"customer_id": "460000000044001",
"currency_id": "460000000000097",
"currency_code": "USD",
"start_date": "2019-01-01",
"end_date": "2019-01-02",
"last_sent_date": "2016-06-12",
"next_invoice_date": "2016-06-17",
"location_id": "460000000038080",
"location_name": "string",
"line_items": [
{
"line_item_id": "3640355000000319008",
"quantity": 1,
"name": "Hard Drive",
"item_total": 7500,
"sku": "s12345",
"product_type": "goods",
"sat_item_key_code": "string",
"unitkey_code": "string",
"location_id": "460000000038080",
"location_name": "string",
"tags": [
{
"is_tag_mandatory": false,
"tag_id": "460000000094001",
"tag_name": "Location",
"tag_option_id": "460000000048001",
"tag_option_name": "USA"
}
],
"tax_id": "982000000566009",
"tax_treatment_code": "uae_others",
"project_id": "460000000044019",
"project_name": "REAL TIME TRAFFIC FLUX",
"header_name": "Header 1",
"header_id": "982000000567105"
}
],
"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"
},
"custom_fields": [
{
"customfield_id": "46000000012845",
"value": "Normal"
}
],
"payment_options": {
"payment_gateways": [
{
"configured": true,
"additional_field1": "standard",
"gateway_name": "paypal"
}
]
},
"avatax_exempt_no": "string",
"avatax_use_code": 982000000037049
},
"page_context": {
"page": 1,
"per_page": 200,
"has_more_page": false,
"report_name": "Taxes",
"applied_filter": "Status.All",
"sort_column": "created_time",
"sort_order": "D"
}
}