POST
/
wallet
/
cards
/
collect
Collect payment card information
curl --request POST \
  --url https://api.henrylabs.ai/v0/wallet/cards/collect \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-user-id: <api-key>' \
  --data '{
  "card_number": "1234567890123456",
  "card_exp": "01/25",
  "card_holder": "John Doe",
  "email": "john.doe@example.com",
  "phone_number": "+1234567890",
  "billing_address": "350 5th Ave",
  "zip_code": "12345",
  "card_cvv": "123",
  "city": "New York",
  "state": "NY",
  "last4_digits": "1234",
  "is_default": false
}'
{
  "success": true,
  "status": "<string>",
  "message": "<string>",
  "data": {
    "card_id": "<string>"
  },
  "request_id": "<string>",
  "id": "<string>"
}
Collect payment card details securely through API. Card details are immediately tokenized via VGS and raw card data is never stored in our systems.

Authorizations

x-api-key
string
header
required
x-user-id
string
header
required

Body

application/json

Response

200
application/json

Card collected successfully

The response is of type object.