Tokens
REST Sandbox URL: https://sandbox.4levers.com/NewReportsApi/api/Reports/tokens
REST Production URL: https://reports-api.4levers.com/api/Reports/tokens
Use Tokens Report to display all the tokens issued for specific credit cards on your Sub-Accounts.
Request Example (REST Production URL)
GET: https://reports-api.4levers.com/api/Reports/tokens?DateFrom=2019-07-23&DateTo=2019-07-24
Request Parameters
| Name | Type | Required | Description | |
| datefrom | datetime | ✓ | determines the selection starting/ending time range | |
| dateto | datetime | ✓ | ||
| token | string | optional | specify payment token | |
| bin | string | optional | credit card bank identification number. first 6 digits of the credit card number. | |
| last4 | string | optional | last 4 digits of the credit card number | |
| creditcardtype | enum | optional | specify a credit card type Available Values:
| |
| сreditCardOwnerName | string | optional | cardholder’s name | |
| serviceproviders | integer/array | optional | enter your service provider id(s) | |
| operators | integer/array | optional | enter your operator id(s) | |
| accounts | integer/array | optional | enter your platform account id(s) | |
| subaccounts | string/array | optional | enter your sub-account id(s) | |
| skip | integer | optional | these parameters determine which records will be displayed in the report based on specified index number. to get from fifth to twentieth record specify skip = 4 and take = 16 | |
| take | integer | optional |
Response Parameters
| Name | Description | |
| token | payment secure token | |
| creationdate | token creation date and time | |
| creditcardtype | credit card type | |
| creditcardnumber | masked credit card number | |
| сreditCardExpiration | credit card expiration date in a format mm/yyyy | |
сreditCardOwnerName | cardholder’s name | |
| subaccount | sub-account identifier and name | |
| platformaccount | platform account name |
[
{
"token": "1d70e08a-c8bd-476b-a8ed-5a957b7c9e94",
"creationDate": "2022-02-23T15:19:09",
"creditCardType": "MasterCard",
"creditCardNumber": "222300******5780",
"creditCardExpiration": "09/2023",
"creditCardOwnerName": "Test Name",
"processor": "None",
"subAccount": "Test Account",
"platformAccount": "Test Account"
},
{
"token": "1d70e08a-c8bd-476b-a8ed-5a957b7c9e94",
"creationDate": "2022-02-23T15:19:09",
"creditCardType": "MasterCard",
"creditCardNumber": "222300******5780",
"creditCardExpiration": "09/2023",
"creditCardOwnerName": "Test Name",
"processor": "None",
"subAccount": "Test Account",
"platformAccount": "Test Account"
}
]