Customers
A customer object allows you to keep track of all customer related information.
Attribute
attention,street, city, state,zip,country, state_code and fax.attention,street, city, state,zip,country, state_code and fax.Allowed values for
gst_treatment : business_gst, business_none, consumer, overseasbusiness_gst - For a GST Registered business owner. business_none - For a GST unregistered business owner. consumer - For a consumer. overseas - Customer for whom you export your goods/services.home_country_mexico, border_region_mexico, non_mexico. Consumers generic RFC: XAXX010101000, Overseas generic RFC: XEXX010101000home_country_mexico (A business that is located within MX)border_region_mexico (A business that is located in the northern and southern border regions in MX)non_mexico (A business that is located outside MX).general_legal_person, legal_entities_non_profit, resident_abroad, production_cooperative_societies, agricultural_livestock, optional_group_of_companies, coordinated, simplified_trust, wages_salaries_income, lease, property_disposal_acquisition, other_income, resident_abroad, divident_income, individual_business_professional, interest_income, income_obtaining_price, no_tax_obligation, tax_incorporation, income_through_technology_platform, simplified_trust.active or inactive.{
    "customer_id": "903000000000099",
    "display_name": "Bowman Furniture",
    "salutation": "Mr.",
    "first_name": "Benjamin",
    "last_name": "George",
    "email": "benjamin.george@bowmanfurniture.com",
    "tags": [
        {
            "tag_option_id": "460000000054280",
            "is_tag_mandatory": false,
            "tag_name": "Colors",
            "tag_id": "460000000054182",
            "tag_option_name": "Black"
        }
    ],
    "company_name": "Bowman Furniture",
    "phone": 23467278,
    "mobile": 938237475,
    "website": "www.bowmanfurniture.com",
    "is_portal_enabled": true,
    "department": "Marketing",
    "designation": "Evangelist",
    "billing_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "shipping_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "currency_code": "USD",
    "currency_id": "90300000000097",
    "ach_supported": true,
    "twitter": "BowmanFurniture",
    "facebook": "BowmanFurniture",
    "skype": "Bowman Furniture",
    "notes": "Bowman Furniture",
    "gst_no": "33AAAAA0000A1Z5",
    "gst_treatment": "business_gst",
    "tax_reg_no": 12345678912345,
    "tds_tax_id": 982000000557012,
    "tax_treatment": "string",
    "tax_regime": "general_legal_person",
    "is_tds_registered": true,
    "place_of_contact": "TN",
    "price_precision": 2,
    "unused_credits": 0,
    "outstanding": 0,
    "status": "active",
    "custom_fields": [
        {
            "index": 1,
            "value": 129890,
            "data_type": "text",
            "label": "label"
        }
    ],
    "zcrm_account_id": "903000800069001",
    "zcrm_contact_id": "903000000098214",
    "updated_time": "2016-06-05T02:30:08-0700",
    "created_time": "2016-06-05T12:30:08-0700",
    "source": "user",
    "payment_terms": 0,
    "payment_terms_label": "Due on receipt",
    "is_linked_with_zohocrm": false,
    "primary_contactperson_id": "903000001045003",
    "can_add_card": true,
    "can_add_bank_account": true,
    "default_templates": {
        "invoice_template_id": "90300000311340",
        "creditnote_template_id": "90300000232140"
    },
    "documents": [
        {
            "can_show_in_portal": true,
            "file_name": "Rental Agreement.pdf",
            "file_type": "pdf",
            "file_size": 5447,
            "file_size_formatted": "5.3 KB",
            "document_id": "903000005689",
            "attachment_order": 1
        }
    ]
}
          Create a customer
            A new customer can a be created separately as well as at the time of creation of a new subscription.
              
              OAuth Scope : ZohoSubscriptions.customers.CREATE
          
