Supported Formats

json

GET /api/accounts/:account_id/credit_cards
Lists account saved credit cards

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found

Params

Param name Description
account_id
required

Validations:

  • Must be a String


POST /api/accounts/:account_id/credit_cards
Creates saved credit card data

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

credit_card
required

Credit Card Parameter container

Validations:

  • Must be a Hash

credit_card[email]
required

Validations:

  • Must be a String

credit_card[token]
required

Credit Card Token

Validations:

  • Must be a String

credit_card[aliased_name]
optional

Validations:

  • Must be a String


POST /api/accounts/:account_id/credit_cards/:id
Updates credit card data

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
404 CreditCard Not Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String


DELETE /api/accounts/:account_id/credit_cards/:id
Destroys saved credit card

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
404 Credit Card Notf Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String


PATCH /api/accounts/:account_id/credit_cards/:id/activate
Activates saved credit card

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
404 Credit Card Notf Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String


PATCH /api/accounts/:account_id/credit_cards/:id/deactivate
Deactivates saved credit card

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
404 Credit Card Notf Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String


PATCH /api/accounts/:account_id/credit_cards/:id/mark_as_default
Marks the card as default.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Account Not Found
404 Credit Card Notf Found
422 Unprocessable Entity

Params

Param name Description
account_id
required

Validations:

  • Must be a String

id
required

Validations:

  • Must be a String