POST//
Creates a Push-to-Card payment card. A payment card represents a non-Marqeta card to which you can disburse funds. Each payment card must be associated with an existing user token.
Body field details
| Fields | Description |
|---|---|
| token string Optional | The unique identifier of the payment card. If you do not include a token, the system generates one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated. Allowable Values: 36 char max |
| user_token string Required | The payment cardholder’s user token. Allowable Values: Existing user token. To obtain a user token, send a GET request to the /users endpoint. |
| name_on_card string Required | The payment cardholder’s name as it appears on the card. Allowable Values: 50 char max |
| pan string Required | The payment card’s primary account number. Allowable Values: 19 char max |
| cvv string Required | The three-digit card verification value (CVV2) included on the back of the payment card. Allowable Values: 3 char max |
| exp_date string Required | The payment card’s expiration date. Allowable Values: mmyy |
| address_1 string Required | The payment cardholder’s billing address. Allowable Values: 255 char max |
| address_2 string Optional | Additional address information. Allowable Values: 255 char max |
| city string Required | City of the payment cardholder’s billing address. Allowable Values: 40 char max |
| state string Required | State of the payment cardholder’s billing address. Allowable Values: 2 char max |
| postal_code string Required | ZIP or postal code of the payment cardholder’s billing address. Allowable Values: 10 char max |
| country string Required | Country of the payment cardholder’s billing address, expressed as an ISO 3166 code. For example, the numeric code for the United States is 840, the alpha-2 code is US, and the alpha-3 code is USA.If you pass the alpha-2 code, the alpha-3 code will be returned in the response. The ISO maintains the full list of ISO 3166 country codes. Allowable Values: 3 char max |
Sample request body
JSON
{
"user_token": "myUser",
"name_on_card": "John Smith",
"pan": "1234123412341234",
"cvv": "123",
"exp_date": "0120",
"address_1": "123 Main Street",
"city": "Oakland",
"state": "CA",
"postal_code": "94601",
"country": "USA"
}
Sample response body
JSON
{
"created_time": "2021-02-22T18:16:32Z",
"last_modified_time": "2021-02-22T18:16:36Z",
"address_1": "123 Main Street",
"city": "Oakland",
"state": "CA",
"postal_code": "94601",
"country": "USA",
"last_four": "1234",
"token": "8fdc41ee-95c5-4a06-83a3-3e6f2537b787",
"fast_fund_transfer_eligible": true,
"gambling_fund_transfer_eligible": false,
"name_on_card": "John Smith"
}