Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/ayusshiherbs/razorpay-php/documents/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
## Document ### Create a Document ```php $payload = array( 'file'=> '/Users/your_name/Downloads/sample_uploaded.pdf' "purpose" => "dispute_evidence" ); $api->document->create($payload); ``` **Parameters:** | Name | Type | Description | |-------|-----------|--------------------------------------------------| | file* | string | The URL generated once the business proof document is uploaded. | | purpose | string | Possible value is `dispute_evidence` | **Response:** ```json { "id": "doc_EsyWjHrfzb59Re", "entity": "document", "purpose": "dispute_evidence", "name": "doc_19_12_2020.jpg", "mime_type": "image/png", "size": 2863, "created_at": 1590604200 } ``` ------------------------------------------------------------------------------------------------------- ### Fetch Document Information ```php $documentId = ""; $api->document->fetch($documentId); ``` **Parameters:** | Name | Type | Description | |-------|-----------|--------------------------------------------------| | from | timestamp | timestamp after which the addons were created | | to | timestamp | timestamp before which the addons were created | | count | integer | number of addons to fetch (default: 10) | | skip | integer | number of addons to be skipped (default: 0) | **Response:** ```json { "entity": "document", "id": "doc_00000000000000", "purpose": "dispute_evidence", "created_at": 1701701378, "mime_type": "application/pdf", "display_name": "ppm_00000000000000", "size": 404678, "url": "" } ``` ------------------------------------------------------------------------------------------------------- **PN: * indicates mandatory fields** <br> <br> **For reference click [here](https://razorpay.com/docs/api/documents)**