Commerce Merchant Settings object
Starting September 14, 2021, the following fields will throw an error for version 12.0+ calls made by apps that lack the endpoint's required permissions. This change will apply to all versions on December 13, 2021.
instagram_channel
GET /v17.0/{commerce-merchant-settings-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(
'/{commerce-merchant-settings-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(
"/{commerce-merchant-settings-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{commerce-merchant-settings-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:@"/{commerce-merchant-settings-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Field | Description |
---|---|
id numeric string | ID of the Commerce Merchant Settings |
braintree_merchant_id string | The Braintree Merchant ID (for BigCommerce) |
checkout_message string | Checkout Message of Commerce Merchant Settings |
contact_email string | Contact email of Commerce Merchant Settings |
cta enum | Shop's CTA (ie. onsite checkout, offsite, or contact-merchant) |
disable_checkout_urls bool | Ignore checkout_urls for offsite links forthis merchant, if they exist on products. |
display_name string | Business display name |
external_merchant_id string | Merchant Identifier on External Partner Platforms (i.e. Shopify) |
CommerceFacebookChannel | Facebook channel settings |
feature_eligibility CommerceMerchantSettingsFeatureEligibility | Returns feature eligibilities for the Commerce Merchant Settings |
has_discount_code bool | Whether or not this merchant has discount code |
has_onsite_intent bool | This merchant selected onsite checkout during setup |
CommerceInstagramChannel | Instagram channel settings |
merchant_alert_email string | Place to send alert emails for the merchant |
merchant_page | Profile of the merchant selling products |
merchant_status enum | Current status of the merchant |
onsite_commerce_merchant CommerceMerchantSettingsOnsiteCommerceMerchant | Commerce Merchant Settings Info for the new commerce platform API |
payment_provider enum | Payment Provider for Commerce Merchant Settings |
privacy_url_by_locale list<KeyValue:string,string> | Map from locale to merchant privacy policy url. The locale follows the format of concatenating ISO language and country code with an underscore. For instance, en_US represents U.S. English. |
review_rejection_messages list<string> | Descriptive rejection messages corresponding to the given rejection reasons, if applicable |
review_rejection_reasons list<enum> | Reasons the merchant was rejected on review (for onboarding requests or performance metrics), if applicable |
supported_card_types list<enum> | Credit card types supported by the merchant |
terms string | Terms of Commerce Merchant Settings |
terms_url_by_locale list<KeyValue:string,string> | Map from locale to merchant terms url. The locale follows the format of concatenating ISO language and country code with an underscore. For instance, en_US represents U.S. English. |
CommerceWhatsAppChannel | WhatsApp Channel Settings |
Edge | Description |
---|---|
Orders for this merchant | |
The commerce payouts of this Page | |
App ID that is authorized to manage this shop | |
Product catalogs attached to this merchant | |
Order Returns for this Merchant | |
seller_issues | |
Onboarding status for this merchant | |
The shops associated with the merchant. | |
Tax settings including information about fulfillment locations |
Error | Description |
---|---|
100 | Invalid parameter |
200 | Permissions error |