You can use Registry search API to search across all businesses Link . For searching specifically by account id, you should be able to utilize the latest postman collection, once its available (See 2 below)
Yes, that’s the correct link. We are targeting to have the updated collection for Affiliation flow uploaded early this week. I will update you as soon as its up.
Thanks @vsi for the response!
On trying the GET /orgs/:account_id/affiliations , I got the following error with 504 Gateway Timeout. Is it because the account doesn’t have any affiliations? Won’t the businesses created in the sandbox be automatically affiliated with the account?
Please advise.
{
"errorMessage": "API backend third party service error.",
"rootCause": "{\"fault\":{\"faultstring\":\"Gateway Timeout\",\"detail\":{\"errorcode\":\"messaging.adaptors.http.flow.GatewayTimeout\",\"reason\":\"TARGET_READ_TIMEOUT\"}}}"
}
Hey @vsi,
The request url is https://sandbox.api.connect.gov.bc.ca/auth/api/v1/orgs/:account_id/affiliations and I had substituted the account_id param with the same value as the account-id set in the request headers.
While the above mentioned endpoint still gives the gateway timeout error, I was able to make a successful request using the https://sandbox.api.connect.gov.bc.ca/auth/api/v1/orgs/:org_id/affiliations/:business_identifier. Which answered my question about businesses created in the sandbox being automatically affiliated with the account!
I had submitted a few business identifiers for enabling the affiliations testing using this support form and did not yet receive a confirmation about the update. But I noticed that the business identifiers I had submitted in the form had the passCodeClaimed: false property value and the others passCodeClaimed: true(which I assume is the default for businesses created using API system?). Does this mean that the businesses are ready for testing and if so, are there fake passcodes that can be used for creating affiliation for these business identifiers?