그래프 API 버전

Extended Credit

Represents a specific credit line. Make the API call to the credit line ID.

To find the extended credit ID, call https://graph.facebook.com/v21.0/{business_id}/extendedcredits?fields=id,legal_entity_name.

읽기

An Extended Credit object. Queryable id obtainable using {business_id}/extendedcredits and then filtering on legal_entity_name.

Graph API Explorer
GET /v21.0/{extended-credit-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-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-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{extended-credit-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-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
그래프 API를 사용하는 방법을 알아보려면 그래프 API 사용 가이드를 읽어보세요.

매개변수

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

필드

필드설명
id
numeric string

The ID of the extended credit line.

allocated_amount
CurrencyAmount

The total amount of credit that has been granted to other businesses. Going forward, credentials are measured in USD at the top level, and attachable to ad accounts of multiple currencies.

balance
CurrencyAmount

The total amount spent. This is calculated by adding parent ad account and all child ad accounts. Credentials are measured in USD at the top level and are attachable to ad accounts of multiple currencies.

credit_available
CurrencyAmount

The credit available to this business.

credit_type
enum

The type of extended credit used. The most common are ADS_BUSINESS, ADS_SEQUENTIAL, and WHATSAPP_BUSINESS.

is_access_revoked
bool

Returns true if credit owner removed access for previously shared credit line.

is_automated_experience
bool

Returns true if this credential is using the fully automated experience.

legal_entity_name
string

The legal entity name of the owner of a line.

liable_biz_name
string

When this credit is chosen as the payment method, the business name of the liable_party.

max_balance
CurrencyAmount

The amount of credit available to a specific business. Going forward, credentials are measured in USD at the top level, and attachable to ad accounts of multiple currencies.

online_max_balance
CurrencyAmount

The raw credit limit for an entire business. Going forward, credentials are measured in USD at the top level, and attachable to ad accounts of multiple currencies.

owner_business

The business account responsible for extended credit payment.

owner_business_name
string

The name of the business account responsible for extended credit payment.

partition_from
string

The name of the business that granted the credit line. For ADS_SEQUENTIAL credit types.

receiving_credit_allocation_config
ExtendedCreditAllocationConfig

The allocation configuration in which this extended credit line is the receiver.

send_bill_to_biz_name
string

Specifies the business name to bill (bill_to_party) when this credit is chosen as the payment method.

에지

Edge설명
Edge<ExtendedCreditInvoiceGroup>

Invoice group for extended credit account, all ad accounts in the same group will generate one consolidated invoice.

Edge<ExtendedCreditAllocationConfig>

All allocation configurations in which this extended credit line is the owner.

오류 코드

오류설명
100Invalid parameter
190Invalid OAuth 2.0 Access Token

만들기

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

업데이트 중

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

삭제 중

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