그래프 API 버전

WhatsApp Business Account

Represents a specific WhatsApp Business Account (WABA). Make the API call to the WABA ID.

WhatsApp Business 계정의 ID를 찾으려면 비즈니스 관리자 > 비즈니스 설정 > 계정 > WhatsApp Business 계정으로 이동합니다. 사용하려는 계정을 찾아서 클릭합니다. 계정 정보(ID 포함)가 있는 패널이 열립니다.

For more information on how to use the API, see WhatsApp Business Management API.

The following API calls are subject to Business Use Case Rate Limits:

  • GET, POST, and DELETE calls to /{whats-app-business-account-id}/assigned_users
  • GET calls to /{whats-app-business-account-id}

읽기

Returns the account information of a WhatsApp Business Account

Example

Requirements

  • whatsapp_business_management permission

  • whatsapp_business_messaging permission

  • public_profile permission

  • WhatsApp Business Account (WABA) ID

  • USER ACCESS TOKEN

Request

curl -i -X GET \
 "https://graph.facebook.com/LATEST-VERSION/WHATSAPP-BUSINESS-ACCOUNT-ID?access_token=USER-ACCESS-TOKEN"
GraphRequest request = GraphRequest.newGraphPathRequest(
  accessToken,
  "/WHATSAPP-BUSINESS-ACCOUNT-ID",
  new GraphRequest.Callback() {
    @Override
    public void onCompleted(GraphResponse response) {
      // Insert your code here
    }
});

request.executeAsync();
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
    initWithGraphPath:@"/WHATSAPP-BUSINESS-ACCOUNT-ID"
           parameters:nil
           HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
    // Insert your code here
}];

Response

{
  "id": "WHATSAPP-BUSINESS-ACCOUNT-ID",
  "name": "Test WhatsApp Business Account",
  "timezone_id": "1",
  "message_template_namespace": "MESSAGE-TEMPLATE-NAMESPACE"
}

매개변수

이 엔드포인트는 매개변수가 없습니다.

필드

필드설명
analytics

Used to designate which analytics metrics you want returned. See Analytics.

business_verification_status
enum {expired, failed, ineligible, not_verified, pending, pending_need_more_info, pending_submission, rejected, revoked, verified}

Current status of business verification of Meta Business Account which owns this WhatsApp Business Account

country
string

country of the WhatsApp Business Account's owning Meta Business account

currency
string

The currency in which the payment transactions for the WhatsApp Business Account will be processed

is_enabled_for_insights
bool

If true, indicates the WhatsApp Business Account enabled template analytics. See Analytics.

message_template_namespace
string

Namespace string for the message templates that belong to the WhatsApp Business Account

name
string

User-friendly name to differentiate WhatsApp Business Accounts

on_behalf_of_business_info
WABAOnBehalfOfComputedInfo

The "on behalf of" information for the WhatsApp Business Account

ownership_type
enum

Ownership type of the WhatsApp Business Account

primary_funding_id
numeric string

Primary funding ID for the WhatsApp Business Account paid service

purchase_order_number
string

The purchase order number supplied by the business for payment management purposes

timezone_id
string

The timezone of the WhatsApp Business Account

에지

Edge설명
Edge<WhatsAppBusinessActivityHistory>

activities

Edge<WABACallAnalytics>

Analytics data of the WhatsApp Business Account for calling

Edge<WABAConversationAnalytics>

Analytics data of the WhatsApp Business Account with conversation based pricing

Edge<Dataset>

ID of the dataset

Edge<WhatsAppBusinessDirectConnectionExternalConfig>

Returns a list of DCC configs

Edge<WhatsAppBusinessAccountMessageTemplatePreview>

Retrieves a preview of a message template based on the provided configuration

Edge<WhatsAppBusinessHSM>

Message templates that belong to the WhatsApp Business Account

Edge<WhatsAppBusinessAccountPaymentConfiguration>

Fetch payment configuration attached to the WhatsApp Business Account.

Edge<WhatsAppBusinessAccountPaymentConfigurations>

Fetch all payment configurations attached to the WhatsApp Business Account.

Edge<WhatsAppBusinessAccountToNumberCurrentStatus>

The phone numbers that belong to the WhatsApp Business Account

Edge<ProductCatalog>

product_catalogs

Edge<WhatsAppBusinessSolution>

Partner solutions that this WhatsApp Business Account is linked to

Edge<WhatsAppApplication>

List of apps that are subscribed to webhooks updates for this WABA

Edge<WhatsAppBusinessHSMWhatsAppBusinessPerformanceMetrics>

template_performance_metrics

오류 코드

오류설명
200008WhatsApp Business Account has no linked phone numbers.
100Invalid parameter
80008There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting.
200Permissions error
200005Template Insights are not available yet for this WhatsApp Business account
190Invalid OAuth 2.0 Access Token
2500Error parsing graph query

만들기

이 엔드포인트에서 수행할 수 없는 작업입니다.

업데이트 중

/{whats_app_business_account_id}/assigned_users에 POST 요청을 하여 a WhatsAppBusinessAccount을(를) 업데이트할 수 있습니다.

매개변수

매개변수설명
tasks
array<enum {MANAGE, DEVELOP, MANAGE_TEMPLATES, MANAGE_PHONE, VIEW_COST, MANAGE_EXTENSIONS, VIEW_PHONE_ASSETS, MANAGE_PHONE_ASSETS, VIEW_TEMPLATES, MESSAGING}>

Permissions on WhatsApp Business Account

필수
user
UID

Business user ID

필수

반환 유형

이 엔드포인트는 기록 후 읽기 기능을 지원하며 회원님이 게시한 노드를 읽습니다.
Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
200Permissions error
80008There have been too many calls to this WhatsApp Business account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting.

삭제 중

/{whats_app_business_account_id}/assigned_users에 DELETE 요청을 만들어 a WhatsAppBusinessAccount에서 a WhatsAppBusinessAccount을(를) 분리할 수 있습니다.

매개변수

매개변수설명
user
UID

Business user ID

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter

Supported values

Currencies

Supported values for currency codes can be found in currencies.

Time Zones

Supported values for time zones can be found in timezone ids.