Getting scope error(23:Invalid Scope Passed) while creating invoice using zoho invoice api.
I am new to zoho invoice api, I want to create invoice for one of my application and I choose to use invoice api. I red the documentation.
I am facing scope error while creating invoice.
I am using url
and parameters as
?SCOPE=ZohoInvoice/invoiceapi&EMAIL_ID=[ZohoID/EmailID]&PASSWORD=[Password]
to generate
authtoken from my java application api.
and following is my service to create invoice
RequestBody formBody = new FormBody.Builder().add("JSONString", invoiceRequest.toString()).build();
Request request = new Request.Builder().url("https://invoice.zoho.com/api/v3/invoices").post(formBody)
.addHeader("Authorization", "Zoho-authtoken " + zohoEntities.getInvoiceAuthToken())
.addHeader("X-com-zoho-invoice-organizationid", zohoEntities.getOrganizationId())
-
.addHeader(
"Content-Type"
,
"application/x-www-form-urlencoded;charset=UTF-8"
)
.addHeader(
"Cache-Control"
,
"no-cache"
).build();
response = client.newCall(request).execute();
I have a doubt that scope I used (
ZohoInvoice/invoiceapi)
will support the creation invoice or we need any other scope.
In documentation mentioned authentication going to
be deprecated.
to get access token and refresh tokens.
Thanks,
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.