Arguments
attention,street, city, state,zip,country, state_code and fax.attention,street, city, state,zip,country, state_code and fax.Allowed values for
gst_treatment : business_gst, business_none, consumer, overseasbusiness_gst - For a GST Registered business owner. business_none - For a GST unregistered business owner. consumer - For a consumer. overseas - Customer for whom you export your goods/services.uk (A business that is located in the UK.),eu_vat_registered (A business that is reg for VAT and trade goods between Northern Ireland and EU. This node is available only for organizations enabled for NI protocal in VAT Settings.) andoverseas (A business that is located outside UK. Pre Brexit, this was split as eu_vat_registered, eu_vat_not_registered and non_eu ).home_country_mexico, border_region_mexico, non_mexico. Consumers generic RFC: XAXX010101000, Overseas generic RFC: XEXX010101000home_country_mexico (A business that is located within MX)border_region_mexico (A business that is located in the northern and southern border regions in MX)non_mexico (A business that is located outside MX).general_legal_person, legal_entities_non_profit, resident_abroad, production_cooperative_societies, agricultural_livestock, optional_group_of_companies, coordinated, simplified_trust, wages_salaries_income, lease, property_disposal_acquisition, other_income, resident_abroad, divident_income, individual_business_professional, interest_income, income_obtaining_price, no_tax_obligation, tax_incorporation, income_through_technology_platform, simplified_trust.is_taxable is true.Headers
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers")
  .post(body)
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .addHeader("content-type", "application/json")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'POST',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
    'content-type': 'application/json'
  },
  body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.com/billing/v1/customers', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
    'content-type': "application/json"
    }
