グラフAPIバージョン

/{payment-id} /dispute

支払いに関する異議申し立ての解決に使用します。

読み取り

このエッジは読み取れません。親Paymentオブジェクトのdisputesフィールドを使用してください。

公開

このエッジを使って、異議申し立てを解決できます。

POST /v24.0/{payment-id}/dispute HTTP/1.1
Host: graph.facebook.com
reason=DENIED_REFUND
/* PHP SDK v5.0.0 */
/* make the API call */
try {
 // Returns a `Facebook\FacebookResponse` object
 $response = $fb->post(
 '/{payment-id}/dispute',
 array (
 'reason' => 'DENIED_REFUND',
 ),
 '{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 */
Bundle params = new Bundle();
params.putString("reason", "DENIED_REFUND");
/* make the API call */
new GraphRequest(
 AccessToken.getCurrentAccessToken(),
 "/{payment-id}/dispute",
 params,
 HttpMethod.POST,
 new GraphRequest.Callback() {
 public void onCompleted(GraphResponse response) {
 /* handle the result */
 }
 }
).executeAsync();
NSDictionary *params = @{
 @"reason": @"DENIED_REFUND",
};
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
 initWithGraphPath:@"/{payment-id}/dispute"
 parameters:params
 HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
 id result,
 NSError *error) {
 // Handle the result
}];

アクセス許可

  • アプリに関する異議申し立てを解決するには、アプリアクセストークンが必要です。
  • 支払いに関する異議申し立てが発生していなければ、呼び出しに対してエラーが返されます。

フィールド

名前 説明

reason

この異議申し立てを解決する理由。必須項目です。

enum{GRANTED_REPLACEMENT_ITEM, DENIED_REFUND, BANNED_USER}

応答

成功した場合は、次のようになります。

{
 "success": true
}

成功しなかった場合は、関連するエラーメッセージが返されます。

削除

このエッジを使って削除することはできません。

AltStyle によって変換されたページ (->オリジナル) /