Graph API 版本

Omega Customer Trx

閱讀中

An invoice generated for a user of the monthly invoicing feature.

例子

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

參數

這個端點沒有任何參數。

欄位

欄位描述
id
numeric string

Internal id for the invoice

ad_account_ids
list<numeric string>

The list of ad account ids this invoice is about

advertiser_name
string

The name of the advertising party listed on the invoice.

amount
numeric string

The amount of the invoice

amount_due
CurrencyAmount

The amount left to be paid, it is equal to the billed amount minus already paid amount

billed_amount_details
BilledAmountDetails

Details of the billed amount, include currency, next, tax and total amount

billing_period
string

The billing period associated with the invoice

cdn_download_uri
string

An ephemeral CDN url that can be used to download an invoice via an API call

currency
string

The currency of the invoice

download_uri
string

The download URI for the invoice pdf

due_date
datetime

Date by which this invoice is due

entity
enum

The Facebook Entity name for the transaction

invoice_date
datetime

Date of creation of the invoice

invoice_id
numeric string

Actual invoice id for the transaction

invoice_type
enum

The type of invoice, like Invoice or Credit Memo

liability_type
enum

The liability type associated with usage of this funding source

payment_status
enum

Payment status of the invoice, e.g. 'Paid', 'Partially Paid'

payment_term
enum

The expectation around when the invoice is paid. E.g. 'Net 30' implies we expect payment within 30 days

type
enum

The type of the invoice

關係連線

關係連線描述
Edge<InvoiceCampaign>

The breakdown spend at campaign level, including additional info on campaign

Error Codes

錯誤說明
100Invalid parameter

建立中

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

更新中

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

正在刪除

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