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="1123-15d2aeedc9f4e0e7094a9d283868f8fbe873cb85ceaa0c511727245aec8c9e"

cURL Example

curl https://sandbox.thelevelup.com/v15/payment_token \
  -H Accept:application/json \
  -H Content-Type:application/json \
  -H 'Authorization:token user="1123-15d2aeedc9f4e0e7094a9d283868f8fbe873cb85ceaa0c511727245aec8c9e"'

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