[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: dispute.md
## Document ### Fetch All Disputes ```php $api->dispute->all(); ``` **Response:** ```json { "entity": "collection", "count": 1, "items": [ { "id": "disp_Esz7KAitoYM7PJ", "entity": "dispute", "payment_id": "pay_EsyWjHrfzb59eR", "amount": 10000, "currency": "INR", "amount_deducted": 0, "reason_code": "pre_arbitration", "respond_by": 1590604200, "status": "open", "phase": "pre_arbitration", "created_at": 1590059211, "evidence": { "amount": 10000, "summary": null, "shipping_proof": null, "billing_proof": null, "cancellation_proof": null, "customer_communication": null, "proof_of_service": null, "explanation_letter": null, "refund_confirmation": null, "access_activity_log": null, "refund_cancellation_policy": null, "term_and_conditions": null, "others": null, "submitted_at": null } } ] } ``` ------------------------------------------------------------------------------------------------------- ### Fetch a Dispute ```php $disputeId = "disp_0000000000000"; $api->dispute->fetch($disputeId); ``` **Parameters:** | Name | Type | Description | |-------|-----------|--------------------------------------------------| | id* | string | The unique identifier of the dispute. | **Response:** ```json { "id": "disp_AHfqOvkldwsbqt", "entity": "dispute", "payment_id": "pay_EsyWjHrfzb59eR", "amount": 10000, "currency": "INR", "amount_deducted": 0, "reason_code": "pre_arbitration", "respond_by": 1590604200, "status": "open", "phase": "pre_arbitration", "created_at": 1590059211, "evidence": { "amount": 10000, "summary": "goods delivered", "shipping_proof": null, "billing_proof": null, "cancellation_proof": null, "customer_communication": null, "proof_of_service": null, "explanation_letter": null, "refund_confirmation": null, "access_activity_log": null, "refund_cancellation_policy": null, "term_and_conditions": null, "others": null, "submitted_at": null } } ``` ------------------------------------------------------------------------------------------------------- ### Fetch a Dispute ```php $disputeId = "disp_0000000000000"; $api->dispute->fetch($disputeId)->accept(); ``` **Response:** ```json { "id": "disp_AHfqOvkldwsbqt", "entity": "dispute", "payment_id": "pay_EsyWjHrfzb59eR", "amount": 10000, "currency": "INR", "amount_deducted": 10000, "reason_code": "pre_arbitration", "respond_by": 1590604200, "status": "lost", "phase": "pre_arbitration", "created_at": 1590059211, "evidence": { "amount": 10000, "summary": null, "shipping_proof": null, "billing_proof": null, "cancellation_proof": null, "customer_communication": null, "proof_of_service": null, "explanation_letter": null, "refund_confirmation": null, "access_activity_log": null, "refund_cancellation_policy": null, "term_and_conditions": null, "others": null, "submitted_at": null } } ``` ------------------------------------------------------------------------------------------------------- ### Contest a Dispute ```php //Use this API sample code for draft $disputeId = "disp_0000000000000"; $api->dispute->fetch($disputeId)->contest(array("amount" => 5000, "summary" => "goods delivered", "shipping_proof" => array("doc_EFtmUsbwpXwBH9", "doc_EFtmUsbwpXwBH8"), "others" => array(array("type" => "receipt_signed_by_customer", "document_ids" => array("doc_EFtmUsbwpXwBH1", "doc_EFtmUsbwpXwBH7"))), "action" => "draft")); //Use this API sample code for submit $api->dispute->fetch($disputeId)->contest(array("billing_proof" => array("doc_EFtmUsbwpXwBG9", "doc_EFtmUsbwpXwBG8"), "action" => "submit")); ``` **Response:** ```json // Draft { "id": "disp_AHfqOvkldwsbqt", "entity": "dispute", "payment_id": "pay_EsyWjHrfzb59eR", "amount": 10000, "currency": "INR", "amount_deducted": 0, "reason_code": "chargeback", "respond_by": 1590604200, "status": "open", "phase": "chargeback", "created_at": 1590059211, "evidence": { "amount": 5000, "summary": "goods delivered", "shipping_proof": [ "doc_EFtmUsbwpXwBH9", "doc_EFtmUsbwpXwBH8" ], "billing_proof": null, "cancellation_proof": null, "customer_communication": null, "proof_of_service": null, "explanation_letter": null, "refund_confirmation": null, "access_activity_log": null, "refund_cancellation_policy": null, "term_and_conditions": null, "others": [ { "type": "receipt_signed_by_customer", "document_ids": [ "doc_EFtmUsbwpXwBH1", "doc_EFtmUsbwpXwBH7" ] } ], "submitted_at": null } } //Submit { "id": "disp_AHfqOvkldwsbqt", "entity": "dispute", "payment_id": "pay_EsyWjHrfzb59eR", "amount": 10000, "currency": "INR", "amount_deducted": 0, "reason_code": "chargeback", "respond_by": 1590604200, "status": "under_review", "phase": "chargeback", "created_at": 1590059211, "evidence": { "amount": 5000, "summary": "goods delivered", "shipping_proof": [ "doc_EFtmUsbwpXwBH9", "doc_EFtmUsbwpXwBH8" ], "billing_proof": [ "doc_EFtmUsbwpXwBG9", "doc_EFtmUsbwpXwBG8" ], "cancellation_proof": null, "customer_communication": null, "proof_of_service": null, "explanation_letter": null, "refund_confirmation": null, "access_activity_log": null, "refund_cancellation_policy": null, "term_and_conditions": null, "others": [ { "type": "receipt_signed_by_customer", "document_ids": [ "doc_EFtmUsbwpXwBH1", "doc_EFtmUsbwpXwBH7" ] } ], "submitted_at": 1590603200 } } ``` ------------------------------------------------------------------------------------------------------- **PN: * indicates mandatory fields** <br> <br> **For reference click [here](https://razorpay.com/docs/api/documents)**
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.89 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002