Get Ad Account Billing Payment Transactions
I am looking to get the Billing Payment Transactions for each Ad Account under my Business Manager.
"https://graph.facebook.com/v19.0/act_{AD_ACCOUNT_ID}/transactions" Does not seem to be an active endpoint anymore.
Any recommendations?
"https://graph.facebook.com/v19.0/act_{AD_ACCOUNT_ID}/transactions" No longer active Endpoint. I don't see any available endpoint in the documentations, but I hope I am just missing something.
You can use the activities endpoint to get billing information by filtering the events. Here's how:
https://graph.facebook.com/v19.0/act_{AD_ACCOUNT_ID}?fields=id,name,activities{actor_name,application_name,date_time_in_timezone,event_time,event_type,extra_data,object_name,object_type,translated_event_type}
Filter by event_type: Look for "event_type": "ad_account_billing_charge" to get the relevant transactions. This method helps you track billing charges associated with your ad accounts.
facebook api response
screenshot facebook business payment activity
yeah but it doesnt return invoice id