DELETE
/
api
/
v1
/
customer
/
saved-payments
/
{paymentId}
Delete Saved Payment Method
curl --request DELETE \
  --url https://api.cravejs.com/api/v1/customer/saved-payments/{paymentId} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Payment method deleted successfully",
  "deletedPaymentId": "pm_1234567890abcdef"
}

Path Parameters

paymentId
string
required
The unique identifier for the payment method to delete
Format: Stripe payment method ID (e.g., pm_1234567890abcdef)

Headers

Authorization
string
required
Bearer token from OTP verification
Format: Bearer {jwt_token}
X-API-Key
string
required
Storefront API key for authentication
{
  "success": true,
  "message": "Payment method deleted successfully",
  "deletedPaymentId": "pm_1234567890abcdef"
}
This operation removes the saved payment method from the customer’s account. The customer can add the same payment method again in the future if needed.

Authorizations

X-API-Key
string
header
required

Path Parameters

paymentId
string
required

The unique identifier for the payment method to delete (Stripe payment method ID)

Response

200
application/json

Payment method deleted successfully.

The response is of type object.