curl --request GET \
--url https://api.interchange.io/api/v2/billing/media-entities/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/billing/media-entities/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/billing/media-entities/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"entity": {
"id": 0,
"entityName": "<string>",
"countryCode": "US",
"currency": "USD",
"billingEmails": [
"jsmith@example.com"
],
"addressLine1": "<string>",
"city": "<string>",
"postalCode": "<string>",
"isPrimary": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"addressLine2": "<string>",
"state": "<string>",
"taxId": "<string>"
},
"resolvedVia": "advertiser"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Resolve media billing entity
Preview which configured media billing entity matches an advertiser or account (exactly one of advertiserId/childCustomerId): the advertiser’s attachment wins, else its owning account’s attachment, else the org PRIMARY entity when one exists, else unresolved. Purely structural; the invoice producer does not consume this result yet.
curl --request GET \
--url https://api.interchange.io/api/v2/billing/media-entities/resolve \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.interchange.io/api/v2/billing/media-entities/resolve"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.interchange.io/api/v2/billing/media-entities/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"entity": {
"id": 0,
"entityName": "<string>",
"countryCode": "US",
"currency": "USD",
"billingEmails": [
"jsmith@example.com"
],
"addressLine1": "<string>",
"city": "<string>",
"postalCode": "<string>",
"isPrimary": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"addressLine2": "<string>",
"state": "<string>",
"taxId": "<string>"
},
"resolvedVia": "advertiser"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Query Parameters
Resolve the media billing entity for this advertiser. Exactly one of advertiserId/childCustomerId must be provided.
Resolve the media billing entity for this account (child customer). Exactly one of advertiserId/childCustomerId must be provided.
Response
Resolve media billing entity
Previews which configured media billing entity matches an advertiser or account and which hierarchy level supplied it. The invoice producer does not consume this result yet.
The entity selected by the configuration preview, or null when the org has no matching or primary entity.
Show child attributes
Show child attributes
"advertiser" (the advertiser has its own attachment), "account" (its owning account does), "org" (the org primary fallback), or "none" (the org has no matching or primary entity).
advertiser, account, org, none