Update Contact

Request Parameters

NameTypeRequirementDescription
contactIdStringMandatoryId of the Contact
nameStringMandatoryName of the Contact
emailStringMandatoryEmail Id of the Contact
mobileStringMandatoryMobile Number of the Contact
tagDetails.tagIdStringMandatoryTag Id

Sample Request

curl --location --request PATCH 'https://api.instantpay.in/contacts/profile' \
--header 'Content-Type: application/json' \
--header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOQ8l80uxEOrgU6T3Oc4znVc=' \
--header 'X-Ipay-Client-Secret: b58a7707e8d53e602d3ee6bdca07bf14c40e848e8f58ae9cb2a97c8c0b60450e' \
--header 'X-Ipay-Endpoint-Ip:  14.142.186.142' \
--header 'X-Ipay-Auth-Code: 1' \
--data-raw '{
    "contactId":"645383ba4acec95a32089822",
    "name": "Karan",
    "email": "[email protected]",
    "mobile": "9219133921",
    "tagDetails" : [
            {
                "tagId": "645381c92c8e9e093406ccb2"
            }
    ]
}'
PATCH /contacts/profile HTTP/1.1
Host: api.instantpay.in
Content-Type: application/json
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOQ8l80uxEOrgU6T3Oc4znVc=
X-Ipay-Client-Secret: b58a7707e8d53e602d3ee6bdca07bf14c40e848e8f58ae9cb2a97c8c0b60450e
X-Ipay-Endpoint-Ip:  14.142.186.142
X-Ipay-Auth-Code: 1
Content-Length: 240

{
    "contactId":"645383ba4acec95a32089822",
    "name": "Karan",
    "email": "[email protected]",
    "mobile": "9219133921",
    "tagDetails" : [
            {
                "tagId": "645381c92c8e9e093406ccb2"
            }
    ]
}

Response Parameter

Parameter NameTypeDescription
statuscodeStringInstantpay status code
actcodeStringAction code
statusStringStatus message
dataArrayResponse Data(if Present)
timestampStringResponse time (YYYY-MM-DD HH:II:SS)
ipay_uuidStringRequest reference number
orderidStringTransaction Id ( If transaction otherwise it is null )
environmentStringLive/Sandbox
internalCodeStringit will be null
{
    "statuscode": "TXN",
    "actcode": null,
    "status": "Contact Updated Successfully",
    "data": {
        "_id": "645b283b9b2e242ec80dd5c2",
        "userId": 189590,
        "name": "Karan",
        "email": "[email protected]",
        "mobile": "9219133921",
        "callingCode": "91",
        "companyName": "XYZ",
        "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
}
Language
Click Try It! to start a request and see the response here!