patch https://api.instantpay.in/contacts/profile
Improve your contact management with Instantpay's Add Contact API. It's a key tool for businesses that want a complete network of connections. Our API makes it easy to add new contacts to your database. It keeps your contact list accurate and up-to-date.
Instantpay's Add Contact API can include key contact details. It helps businesses manage relationships and communicate better. This fosters stronger connections.
Integrating this API will simplify contact acquisition. It will help your team network better. They can then focus on meaningful interactions.
Request Parameters
Name | Type | Requirement | Description |
---|---|---|---|
contactId | String | Mandatory | Id of the Contact |
name | String | Mandatory | Name of the Contact |
String | Mandatory | Email Id of the Contact | |
mobile | String | Mandatory | Mobile Number of the Contact |
tagDetails.tagId | String | Mandatory | Tag Id |
Sample Request
curl --location --request PATCH 'https://api.instantpay.in/contacts/profile' \
--header 'X-Ipay-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
--header 'X-Ipay-Auth-Code: 1' \
--data-raw '{
"contactId":"645383ba4acec95a32089822",
"name": "Sample Name",
"email": "[email protected]",
"mobile": "7428585742",
"tagDetails" : [
{
"tagId": "645381c92c8e9e093406ccb2"
}
]
}'
PATCH /contacts/profile HTTP/1.1
Host: api.instantpay.in
Content-Type: application/json
X-Ipay-Auth-Code: {{authCode}}
X-Ipay-Client-Id: {{clientId}}
X-Ipay-Client-Secret: {{clientSecret}}
X-Ipay-Endpoint-Ip: {{endPointIP}}
Content-Length: 240
{
"contactId":"645383ba4acec95a32089822",
"name": "Sample Name",
"email": "[email protected]",
"mobile": "7428585742",
"tagDetails" : [
{
"tagId": "645381c92c8e9e093406ccb2"
}
]
}
Response Parameter
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": "Contact Updated Successfully",
"data": {
"_id": "645b283b9b2e242ec80dd5c2",
"userId": 189590,
"name": "Sample Name",
"email": "[email protected]",
"mobile": "7428585742",
"callingCode": "91",
"companyName": "Business Name",
"updated_at": "2023-05-10T08:59:19.384000Z",
"created_at": "2023-05-10T05:14:35.381000Z",
"tagId": [
"645b280e95335f08eb021aa2"
]
},
"timestamp": "2023-05-10 14:29:19",
"ipay_uuid": "h0059921e8a1-89ff-4b4a-b42e-c27893d64057",
"orderid": null,
"environment": "LIVE",
"internalCode": null
}