그래프 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/v19.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

    data_localization_region
    enum {AE, AU, BH, BR, CA, CH, DE, GB, ID, IN, JP, KR, SG, ZA}

    Country where data-at-rest should be stored. See Local Storage.

    messaging_product
    enum {WHATSAPP}

    Messaging product. Set to WHATSAPP.

    필수
    pin
    string

    Business phone number two-step verification PIN.

    필수

    반환 유형

    Struct {
    success: bool,
    }

    오류 코드

    오류설명
    100Invalid parameter
    133016Registration or Deregistration failed because there were too many attempts for this phone number in a short period of time
    133005Two step verification PIN Mismatch
    133015Please wait a few minutes before attempting to register this phone number
    131009Parameter value is not valid
    131031Business Account locked
    133006Phone number re-verification needed
    200Permissions error
    131000Something went wrong
    133009Two step verification PIN Guessed Too Fast

    업데이트 중

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

    삭제 중

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