グラフAPIバージョン

    Whats App Business Phone Number Register

    読み取り

    このエンドポイントではこの操作を実行できません。

    作成

    Register a business phone number for use with WhatsApp Cloud API. See Registering Phone Numbers for additional information about registering business phone numbers programmatically.

    registerのエッジにPOSTリクエストを以下のパスで送信できます:
    When posting to this edge, no Graph object will be created.

    Requirements

    TypeDescription

    Access Tokens

    User or System User

    Permissions

    whatsapp_business_management

    Request Syntax

    POST /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/register

    Post Body

    {
      "messaging_product": "whatsapp",
      "pin": "<TWO_STEP_VERIFICATION_PIN>",
      "data_localization_region": "<LOCAL_STORAGE_COUNTRY>", // Only if enabling local storage
      "backup": "<BACKUP_DATA>" // Only if migrating from On-Premises API to Cloud API
    }

    Example Request

    curl 'https://graph.facebook.com/v21.0/110200345501442/register' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer EAAJB...' \
    -d '
    {
      "messaging_product": "whatsapp",
      "pin": "123456"
    }'
    

    Example Response

    {
      "success": true
    }
    

    パラメーター

    パラメーター説明
    backup
    JSON object

    Business phone number migration backup data. See Migrating from On-Premises API to Cloud API.

    password
    string

    password

    data
    string

    data

    messaging_product
    enum {WHATSAPP}

    Messaging product. Set to WHATSAPP.

    必須
    pin
    string

    Business phone number two-step verification PIN.

    必須

    戻り値の型

    Struct {
    success: bool,
    }

    エラーコード

    エラー詳細
    133016Registration or Deregistration failed because there were too many attempts for this phone number in a short period of time
    100Invalid parameter
    131000Something went wrong
    131031Business Account locked
    133005Two step verification PIN Mismatch
    133006Phone number re-verification needed
    133010The account is not registered
    133015Please wait a few minutes before attempting to register this phone number
    200Permissions error
    133009Two step verification PIN Guessed Too Fast

    更新中…

    このエンドポイントではこの操作を実行できません。

    削除中です

    このエンドポイントではこの操作を実行できません。