Skip to content

ADB02 - Get billing reports details

Request

Description

When the Leftover Offsite Google Shopping feature is active, Mirakl Ads generates a dedicated monthly billing report for offsite campaigns (buying_type: LEFTOVER_OFFSITE). This report follows a different generation schedule than onsite billing reports.

Generation schedule

Offsite monthly report: Generated automatically on the 2nd of the following month at approximately 06:00 UTC.

Onsite reports: Generated according to the billing frequency configured in Mirakl Ads (for example, daily at approximately 00:00 UTC).

Because both report types can be generated on the same day, use the creation time to distinguish them.

Selection rule

To retrieve the offsite monthly billing report for month M, select the report created on the 2nd of month M+1 at approximately 06:00 UTC.

Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:

  • billingStartTime (Default) - Sort by start date (asc by default)
  • billingEndTime - Sort by end date (asc by default)
  • recipientType - Sort by recipient type (asc by default)

Path
billingReportIdstringrequired

The billing report id

curl -i -X GET \
  'https://retailmedia.mirakl.net/api/v1/billing-report/{billingReportId}'

Responses

Get billing report details

Bodyapplication/json
countobjectrequired

Total data count

dataArray of objectsrequired

Page of data

next_page_tokenstring

Token to access the next page. Absent if the current page is the last one.

previous_page_tokenstring

Token to access the previous page. Absent if the current page is the first one.

Response
{ "count": { "capped": true, "counted": 1 }, "data": [ { … } ], "next_page_token": null, "previous_page_token": null }