About ListOrgs
Lists the organizations that the current user has permission to access.
In your request:
- Set
devKey
as your sandbox developer key - Set
username
andpassword
as your Bill.com email address and password
Example
Request
curl --request POST \
'https://api-sandbox.bill.com/api/v2/ListOrgs.json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'devKey={developer_key}' \
--data 'userName={email_address}' \
--data 'password={password}'
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" :
[{
"orgId" : "00801NYKJUYQGORGID1",
"orgName" : "Ceribelli Associates"
},
{
"orgId" : "00801ZKGVCJAAORGID2",
"orgName" : "Matisse Design"
}]
}
Parameters
Request parameters
Field Name | Description | Required? |
---|---|---|
userName | The email that is used to login to the Bill.com account. | Yes |
password | The password that is used to login to the Bill.com account. | Yes |
devKey | The developer key that was shared when API access was provisioned. | Yes |