Create card
Header Parameters
Nonce string required
random 16 bytes alphanumerics
Credential string required
Please follow the OpenAPI authentication section
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24/20240501120123/Wonder-RSA-SHA256
Signature string required
Please follow the OpenAPI authentication section
Example: lM42cgyuLS98Dieydc8K2OD3KwYkOXibpV9pFvr/R0i/830M/FPKUKbav2UBBN3M3EdPk/PpvKQlvBNT+NbEg20CKuiDTZWDc3r7KiA1pdZsui/57XCVhC2s01W8jEM+G5lS362+p8+E0K6UKQDrJMyVpbDT31XSkSJIxae+uDi2nJr4DnIkemeU2LlNDRPPGe9NeX7z3B3N3LwIiQgKMyauPqAjro0UrZykQM9pv4UySRSU2cT8EcjQmyKxbzyuR2A47PyeodJvotlIthdfCHIxG52D06tpRJlRVbUdvxSg14bFiPbr3FwCvruZlbR15gOanJCqE4wp4fC8qEXXsg==
Content-type string required
Example: application/json
x-request-id string
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24
x-i18n-lang string
from zh-HK, zh-CN, or en
application/json
Request Body
card object required
Responses
- 200
Response Headers
application/json
Schema
Example (from schema)
Example
Schema
code error code required
message error message required
data object required
{
"code": 0,
"message": "string",
"data": {
"id": "string",
"p_user_id": "string",
"type": "string",
"expiration_date": "string",
"settlement_currency": "string",
"first_6_digits": "string",
"last_4_digits": "string",
"status": "string",
"pan": "string",
"issuer_brand": "string",
"is_encrypt": true,
"reference_id": "string",
"business_name": "string"
}
}
{
"code": 200,
"data": {
"business_name": "OMS - Manually Test - 2",
"expiration_date": "04/32",
"first_6_digits": "356772",
"id": "56f825f9-b962-46ca-8c0d-99269e041514",
"is_encrypt": true,
"issuer_brand": "JCB",
"last_4_digits": "8348",
"pan": "356772******8348",
"reference_id": "56f825f9-b962-46ca-8c0d-99269e041514",
"settlement_currency": "USD",
"status": "Active",
"title": "Test",
"type": "Expense"
},
"message": "succeed"
}
POST /svc/ts/api/v1/openapi/cards
Request
Request
curl / cURL
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
python / requests
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
go / native
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
nodejs / axios
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
ruby / Net::HTTP
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
csharp / RestSharp
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
php / cURL
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
java / OkHttp
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'
powershell / RestMethod
curl -L -X POST 'https://developer.wonder.today/svc/ts/api/v1/openapi/cards' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"card": {
"title": "string",
"settlement_currency": "HKD",
"limits": [
{
"period": "Daily",
"limit_amount": "0.00",
"status": "Active"
}
],
"mode": "B2B"
}
}'