跳转到主要内容
GET
Get pricing analytics

请求规范

  • 方法与路径: GET /apis/v1/social/messaging/whatsapp/pricing-analytics
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/messaging/whatsapp/pricing-analytics
  • connectionId: query; 必填
  • start: query; 必填
  • end: query; 必填
  • granularity: query; 必填
  • dimensions: query; 可选
  • metricTypes: query; 可选
  • pricingTypes: query; 可选
  • pricingCategories: query; 可选
  • countryCodes: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

connectionId
string
必填

Your messaging connection (msc_...), from GET /apis/v1/social/messaging/connections.

Pattern: ^msc_[0-9A-Za-z]+$
start
string<date-time>
必填

Range start, ISO 8601 date or date-time.

end
string<date-time>
必填

Range end, ISO 8601 date or date-time. Must be after start.

granularity
enum<string>
必填

Size of each data point. Use DAILY for short or month-to-date ranges.

Meta refuses MONTHLY when the range is too short for a monthly bucket (for example a range that starts at the beginning of the current month and ends today). That is a 400 with param: granularity and Meta's reason in error.

可用选项:
HALF_HOUR,
DAILY,
MONTHLY
dimensions
string

Comma-separated breakdowns: COUNTRY, PHONE, PRICING_CATEGORY, PRICING_TYPE, TIER. Without it each data point is a total for the interval.

metricTypes
string

Comma-separated: COST, VOLUME. Defaults to both.

pricingTypes
string

Comma-separated filter: REGULAR, FREE_CUSTOMER_SERVICE, FREE_ENTRY_POINT.

pricingCategories
string

Comma-separated filter of Meta pricing categories, for example MARKETING, MARKETING_LITE, UTILITY, AUTHENTICATION, AUTHENTICATION_INTERNATIONAL, SERVICE, REFERRAL_CONVERSION.

countryCodes
string

Comma-separated ISO 3166-1 alpha-2 country codes to filter on.

响应

Success

connectionId
string | null
必填

One of your connections, or null when it is not one of yours.

dataPoints
object[]
必填
end
string<date-time>
必填
granularity
enum<string>
必填
可用选项:
HALF_HOUR,
DAILY,
MONTHLY
phoneNumber
string
必填

The number the data is scoped to, digits only.

start
string<date-time>
必填