Retrieving Billing Groups
Retrieving All Billing Groups
Using the GET method, you can retrieve your Billing Groups.
- Retrieve All - GET https://edgeapi.marchex.io/marketingedge/v5/api/billinggroups
The following sample request can be used to retrieve all Billing Groups. Note that the results of this request do not use pagination as defined in the Paging Results section of this documentation, but rather will return all data in a single page/result set.
curl -H "x-organization-token: {authorization_token}" \
-H "subscription-key: {subscription_key}" \
-X GET \
"https://edgeapi.marchex.io/marketingedge/v5/api/billinggroups"
If the request is handled successfully, the following response will be returned:
{
"billing_group_id": 9231,
"billing_group_name": "Sales",
"status": "active",
"children": [
{
"billing_group_id": 9235,
"billing_group_name": "Sales Billing Group Child",
"status": "active",
"parent_id": 9231
}
]
}
Retrieving a Billing Group
Using the GET method, you can retrieve an individual Billing Group.
- Retrieve Individual - GET https://edgeapi.marchex.io/marketingedge/v5/api/billinggroups/{billing_group_id}
The following sample request can be used to retrieve a single Billing Group:
curl -H "x-organization-token: {authorization_token}" \
-H "subscription-key: {subscription_key}" \
-X GET \
"https://edgeapi.marchex.io/marketingedge/v5/api/billinggroup/12423258"
If the request is handled successfully, the following response will be returned:
{
"billing_group_id": 12423258,
"billing_group_name": "Sales",
"status": "active",
"children": [
{
"billing_group_id": 12424827,
"billing_group_name": "Sales Billing Group Child",
"status": "active",
"parent_id": 9231
}
]
}
Updated over 2 years ago