Delete Payment Details

Use Instantpay's Delete Payment Details API. It will keep your payment data safe. This tool lets businesses easily remove outdated payment info. It keeps your payment database accurate and efficient.

The Delete Payment Details API is great for firms with dynamic payment data. It lets you update it in real-time. This helps you protect sensitive financial info. Integrating this API will help businesses manage payments better. It will keep only current, necessary payment details. This will improve security and efficiency.

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-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
--data '{
    "gcId" : "645383ba4acec95a32089822",
    "paymentId" : "64539d55f60d424cb90b89a2"
}'
POST /contacts/payment/primary 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: 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!