Graph API Version

Extended Credit Owning Credit Allocation Configs

Reading

Credit allocation configs which are allocated from this extended credit.

Example

Graph API Explorer
GET /v6.0/{extended-credit-id}/owning_credit_allocation_configs 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}/owning_credit_allocation_configs',
    '{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}/owning_credit_allocation_configs",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{extended-credit-id}/owning_credit_allocation_configs",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{extended-credit-id}/owning_credit_allocation_configs"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

ParameterDescription
receiving_business_id
numeric string or integer

ID of the receiving business of the credit allocation config

Fields

Reading from this edge will return a JSON formatted result:

{ "data": [], "paging": {} }

data

A list of ExtendedCreditAllocationConfig nodes.

paging

For more details about pagination, see the Graph API guide.

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can make a POST request to owning_credit_allocation_configs edge from the following paths:
When posting to this edge, an ExtendedCreditAllocationConfig will be created.

Parameters

ParameterDescription
amount
Positive float

The amount of this allocation. You should only set it if the credit allocation type is FIXED

liability_type
enum {, Normal, Sequential, MSA}

The terms that will be applicable to ad account under the receiving party using this credit line. Sequential: https://www.facebook.com/legal/sequential_invoicing_terms, Normal: https://www.facebook.com/terms_ads_invoicing.php

partition_type
enum {FIXED, AUTH}

Fixed partition or unrestricted credit partition

receiving_business_id
numeric string or integer

The business that you are going to allocate credit to

Required
send_bill_to
enum {, Agency, Advertiser}

Whether invoices will by default go to the credit line owner or the receiving party. AGENCY will send to the receiving party, ADVERTISER to the owner

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
}

Validation Rules

ErrorDescription
100Invalid parameter
4000A credit allocation already exists between your business and the designated business.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.