Delete a Saved Card API

This API is used to delete an existing card stored on PayU Vault.

HTTP Method: POST

Environment

Sample Response
  • On successful deletion
{
        status: 1,
        msg: "My_card card deleted successfully",
}
  • On failure of deletion
{
"status": 0,
"msg": card not found
}
Response parameters
**Parameter** **Description** **Example**
status The status of the response can be any of the following:\ -**1**: Success
    * **0**: Failure
  </td>
  <td>
    1
  </td>
</tr>
<tr>
  <td>
    msg
  </td>
  <td>
    The description of the response whether the card details were deleted successfully or not deleted.
  </td>
  <td>
    My\_card deleted successfully
  </td>
</tr>

Request Parameters

Reference info for request parameters
  <th style={{ textAlign: "left" }}>
    Reference
  </th>
</tr>
  <td style={{ textAlign: "left" }}>
    For more information on how to generate the Key and Salt, refer to any of the following:  

    * **Production**: [Generate Merchant Key and Salt](doc:generate-merchant-key-and-salt-on-payu-dashboard)

    * **Test**: [Generate Test Merchant Key and Salt](doc:generate-test-merchant-key-and-salt)
  </td>
</tr>

<tr>
  <td style={{ textAlign: "left" }}>
    <Glossary>hash</Glossary>
  </td>

  <td style={{ textAlign: "left" }}>
    Hash logic for this API is:\
    `sha512(key\|command\|var1\|salt)
sha512`
  </td>
</tr>
Parameter
key
Language
URL
Click Try It! to start a request and see the response here!