Update Tag

Request Parameters

NameTypeRequirementDescription
tagIdStringMandatoryYou will get in the Add Tag Response
nameStringMandatoryTag Name
hexColorCodeStringMandatoryColor Code

Sample Request

curl --location --request PATCH 'https://api.instantpay.in/contacts/tag' \
--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' \
--header 'Content-Type: application/json' \
--data '{
    "tagId":  "6448ea5c1a1767723d055995",
    "name" : "karanTag",
    "hexColorCode" : "#FF1931"
}'
PATCH /contacts/tag 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-Type: application/json
Content-Length: 101

{
    "tagId":  "6448ea5c1a1767723d055995",
    "name" : "karanTag",
    "hexColorCode" : "#FF1931"
}

Response Parameters

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

Sample Response

{
    "statuscode": "TXN",
    "actcode": null,
    "status": "Tag Updated Successfully",
    "data": 1,
    "timestamp": "2023-05-04 15:09:44",
    "ipay_uuid": "h0689915e52c-dcbe-4d2e-960e-ef9a43d6a4e6",
    "orderid": null,
    "environment": "LIVE",
    "internalCode": null
}
Language
Click Try It! to start a request and see the response here!