wchavez | 2019-11-28 14:27:55 UTC | #1
Good morning Forum:
I am looking for a solution to this scenario. Genesys enable us the use of the Billing API to check the billing account conditions of our authorized organizations. But we need also access to our information via the API endpoints to create an automated report to sent it to the Managers.
We are checking the /api/v2/billing/trusteebillingoverview/{trustorOrgId} to check the detailed billing information but if we replace the trustorOrgId to our organization id it shows us a 403 - Not Authorized error because is not an authorized organization.
It is possible to associate our organization as an authorized organization and stablish a reflexive relation or what is the best practice to get access to this information to be stored in a custom system?
I appreciate your help.
tim.smith | 2019-12-02 15:16:28 UTC | #2
For GET /api/v2/billing/trusteebillingoverview/{trustorOrgId}, the path parameter trustorOrgId is documented as:
The organization ID of the trustor (customer) organization.
It would make sense that this isn't going to work for your own org since your own org is not a trusor of itself. GET /api/v2/billing/reports/billableusage Should give you information about the org you're currently authenticated with.
wchavez | 2019-12-05 15:16:20 UTC | #3
Thank you Tim.
Yes, the first API endpoint brings us more detailed information about the costs than the second, but only works with the trusted organization IDs. That is what we still are looking for to do in our organization context.
Thank you for your help and recommendations.
tim.smith | 2019-12-05 16:53:17 UTC | #4
If there's information you need that's not available via the API, you can request enhancements and new features at https://purecloud.ideas.aha.io/ideas.
system | 2020-01-05 16:53:22 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 6598