- 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
-
QR Codes
- Get Payment Token Data
- Create QR Code Validation
- Get Formatted QR Code
- Progress Adjustments
- Orders
- Rewards
- Gift Cards
-
-
v14
-
- Credit
- Access Tokens
- Campaigns
- Categories
- Credit Cards
- Interstitials
- Locations
- Loyalty
- Orders
- Payment Tokens
- Support Tickets
- Users
-
-
Payment Token Data .: Get
API Reference / v15
Get a User’s Payment Token Data
This endpoint allows you to get a currently valid payment token data. To see a user’s currently
valid payment token data, you must have a user access token with the read_qr_code
permission.
If you’re looking to retreive a fully formatted QR code with color and tip preferences, you should use the QR code endpoint instead.
Request Endpoint
GET /v15/payment_token
Authorization Required – User Token in Header
Authorization: token user="123897-99SCvr3kSe3TqqQid3DyPXfo2Kq98MyhF6CaNPqoDeMhJ18Uopq19uddcznu6R"
cURL Example
curl https://sandbox.thelevelup.com/v15/payment_token \
-H Accept:application/json \
-H Content-Type:application/json \
-H 'Authorization:token user="123897-99SCvr3kSe3TqqQid3DyPXfo2Kq98MyhF6CaNPqoDeMhJ18Uopq19uddcznu6R"'
Example Response
{
"payment_token": {
"data": "LU02000008ZS9OJFUBNEL6ZM",
"id": 323
}
}
Response Parameters
Parameters | Type | Description |
---|---|---|
data |
String | The user’s current payment token data. |
id |
Integer | The ID of the payment token |