Hi Sumiya,
This could be because there are no “Open” months to generate billing docs for.
You can create billing documents only for “open” months. These are complete calendar months for which you have not yet published billing documents. After you publish billing documents for a month, that month is “closed”. You cannot generate billing documents for a closed month.
You can get a list of billing months and their open or closed status by issuing a Management API GET request to /organizations/{org_name}/billing-documents-months. For example:
$ curl -H "Accept:application/json"-X GET \
"https://{Apige Edge Management API}/v1/mint/organizations/{org_name}/billing-documents-months" \
-u email:password
The response should look something like this:
[{"month":6,"monthEnum":"JUNE","status":"OPEN","year":2013},{"month":3,"monthEnum":"MARCH","status":"OPEN","year":2013},{"month":7,"monthEnum":"JULY","status":"OPEN","year":2013},{"month":5,"monthEnum":"MAY","status":"OPEN","year":2013},{"month":4,"monthEnum":"APRIL","status":"CLOSED","year":2013}]
You can also get the billing document status for a specific month by issuing a GET request to /organizations/{org_name}/billing-documents-status-for-month. When you make the request, you need to specify query parameters for the billing month and year. For example, the following requests the billing documents status for May, 2013:
$ curl -H "Accept:application/json"-X GET \
"https://{Apige Edge Management API}/v1/mint/organizations/{org_name}/billing-documents-status-for-month?billingYear=2013&billingMonth=MAY" \
-u email:password
The response should look something like this:
[{“orgDescription”:“{org_name} Test”,“orgId”:“{org_name}”,“orgName”:“{org_name}”,“status”:“OPEN”}]
Please try out the above APIs to see if there are any “Open” months.