username:passwordAuthorization: Basic *****************{
"cardType": "virtual",
"cardOptions": {
"cardHolder": {
"label": "OTA1",
"firstName": "Jack",
"lastName": "V",
"phoneCode": "1",
"phoneNumber": "30243994399",
"email": "testholder@gmail.com",
"address": {
"line1": "604 Hardesty Street",
"line2": "",
"city": "North Greenbush",
"state": "NY",
"postCode": "12144",
"country": "US"
}
},
"callId": "{{$randomUUID}}",
"label": "OTA1",
"amount": 10
}
}curl --location --request POST 'https://service-test.infiniax.com/open-api/v1/cards' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"cardType": "virtual",
"cardOptions": {
"cardHolder": {
"label": "OTA1",
"firstName": "Jack",
"lastName": "V",
"phoneCode": "1",
"phoneNumber": "30243994399",
"email": "testholder@gmail.com",
"address": {
"line1": "604 Hardesty Street",
"line2": "",
"city": "North Greenbush",
"state": "NY",
"postCode": "12144",
"country": "US"
}
},
"callId": "{{$randomUUID}}",
"label": "OTA1",
"amount": 10
}
}'{
"code": 0,
"message": "",
"data": {
"id": "67b60180-ebb3-46d8-aded-cbb1b9124c88",
"idNo": "1855058434817662978",
"first6": "524897",
"last4": "0528",
"cardNoPrivate": "",
"label": "OTA1",
"balanceAvailable": 0,
"status": "active",
"velocityLimitWindow": null,
"type": "virtual",
"firstName": "Jack",
"lastName": "V",
"name": "JackV",
"address": {
"line1": "604 Hardesty Street",
"line2": "",
"city": "North Greenbush",
"state": "NY",
"postCode": "12144",
"country": "US"
},
"createdAt": "2024-11-09T01:22:50.844Z",
"totalCost": 0,
"totalTransferIn": 0,
"totalTransferOut": 0,
"totalRefund": 0,
"account": null,
"cardChannelId": "ef82-669f0ea84e66-a688-548b-7547-0f0c",
"callId": "744593ae-77e3-42d0-aff8-71144b5bc1b6"
},
"timestamp": 1731115370931
}