图谱 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

错误代码

错误描述
100Invalid parameter

创建

你无法在此端点执行该操作。

更新

你可以向 /{extended_credit_invoice_group_id} 发出 POST 请求,以更新 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,
}

错误代码

错误描述
100Invalid parameter

删除

你可以向 /{extended_credit_invoice_group_id} 发出“删除”请求来删除 an ExtendedCreditInvoiceGroup

参数

这个端点不包含任何参数。

返回类型

Struct {
success: bool,
}

错误代码

错误描述
100Invalid parameter
你可以向 /{extended_credit_invoice_group_id}/ad_accounts 发出 DELETE 请求,将 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,
}

错误代码

错误描述
100Invalid parameter