-
Release Notes
- July 8, 2024
- May 22, 2024
- April 17, 2024
- March 20, 2024
- February 22, 2024
- January 18, 2024
- 2023 Releases
- 2022 Releases
-
2021 Releases
- December 20, 2021
- December 1, 2021
- November 22, 2021
- November 4, 2021
- October 26, 2021
- September 30, 2021
- September 22, 2021
- September 2, 2021
- August 16, 2021
- August 2, 2021
- July 19, 2021
- July 1, 2021
- June 17, 2021
- June 1, 2021
- April 30, 2021
- April 8, 2021
- March 25, 2021
- March 15, 2021
- February 25, 2021
- February 8, 2021
- January 28, 2021
- January 21, 2021
- January 13, 2021
- 2020 Releases
- Getting Started
- Ports
- Cross Connects
- Point-to-Point
- Virtual Circuits
- Cloud Connections
- Cloud Router
- Marketplace & IX
- Administration
- Billing
- Troubleshooting & FAQ
- Technical Reference
- Partners Portal
- API & Automation
Get the Account UUID
When ordering a service through the API, you will be asked to supply an account ID. This account ID is tied to the billing account that should be used for the order.
You can find this ID via the portal by navigating to Billing > Billing Accounts.
To find this information via the API, use the following call: https://api.packetfabric.com/v2/contacts?billing=true
This API call must be authorized. For information on how to authorize calls and use the following tools, see the following:
- Using Postman with the PacketFabric API
- Using cURL with the PacketFabric API
- Using Python Requests with the PacketFabric API
Postman
-
Open Postman and click the plus icon to add a new request.
-
Select GET from the drop-down menu that appears before the URL field.
-
Enter the following API call into the URL field:
https://api.packetfabric.com/v2/contacts?billing=true
-
Ensure you have a bearer token in place (see Using Postman with the PacketFabric API).
-
Click Send.
The response is a list of all the billing accounts associated with your company’s PacketFabric account. Find the one you want to use and take note of the account_uuid
value.
cURL
curl -X GET https://api.packetfabric.com/v2/contacts?billing=true -H "accept: */*" -H "Authorization: Bearer replace_with_api_key"
Requests
import requests
api_key = 'replace_with_api_key'
request_header = {
'Authorization': f'Bearer {api_key}'
}
get_url = 'placeholder_api.packetfabric.com/v2/contacts?billing=true'
api = requests.get(get_url, headers=request_header)
print(api.json())
Updated on 10 Jul 2022