Delete Payment Details

Request Parameters

NameTypeRequirementDescription
gcIdStringMandatoryContact Id(You will get from Add Contact Response)
paymentIdStringMandatoryPayment Unique Id

Sample Request

curl --location --request DELETE 'https://api.instantpay.in/contacts/payment' \
--header 'Content-Type: application/json' \
--header 'X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOQ8l80uxEOrgU6T3Oc4znVc=' \
--header 'X-Ipay-Client-Secret: 55bb356f8d28953c47b40286db23b3aba8e3902e6a0d923f90730e9f6e4b3fcb' \
--header 'X-Ipay-Endpoint-Ip:  14.142.186.142' \
--header 'X-Ipay-Auth-Code: 1' \
--data '{
    "gcId" : "645383ba4acec95a32089822",
    "paymentId" : "64539d55f60d424cb90b89a2"
}'
POST /contacts/payment/primary HTTP/1.1
Host: api.instantpay.in
Content-Type: application/json
X-Ipay-Client-Id: YWY3OTAzYzNlM2ExZTJlOQ8l80uxEOrgU6T3Oc4znVc=
X-Ipay-Client-Secret: 55bb356f8d28953c47b40286db23b3aba8e3902e6a0d923f90730e9f6e4b3fcb
X-Ipay-Endpoint-Ip:  14.142.186.142
X-Ipay-Auth-Code: 1
Content-Length: 90

{
    "gcId" : "645383ba4acec95a32089822",
    "paymentId" : "64539d55f60d424cb90b89a2"

}

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
{
    "statuscode": "TXN",
    "actcode": null,
    "status": "Payment Method Deleted successfully",
   "data": null,
    "timestamp": "2023-05-04 17:27:27",
    "ipay_uuid": "h0069916166e-8e69-4caf-83ad-70bc51743fd5",
    "orderid": null,
    "environment": "LIVE",
    "internalCode": null
}
Language
Click Try It! to start a request and see the response here!