conn.request("POST", "/billing/v1/customers", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "POST",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
    "content-type": "application/json"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
              curl --request POST \
  --url https://www.zohoapis.com/billing/v1/customers \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695' \
  --header 'content-type: application/json' \
  --data '{"field1":"value1","field2":"value2"}'
              {
    "display_name": "Bowman Furniture",
    "salutation": "Mr.",
    "first_name": "Benjamin",
    "last_name": "George",
    "email": "benjamin.george@bowmanfurniture.com",
    "tags": [
        {
            "tag_id": "460000000054182",
            "tag_option_id": "460000000054280"
        }
    ],
    "company_name": "Bowman Furniture",
    "phone": 23467278,
    "mobile": 938237475,
    "department": "Marketing",
    "designation": "Evangelist",
    "website": "www.bowmanfurniture.com",
    "billing_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "shipping_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "payment_terms": 0,
    "payment_terms_label": "Due on receipt",
    "currency_code": "USD",
    "ach_supported": true,
    "twitter": "BowmanFurniture",
    "facebook": "BowmanFurniture",
    "skype": "Bowman Furniture",
    "notes": "Bowman Furniture",
    "is_portal_enabled": true,
    "gst_no": "33AAAAA0000A1Z5",
    "gst_treatment": "business_gst",
    "place_of_contact": "TN",
    "vat_treatment": "overseas",
    "tax_reg_no": 12345678912345,
    "tds_tax_id": 982000000557012,
    "tax_treatment": "string",
    "tax_regime": "general_legal_person",
    "is_tds_registered": true,
    "vat_reg_no": 51423456782,
    "is_taxable": true,
    "tax_id": "903000002345",
    "tax_authority_id": "903000006345",
    "tax_authority_name": "ATO",
    "tax_exemption_id": "903000006345",
    "tax_exemption_code": "GST FREE",
    "default_templates": {
        "invoice_template_id": "90300000311340",
        "creditnote_template_id": "90300000232140"
    },
    "custom_fields": [
        {
            "label": "label",
            "value": 129890
        }
    ]
}
            {
    "code": 0,
    "message": "The customer has been created",
    "customer": {
        "customer_id": "903000000000099",
        "display_name": "Bowman Furniture",
        "salutation": "Mr.",
        "first_name": "Benjamin",
        "last_name": "George",
        "email": "benjamin.george@bowmanfurniture.com",
        "tags": [
            {
                "tag_option_id": "460000000054280",
                "is_tag_mandatory": false,
                "tag_name": "Colors",
                "tag_id": "460000000054182",
                "tag_option_name": "Black"
            }
        ],
        "company_name": "Bowman Furniture",
        "phone": 23467278,
        "mobile": 938237475,
        "website": "www.bowmanfurniture.com",
        "is_portal_enabled": true,
        "department": "Marketing",
        "designation": "Evangelist",
        "billing_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "shipping_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "currency_code": "USD",
        "currency_id": "90300000000097",
        "ach_supported": true,
        "twitter": "BowmanFurniture",
        "facebook": "BowmanFurniture",
        "skype": "Bowman Furniture",
        "notes": "Bowman Furniture",
        "gst_no": "33AAAAA0000A1Z5",
        "gst_treatment": "business_gst",
        "tax_reg_no": 12345678912345,
        "tds_tax_id": 982000000557012,
        "tax_treatment": "string",
        "tax_regime": "general_legal_person",
        "is_tds_registered": true,
        "place_of_contact": "TN",
        "price_precision": 2,
        "unused_credits": 0,
        "outstanding": 0,
        "status": "active",
        "custom_fields": [
            {
                "index": 1,
                "value": 129890,
                "data_type": "text",
                "label": "label"
            }
        ],
        "zcrm_account_id": "903000800069001",
        "zcrm_contact_id": "903000000098214",
        "updated_time": "2016-06-05T02:30:08-0700",
        "created_time": "2016-06-05T12:30:08-0700",
        "source": "user",
        "payment_terms": 0,
        "payment_terms_label": "Due on receipt",
        "is_linked_with_zohocrm": false,
        "primary_contactperson_id": "903000001045003",
        "can_add_card": true,
        "can_add_bank_account": true,
        "default_templates": {
            "invoice_template_id": "90300000311340",
            "creditnote_template_id": "90300000232140"
        },
        "documents": [
            {
                "can_show_in_portal": true,
                "file_name": "Rental Agreement.pdf",
                "file_type": "pdf",
                "file_size": 5447,
                "file_size_formatted": "5.3 KB",
                "document_id": "903000005689",
                "attachment_order": 1
            }
        ]
    }
}
                List all customers
            List of all customers. You can list customers based on various filter criterias. The allowed values for filter_by are Status.(All, Active, Inactive, Gapps, Crm, NonSubscribers, PortalEnabled, PortalDisabled).
              
              OAuth Scope : ZohoSubscriptions.customers.READ
          
Query Parameters
Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers")
  .get()
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'GET',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("GET", "/billing/v1/customers", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "GET",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request GET \
  --url https://www.zohoapis.com/billing/v1/customers \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "success",
    "customers": [
        {
            "customer_id": "903000000000099",
            "display_name": "Bowman Furniture",
            "salutation": "Mr.",
            "first_name": "Benjamin",
            "last_name": "George",
            "email": "benjamin.george@bowmanfurniture.com",
            "tags": [
                {
                    "tag_id": "460000000054182",
                    "tag_option_id": "460000000054280"
                }
            ],
            "company_name": "Bowman Furniture",
            "phone": 23467278,
            "mobile": 938237475,
            "website": "www.bowmanfurniture.com",
            "department": "Marketing",
            "designation": "Evangelist",
            "currency_code": "USD",
            "unused_credits": 0,
            "outstanding": 0,
            "is_gapps_customer": false,
            "updated_time": "2016-06-05T02:30:08-0700",
            "created_time": "2016-06-05T12:30:08-0700",
            "has_attachment": true
        },
        {...},
        {...}
    ]
}
                Update a customer
            Update details of an existing customer.
              
              OAuth Scope : ZohoSubscriptions.customers.UPDATE
          
Arguments
attention,street, city, state,zip,country, state_code and fax.attention,street, city, state,zip,country, state_code and fax.Allowed values for
gst_treatment : business_gst, business_none, consumer, overseasbusiness_gst - For a GST Registered business owner. business_none - For a GST unregistered business owner. consumer - For a consumer. overseas - Customer for whom you export your goods/services.uk (A business that is located in the UK.),eu_vat_registered (A business that is reg for VAT and trade goods between Northern Ireland and EU. This node is available only for organizations enabled for NI protocal in VAT Settings.) andoverseas (A business that is located outside UK. Pre Brexit, this was split as eu_vat_registered, eu_vat_not_registered and non_eu ).is_taxable is true.home_country_mexico, border_region_mexico, non_mexico. Consumers generic RFC: XAXX010101000, Overseas generic RFC: XEXX010101000home_country_mexico (A business that is located within MX)border_region_mexico (A business that is located in the northern and southern border regions in MX)non_mexico (A business that is located outside MX).general_legal_person, legal_entities_non_profit, resident_abroad, production_cooperative_societies, agricultural_livestock, optional_group_of_companies, coordinated, simplified_trust, wages_salaries_income, lease, property_disposal_acquisition, other_income, resident_abroad, divident_income, individual_business_professional, interest_income, income_obtaining_price, no_tax_obligation, tax_incorporation, income_through_technology_platform, simplified_trust.Path Parameters
Headers
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/903000000000099"
type: PUT
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/903000000000099")
  .put(body)
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .addHeader("content-type", "application/json")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'PUT',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
    'content-type': 'application/json'
  },
  body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.com/billing/v1/customers/903000000000099', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
    'content-type': "application/json"
    }
