- Platform Overview
- Resources and Guides
-
POS Integration
-
Getting Started
-
Core Concepts
-
Integration SDK
-
Certification
-
- Order Ahead
-
Provider Enablement
-
Provider Enablement
-
Endpoints
-
Developer Endpoints
-
-
API Reference
-
Getting Started
-
v15
-
- Access Tokens
- Campaigns
- Credit Cards
- Users
- Credit
- Locations
-
Payment Methods
- Get
- Delete
- QR Codes
- Progress Adjustments
- Orders
- Rewards
- Gift Cards
-
-
v14
-
- Credit
- Access Tokens
- Campaigns
- Categories
- Credit Cards
- Interstitials
- Locations
- Loyalty
- Orders
- Payment Tokens
- Support Tickets
- Users
-
-
Payment Method .: Delete
API Reference / v15
Delete a Payment Method
This endpoint deletes a user’s active payment method.
To delete the user’s payment method, you must have a token with the manage_user_payment_methods
permission.
Request Endpoint
DELETE /v15/payment_method
Authorization Required – User Token in Header
Authorization: token user="123897-99SCvr3kSe3TqqQid3DyPXfo2Kq98MyhF6CaNPqoDeMhJ18Uopq19uddcznu6R"
cURL Example
curl -X DELETE -H Accept:application/json -H Content-Type:application/json -H 'Authorization: token user="123897-99SCvr3kSe3TqqQid3DyPXfo2Kq98MyhF6CaNPqoDeMhJ18Uopq19uddcznu6R"' https://sandbox.thelevelup.com/v15/payment_method
Example Response
HTTP/1.1 200 OK
- Payment method deleted
Errors
HTTP/1.1 404 Not Found
- User does not have an active payment method