Versão Graph API

Omega Customer Trx

Leitura

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

Exemplo

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
}];
Se quiser saber como usar a Graph API, leia nosso guia sobre Como usar a Graph API.

Parâmetros

Este ponto de extremidade não tem nenhum parâmetro.

Campos

CampoDescrição
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

Bordas

BordaDescrição
Edge<InvoiceCampaign>

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

Error Codes

ErroDescrição
100Invalid parameter

Criando

Não é possível executar esta operação neste ponto de extremidade.

Atualizando

Não é possível executar esta operação neste ponto de extremidade.

Excluindo

Não é possível executar esta operação neste ponto de extremidade.