conn.request("PUT", "/billing/v1/customers/903000000000099", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "PUT",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/903000000000099",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
    "content-type": "application/json"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
              curl --request PUT \
  --url https://www.zohoapis.com/billing/v1/customers/903000000000099 \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695' \
  --header 'content-type: application/json' \
  --data '{"field1":"value1","field2":"value2"}'
              {
    "display_name": "Bowman Furniture",
    "salutation": "Mr.",
    "first_name": "Benjamin",
    "last_name": "George",
    "email": "benjamin.george@bowmanfurniture.com",
    "tags": [
        {
            "tag_id": "460000000054182",
            "tag_option_id": "460000000054280"
        }
    ],
    "company_name": "Bowman Furniture",
    "phone": 23467278,
    "mobile": 938237475,
    "billing_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "shipping_address": {
        "attention": "Benjamin George",
        "street": "Harrington Bay Street",
        "city": "Salt Lake City",
        "state": "CA",
        "zip": 92612,
        "country": "U.S.A",
        "state_code": "CA",
        "fax": 4527389
    },
    "fax": 4527389,
    "currency_code": "USD",
    "twitter": "BowmanFurniture",
    "facebook": "BowmanFurniture",
    "skype": "Bowman Furniture",
    "is_portal_enabled": true,
    "gst_no": "33AAAAA0000A1Z5",
    "gst_treatment": "business_gst",
    "place_of_contact": "TN",
    "vat_treatment": "overseas",
    "vat_reg_no": 51423456782,
    "is_taxable": true,
    "tax_id": "903000002345",
    "tax_authority_id": "903000006345",
    "tax_authority_name": "ATO",
    "tax_exemption_id": "903000006345",
    "tax_exemption_code": "GST FREE",
    "default_templates": {
        "invoice_template_id": "90300000311340",
        "creditnote_template_id": "90300000232140"
    },
    "tax_reg_no": 12345678912345,
    "tds_tax_id": 982000000557012,
    "tax_treatment": "string",
    "tax_regime": "general_legal_person",
    "is_tds_registered": true,
    "custom_fields": [
        {
            "index": 1,
            "value": 129890,
            "label": "label",
            "data_type": "text"
        }
    ]
}
            {
    "code": 0,
    "message": "The customer details have been updated.",
    "customer": {
        "customer_id": "903000000000099",
        "display_name": "Bowman Furniture",
        "salutation": "Mr.",
        "first_name": "Benjamin",
        "last_name": "George",
        "email": "benjamin.george@bowmanfurniture.com",
        "tags": [
            {
                "tag_option_id": "460000000054280",
                "is_tag_mandatory": false,
                "tag_name": "Colors",
                "tag_id": "460000000054182",
                "tag_option_name": "Black"
            }
        ],
        "company_name": "Bowman Furniture",
        "phone": 23467278,
        "mobile": 938237475,
        "website": "www.bowmanfurniture.com",
        "department": "Marketing",
        "designation": "Evangelist",
        "is_portal_enabled": true,
        "billing_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "shipping_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "currency_code": "USD",
        "currency_id": "90300000000097",
        "ach_supported": true,
        "price_precision": 2,
        "unused_credits": 0,
        "outstanding": 0,
        "notes": "Bowman Furniture",
        "status": "active",
        "custom_fields": [
            {
                "index": 1,
                "value": 129890,
                "label": "label",
                "data_type": "text"
            }
        ],
        "zcrm_account_id": "903000800069001",
        "zcrm_contact_id": "903000000098214",
        "updated_time": "2016-06-05T02:30:08-0700",
        "created_time": "2016-06-05T12:30:08-0700",
        "source": "user",
        "payment_terms_label": "Due on receipt",
        "is_linked_with_zohocrm": false,
        "primary_contactperson_id": "903000001045003",
        "can_add_card": true,
        "can_add_bank_account": true,
        "default_templates": [
            {
                "invoice_template_id": "90300000311340",
                "creditnote_template_id": "90300000232140"
            }
        ],
        "documents": [
            {
                "can_show_in_portal": true,
                "file_name": "Rental Agreement.pdf",
                "file_type": "pdf",
                "file_size": 5447,
                "file_size_formatted": "5.3 KB",
                "document_id": "903000005689",
                "attachment_order": 1
            }
        ]
    }
}
                Retrieve a customer
            Details of an existing customer.
              
              OAuth Scope : ZohoSubscriptions.customers.READ
          
