圖形 API 版本

Extended Credit Invoice Group

閱讀中

An extended credit invoice group object

範例

Graph API Explorer
GET /v21.0/{extended-credit-invoice-group-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-invoice-group-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-invoice-group-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{extended-credit-invoice-group-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-invoice-group-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
如果想瞭解如何使用圖形 API,請參閱我們的使用圖形 API 指南

參數

這個端點沒有任何參數。

欄位

欄位說明
id
numeric string

ID

auto_enroll
bool

Shows if the adaccount using the current credit will be enrolled into the invoice group automatically

customer_po_number
string

The customer PO number of this invoice group assigned by the customer creating or editing the group

email
ExtendedCreditEmail

The invoice email object associated with this invoice group and only allow one email address associated with one group

emails
list<string>

The invoice emails attached to the invoice group

name
string

Extended credit invoice group name assigned

Error Codes

錯誤說明
100Invalid parameter

建立中

你無法在此端點執行此操作。

更新中

你可以向 /{extended_credit_invoice_group_id} 提出發佈要求,以更新 an ExtendedCreditInvoiceGroup

參數

參數說明
emails
list<string>

The emails associated to the extended credit invoice group

name
string

Extended credit invoice group name assigned

傳回類型

此端點支援寫入後讀取功能,並將讀取傳回類型表示為 id 的節點。
Struct {
id: numeric string,
}

Error Codes

錯誤說明
100Invalid parameter

刪除中

你可以向 /{extended_credit_invoice_group_id} 提出刪除要求,以刪除 an ExtendedCreditInvoiceGroup

參數

這個端點沒有任何參數。

傳回類型

Struct {
success: bool,
}

Error Codes

錯誤說明
100Invalid parameter
你可以向 /{extended_credit_invoice_group_id}/ad_accounts 提出刪除要求,中斷 an ExtendedCreditInvoiceGroup 和 an ExtendedCreditInvoiceGroup 的關聯。

參數

參數說明
ad_account_id
string

The id of the ad account that will be removed from the invoice group

必填

傳回類型

Struct {
success: bool,
}

Error Codes

錯誤說明
100Invalid parameter