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