ข้ามไปยังเนื้อหาหลัก
เวอร์ชัน: ล่าสุด

Create a token

Creates a token representing a card. This should be done using the public key. Tokens are single-use and expire after 10 minutes.

Request Parameters

Request Body

Body Parameters

Responses

200 Token created successfully

Returns a Token object.

400 undefined

Code Samples

curl https://api.omise.co/tokens \
-u skey_test_5xuy4w91xqz7d1w9u0t:
🔑ข้อมูลยืนยันตัวตน API

Try it out

Use the interactive form above to test this endpoint.