Path Parameters
Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/903000000000099"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/903000000000099")
  .get()
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'GET',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers/903000000000099', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("GET", "/billing/v1/customers/903000000000099", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "GET",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/903000000000099",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request GET \
  --url https://www.zohoapis.com/billing/v1/customers/903000000000099 \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "success",
    "customer": {
        "customer_id": "903000000000099",
        "display_name": "Bowman Furniture",
        "salutation": "Mr.",
        "first_name": "Benjamin",
        "last_name": "George",
        "email": "benjamin.george@bowmanfurniture.com",
        "tags": [
            {
                "tag_option_id": "460000000054280",
                "is_tag_mandatory": false,
                "tag_name": "Colors",
                "tag_id": "460000000054182",
                "tag_option_name": "Black"
            }
        ],
        "company_name": "Bowman Furniture",
        "phone": 23467278,
        "mobile": 938237475,
        "website": "www.bowmanfurniture.com",
        "designation": "Evangelist",
        "department": "Marketing",
        "is_portal_enabled": true,
        "billing_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "shipping_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "currency_code": "USD",
        "currency_id": "90300000000097",
        "ach_supported": true,
        "gst_no": "33AAAAA0000A1Z5",
        "gst_treatment": "business_gst",
        "tax_reg_no": 12345678912345,
        "tds_tax_id": 982000000557012,
        "tax_treatment": "string",
        "tax_regime": "general_legal_person",
        "is_tds_registered": true,
        "place_of_contact": "TN",
        "price_precision": 2,
        "unused_credits": 0,
        "outstanding": 0,
        "notes": "Bowman Furniture",
        "status": "active",
        "custom_fields": [
            {
                "index": 1,
                "value": 129890,
                "data_type": "text",
                "label": "label"
            }
        ],
        "zcrm_account_id": "903000800069001",
        "zcrm_contact_id": "903000000098214",
        "updated_time": "2016-06-05T02:30:08-0700",
        "created_time": "2016-06-05T12:30:08-0700",
        "source": "user",
        "payment_terms_label": "Due on receipt",
        "is_linked_with_zohocrm": false,
        "primary_contactperson_id": "903000001045003",
        "can_add_card": true,
        "can_add_bank_account": true,
        "default_templates": {
            "invoice_template_id": "90300000311340",
            "creditnote_template_id": "90300000232140"
        },
        "documents": [
            {
                "can_show_in_portal": true,
                "file_name": "Rental Agreement.pdf",
                "file_type": "pdf",
                "file_size": 5447,
                "file_size_formatted": "5.3 KB",
                "document_id": "903000005689",
                "attachment_order": 1
            }
        ]
    }
}
                Delete a customer
            Delete an existing customer.
              
              OAuth Scope : ZohoSubscriptions.customers.DELETE
          
