Here are the steps one would take in order to complete this.
Search for a business using Business Search Facets - GET /businesses/search/facets
Pay for the BUSINESS_SUMMARY_FILING_HISTORY docs - POST /businesses/{{identifier}}/documents/requests
Retrieve all of the filings for that business using Businesses Filings - GET /businesses/{{identifier}}/filings
Review the response, noting the filing ID and filing name of the filing you’re interested in.
Using the Business Search API once again, call this to fetch the PDF for 1 filing - GET /businesses/{identifier}/documents/filings/{filing_id}/{filing_name}
Please follow along with the postman collection as it fills in key parameters for you if you follow this sequence.
Hi @bhargavi.kallakuri . I missed a step initially, but I have edited the original topic. I forgot to include the step where you pay for the summary and filings; this is required to pull down the filings PDF.
Please give that a try and let me know if you’re still getting the authorization error.
I don’t see “POST /businesses/{{identifier}}/documents/requests” on the developer site and I tried step 2 on postman with the following details and received an error.
Response
{
“errorMessage”: “API backend third party service error.”,
“rootCause”: "message:[error:Document Access Request can be created only by a premium account user] "
}
Then, in the postman collection, note that the account ID in the header for that POST call is static instead of being a variable so you will need to update that to be your account.
Here are the headers - make sure your account ID is used:
Here’s the body. Note that businessName has been added, but is optional (will be updated in specs shortly)
Hello @bhargavi.kallakuri I am unable to reproduce your issue. If you were given an API key then your account is definitely premium, and you have stated that you entered your account ID as a parameter as well.
Can you please retry these steps in sequence with a new business just as a a sanity check against errors or omissions. Please post your calls/responses here if possible or via email is it’s easier to format.