get https://api.accelevents.com/rest/superadmin/creditCards//
This API is used to return a list of Stripe cards like last, expmonth, expyear, defaultCard and many more. This API gets executed successfully when the user has super admin and sales admin access otherwise it will throw a "not super admin" error. To get this API we need to pass Authentication key and pass eventUrl, userId as path parameter.
Here are the possible error messages, which return if any condition gets failed or required data is missing for processing.
Error code | Error Description |
---|---|
4040100 | User Not Found |
40600013 | Can't Create URL |
4040200 | Event Not Found |
Here is the description of response attributes, which returns to the form of JSON.
Attribute | Description |
---|---|
id | This contains the Stripe card id. |
last4 | This contains the last four digits of the connected Stripe card. |
expmonth | This describes the expiration month of the connected Stripe card. |
expyear | This describes the card expiration year. |
defaultCard | This returns a boolean value referring to whether it is the current default card. |
cardType | This returns the card type. |