Path Parameters
Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/903000000000099"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/903000000000099")
  .delete(null)
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'DELETE',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers/903000000000099', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("DELETE", "/billing/v1/customers/903000000000099", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "DELETE",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/903000000000099",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request DELETE \
  --url https://www.zohoapis.com/billing/v1/customers/903000000000099 \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "The customer has been deleted."
}
                Retrieve a customer Using CRM Reference
            Details of an existing customer using CRM Reference ID. reference_id can be  CRM Contact ID  (for Contacts only sync) or  CRM Account ID  (For accounts only and Accounts and its contacts sync). Query param value of  reference_id_type  must be given accoridngly.
              
              OAuth Scope : ZohoSubscriptions.customers.READ
          
Path Parameters
Query Parameters
 zcrm_account_id  and zcrm_contact_id.Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/reference/903000000021976"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/reference/903000000021976")
  .get()
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'GET',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers/reference/903000000021976', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("GET", "/billing/v1/customers/reference/903000000021976", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "GET",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/reference/903000000021976",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request GET \
  --url https://www.zohoapis.com/billing/v1/customers/reference/903000000021976 \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "success",
    "customer": {
        "customer_id": "903000000000099",
        "display_name": "Bowman Furniture",
        "salutation": "Mr.",
        "first_name": "Benjamin",
        "last_name": "George",
        "email": "benjamin.george@bowmanfurniture.com",
        "company_name": "Bowman Furniture",
        "phone": 23467278,
        "mobile": 938237475,
        "website": "www.bowmanfurniture.com",
        "designation": "Evangelist",
        "department": "Marketing",
        "is_portal_enabled": true,
        "billing_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "shipping_address": {
            "attention": "Benjamin George",
            "street": "Harrington Bay Street",
            "city": "Salt Lake City",
            "state": "CA",
            "zip": 92612,
            "country": "U.S.A",
            "state_code": "CA",
            "fax": 4527389
        },
        "currency_code": "USD",
        "currency_id": "90300000000097",
        "ach_supported": true,
        "gst_no": "33AAAAA0000A1Z5",
        "gst_treatment": "business_gst",
        "tax_reg_no": 12345678912345,
        "tds_tax_id": 982000000557012,
        "tax_treatment": "string",
        "tax_regime": "general_legal_person",
        "is_tds_registered": true,
        "place_of_contact": "TN",
        "price_precision": 2,
        "unused_credits": 0,
        "outstanding": 0,
        "notes": "Bowman Furniture",
        "status": "active",
        "custom_fields": [
            {
                "index": 1,
                "value": 129890,
                "data_type": "text",
                "label": "label"
            }
        ],
        "zcrm_account_id": "903000800069001",
        "zcrm_contact_id": "903000000098214",
        "updated_time": "2016-06-05T02:30:08-0700",
        "created_time": "2016-06-05T12:30:08-0700",
        "source": "user",
        "payment_terms_label": "Due on receipt",
        "is_linked_with_zohocrm": false,
        "primary_contactperson_id": "903000001045003",
        "can_add_card": true,
        "can_add_bank_account": true,
        "default_templates": {
            "invoice_template_id": "90300000311340",
            "creditnote_template_id": "90300000232140"
        },
        "documents": [
            {
                "can_show_in_portal": true,
                "file_name": "Rental Agreement.pdf",
                "file_type": "pdf",
                "file_size": 5447,
                "file_size_formatted": "5.3 KB",
                "document_id": "903000005689",
                "attachment_order": 1
            }
        ]
    }
}
                List of transactions
            List of all transactions associated with a particular customer.
              
              OAuth Scope : ZohoSubscriptions.customers.READ
          
