그래프 API 버전

Extended Credit Allocation Config

읽기

Represents a relationship between two business portfolio for the purpose of sharing credit line between them.

Graph API Explorer
GET /v21.0/{extended-credit-allocation-config-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/{extended-credit-allocation-config-id}',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "/{extended-credit-allocation-config-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{extended-credit-allocation-config-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{extended-credit-allocation-config-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
그래프 API를 사용하는 방법을 알아보려면 그래프 API 사용 가이드를 읽어보세요.

매개변수

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

필드

필드설명
id
numeric string

ID

currency_amount
CurrencyAmount

The currency amount this allocation is for. If amount is zero then this allocation could be inactive or simply an authorization. Default: 0

liability_type
enum

The liability terms of this business relationship

owning_business

The business owning the credential that credit is being requested from

owning_credential

Extended credit object that will be providing credit

partition_type
enum

Fixed partition or unrestricted credit partition

receiving_business

The business that will be receiving the allocation

receiving_credential

Extended credit object that will be receiving credit

request_status
enum

If this allocation is pending acceptance from another party

send_bill_to
enum

Determines where invoices are sent by default. This is an indication of who will receive invoices in this business relationship, but invoices can also be sent to separately configured email address. AGENCY will result in invoices sent to the receiving party while ADVERTISER will result in invoices sent to the owning party

만들기

다음 경로에서 owning_credit_allocation_configs 에지에 POST 요청을 만들 수 있습니다:
이 에지에 게시할 때 an ExtendedCreditAllocationConfig이(가) 생성됩니다.

매개변수

매개변수설명
amount
Positive float

The amount of this allocation. You should only set it if the credit allocation type is FIXED

liability_type
enum {, Normal, Sequential, MSA}

The terms that will be applicable to ad account under the receiving party using this credit line. Sequential: https://www.facebook.com/legal/sequential_invoicing_terms, Normal: https://www.facebook.com/terms_ads_invoicing.php

partition_type
enum {FIXED, AUTH, FIXED_WITHOUT_PARTITION}

Fixed partition or unrestricted credit partition

receiving_business_id
numeric string or integer

The business that you are going to allocate credit to

필수
send_bill_to
enum {, Agency, Advertiser}

Whether invoices will by default go to the credit line owner or the receiving party. AGENCY will send to the receiving party, ADVERTISER to the owner

반환 유형

이 엔드포인트는 기록 후 읽기를 지원하며 반환 유형에서 id로 표시되는 노드를 읽습니다.
Struct {
id: numeric string,
requires_additional_approval: enum,
}

오류 코드

오류설명
4000A credit allocation already exists between your business and the designated business.
200Permissions error
100Invalid parameter
다음 경로에서 whatsapp_credit_sharing_and_attach 에지에 POST 요청을 만들 수 있습니다:
이 에지에 게시할 때 an ExtendedCreditAllocationConfig이(가) 생성됩니다.

매개변수

매개변수설명
waba_currency
string

The ISO-4217-3 currency code

필수
waba_id
numeric string or integer

Id of the WhatsApp Business Account you are sharing credit line with

필수

반환 유형

이 엔드포인트는 기록 후 읽기를 지원하며 반환 유형에서 id로 표시되는 노드를 읽습니다.
Struct {
allocation_config_id: numeric string,
waba_id: numeric string,
}

오류 코드

오류설명
100Invalid parameter
200Permissions error
457The session has an invalid origin

업데이트 중

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

삭제 중

/{extended_credit_allocation_config_id}/ExtendedCreditOwningCreditAllocationConfigs에 DELETE 요청을 만들어 an ExtendedCreditAllocationConfig에서 an ExtendedCreditAllocationConfig을(를) 분리할 수 있습니다.

매개변수

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

반환 유형

Struct {
success: bool,
}