Skip to main content

Store a credit card

POST 

/api/v3/creditcard

This method can be used to store a new card or update an existing card.


To update an existing card: Send a new POST request using an existing card number with its updated values. The stored card will then be updated.

Request

Body

    customer_id integer

    The customer id #

    external_key string

    Unique external key value

    name string

    Name on credit card

    number string

    Credit card number

    cvv string

    CVV/CSC security code (not stored, but may be used for validation/pre-auth)

    expdate string

    Expiration date (in YYYY-MM-DD format)

    expdate_year string

    Expiration year (4-digits, YYYY) (only required if you do not provide expdate)

    expdate_month string

    Expiration month (2-digits, MM) (only required if you do not provide expdate)

    address string

    Billing street address

    city string

    Billing city

    state string

    Billing state

    postcode string

    Billing postal code

    country string

    Billing country

Responses

Object was created successfully

Schema

    code integer
    status string
    message stringnullable
    details objectnullable

    response

    object

    id integer
Loading...