Name | Type | Requirement | Description |
---|
gcId | String | Mandatory | Contact Id(You will get from Add Contact Response) |
noteId | String | Mandatory | Note Unique ID |
note | String | Mandatory | Notes |
removedFiles | Array | Optional | Removed files name |
files | Array | Optional | Upload file name |
curl --location --request PATCH 'https://api.instantpay.in/contacts/note/update' \
--header 'X-Ipay-Auth-Code: 1' \
--header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=' \
--header 'X-Ipay-Client-Secret: 679db35f926b8d0240a8c0d28729528ee8e6d5effa5fa0b20c04454004d2d825' \
--header 'X-Ipay-Endpoint-Ip: 125.0.0.1' \
--form 'gcId="645348b5623454724501cdf7"' \
--form 'noteId="645348b5623454724501cdf7"' \
--form 'note="test 1 file"' \
--form 'removedFiles[]="Files Name in Array"' \
--form 'files[]=@"/path/to/file"'
PATCH /contacts/note/update HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: 1
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOfh549Gzt+5IEcETrD5Yx+Q=
X-Ipay-Client-Secret: 679db35f926b8d0240a8c0d28729528ee8e6d5effa5fa0b20c04454004d2d825
X-Ipay-Endpoint-Ip: 125.0.0.1
Content-Length: 629
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="gcId"
645348b5623454724501cdf7
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="noteId"
645348b5623454724501cdf7
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="note"
test 1 file
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="removedFiles[]"
Files Name in Array
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files[]"; filename="file"
Content-Type: <Content-Type header here>
(data)
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Parameter Name | Type | Description |
---|
statuscode | String | Instantpay status code |
actcode | String | Action code |
status | String | Status message |
data | Array | Response data(if Present) |
timestamp | String | Response time (YYYY-MM-DD HH:II:SS) |
ipay_uuid | String | Request reference number |
orderid | String | Transaction Id ( If transaction otherwise it is null ) |
environment | String | Live/Sandbox |
internalCode | String | it will be null |
{
"statuscode": "TXN",
"actcode": null,
"status": "Note Updated Successfully",
"data": {
"gcId": "645383ba4acec95a32089822",
"note": "test 1 filedfd"
},
"timestamp": "2023-05-04 17:11:42",
"ipay_uuid": "h005991610cc-8d1c-4fd8-8f38-e169368d9892",
"orderid": null,
"environment": "LIVE",
"internalCode": null
}