Create Account
Sign In
⌘
K
Moyasar Documentation
Payments
Credit Card
Apple Pay
STC Pay
Tokenization
Payment Errors
Form Configuration
Gateway Response Codes
Settlements
Settlement Introduction
File Format
Using API
Settlement Notification
Facilitation Merchants
Invoices
Creating invoices
Payouts
Payout Introduction
Single Payout
Bulk Payouts
Testing Payouts
Mobile SDKs
iOS SDK
Android SDK
Flutter SDK
Hosted Checkout
E-Commerce Plugins
WooCommerce
PrestaShop
NopCommerce
OpenCart
Magento2
Marketing
Coupons
Testing
Testing Cards
Apple Pay Testing
Custom Payments
Credit Cards
STC Pay
Apple Pay on Websites
Apple Pay on Apps
Tokenized Cards
Dashboard
Apple Pay Using Developer Account
Apple Pay Using Web Registration
Get Your API Keys
Setting up your IP whitelist
Setting up Webhooks
API
API Introduction
Authentication
Pagination
Metadata
Payments
Create Payment
Payment Object
Payment Status Reference
Credit Card Source
Apple Pay Source
STC Pay Source
Update Payment
Fetch Payment
List Payments
Void Payment
Refund Payment
Capture a Payment
Manual Payments
3D Secure
Payouts
Invoices
Tokens
Apple Pay
Webhooks
Transfers
Errors
Support
Help Desk
Docs powered by
Archbee
API
Tokens
Fetch Token
1min
To fetch an individual token, you only need to provide the token’s unique ID.
GET
Request
Path Params
id
required
String
The token’s unique ID.
Curl
1
curl
-X
GET
\
2
-u
sk_test_MrtwozLJAuFmLKWWSaRaoaLX:
\
3
"https://api.moyasar.com/v1/tokens/token_x6okRgkZJrhgDHyqJ9zztW2X1k"
curl -X GET \ -u sk_test_MrtwozLJAuFmLKWWSaRaoaLX: \ "https://api.moyasar.com/v1/tokens/token_x6okRgkZJrhgDHyqJ9zztW2X1k"
Responses
200
404
1
{
2
"id"
:
"token_x6okRgkZJrhgDHyqJ9zztW2X1k"
,
3
"status"
:
"initiated"
,
4
"brand"
:
"visa"
,
5
"funding"
:
"credit"
,
6
"country"
:
"US"
,
7
"month"
:
"09"
,
8
"year"
:
"2027"
,
9
"name"
:
"Mohammed Ali"
,
10
"last_four"
:
"1111"
,
11
"metadata"
:
null
,
12
"message"
:
null
,
13
"verification_url"
:
null
,
14
"created_at"
:
"2023-08-23T12:12:55.857Z"
,
15
"updated_at"
:
"2023-08-23T12:12:55.857Z"
16
}
{ "id": "token_x6okRgkZJrhgDHyqJ9zztW2X1k", "status": "initiated", "brand": "visa", "funding": "credit", "country": "US", "month": "09", "year": "2027", "name": "Mohammed Ali", "last_four": "1111", "metadata": null, "message": null, "verification_url": null, "created_at": "2023-08-23T12:12:55.857Z", "updated_at": "2023-08-23T12:12:55.857Z" }
Updated 23 Nov 2023
Did this page help you?
PREVIOUS
Create Token
NEXT
Delete Token
Docs powered by
Archbee
TABLE OF CONTENTS
GET
Fetch token
Docs powered by
Archbee