Query Parameters
filter_by. The allowed values for filter_by are TransactionType.(All, INVOICE, PAYMENT, CREDIT, REFUND)customer_id.Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/transactions"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/transactions")
  .get()
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'GET',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/transactions', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("GET", "/billing/v1/transactions", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "GET",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/transactions",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request GET \
  --url https://www.zohoapis.com/billing/v1/transactions \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "success",
    "transactions": [
        {
            "transaction_id": "903000000094534",
            "reference_id": "903000000021976",
            "date": "2016-09-30",
            "type": "invoice",
            "status": "active",
            "amount": "20.50"
        },
        {...},
        {...}
    ]
}
                Mark as active
            Change status of the customer to active.
              
              OAuth Scope : ZohoSubscriptions.customers.CREATE
          
Path Parameters
Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/903000000000099/markasactive"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/903000000000099/markasactive")
  .post(null)
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'POST',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers/903000000000099/markasactive', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("POST", "/billing/v1/customers/903000000000099/markasactive", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "POST",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/903000000000099/markasactive",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request POST \
  --url https://www.zohoapis.com/billing/v1/customers/903000000000099/markasactive \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "The customer has been marked as active."
}
                Mark as inactive
            Change status of the customer to inactive. A cutomer can be marked as inactive only if there is no active subscription associated with the customer.
              
              OAuth Scope : ZohoSubscriptions.customers.CREATE
          
Path Parameters
Headers
headers_data = Map();
headers_data.put("X-com-zoho-subscriptions-organizationid", "10234695");
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/billing/v1/customers/903000000000099/markasinactive"
type: POST
headers: headers_data
connection: <connection_name>
];
info response;
              OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
  .url("https://www.zohoapis.com/billing/v1/customers/903000000000099/markasinactive")
  .post(null)
  .addHeader("X-com-zoho-subscriptions-organizationid", "10234695")
  .addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
  .build();
Response response = client.newCall(request).execute();
              const options = {
  method: 'POST',
  headers: {
    'X-com-zoho-subscriptions-organizationid': '10234695',
    Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
  }
};
fetch('https://www.zohoapis.com/billing/v1/customers/903000000000099/markasinactive', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
              import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = {
    'X-com-zoho-subscriptions-organizationid': "10234695",
    'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
    }
conn.request("POST", "/billing/v1/customers/903000000000099/markasinactive", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
              const http = require("https");
const options = {
  "method": "POST",
  "hostname": "www.zohoapis.com",
  "port": null,
  "path": "/billing/v1/customers/903000000000099/markasinactive",
  "headers": {
    "X-com-zoho-subscriptions-organizationid": "10234695",
    "Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
  }
};
const req = http.request(options, function (res) {
  const chunks = [];
  res.on("data", function (chunk) {
    chunks.push(chunk);
  });
  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
req.end();
              curl --request POST \
  --url https://www.zohoapis.com/billing/v1/customers/903000000000099/markasinactive \
  --header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
  --header 'X-com-zoho-subscriptions-organizationid: 10234695'
              {
    "code": 0,
    "message": "The customer has been marked as inactive."
}