HTTP Methods
Zoho Billing API uses appropriate HTTP verbs for every action.
Method | Description |
---|---|
GET | Used for retrieving resources. |
POST | Used for creating resources and performing resource actions. |
PUT | Used for updating resources. |
DELETE | Used for deleting resources. |
Using GET method, you can get the list of resources or details of a particular instance of a resource. To get a list of customers
$ curl https://www.zohoapis.com/billing/v1/customers \
-H 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
-H 'X-com-zoho-subscriptions-organizationid: 10234695'
To get the details of a customer referred to by a specified customer_id
$ curl https://www.zohoapis.com/billing/v1/customers/903000000000099 \
-H 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
-H 'X-com-zoho-subscriptions-organizationid: 10234695'