post http://{{url}}/v1/vault/payment_sources
Create a new vault payment token representing user’s payment information.
Flow
You can create a vault using:
- credit card
- one-time token
Request body
field | required[flow] | type | description |
---|---|---|---|
token | +2 | string(UIID) | One-time token with all the payment source information |
first_name | - | string | Customer first name |
last_name | - | string | Customer last name |
- | string | Customer email | |
phone | - | string(E.164) | Customer phone in E.164 international notation (Example: +12345678901) |
type | + | string | Type of source. card for source with credit card |
card_name | +1 | string | Cardholder name (as on card) |
card_number | +1 | string(numeric) | Card number |
expire_month | +1 | string(mm) | Card expiration month mm |
expire_year | +1 | string(yyyy) | Card expiration year |
card_ccv | -1 | string(numeric) | Card CCV number |
address_line1 | - | string | Customer Address, line 1 |
address_line2 | - | string | Customer Address, line 2 |
address_state | - | string | Customer Address, State |
address_country | - | string | Customer Address, Country Code |
address_city | - | string | Customer Address, City |
address_postcode | - | string | Customer Address, Postcode |
store_ccv | - | boolean | A flag to be able to use a CCV value for the initial transaction |