Add Card

This endpoint is used to manually add a card to a user. If the card was successfully created and associated with the user, then the Id of that card will be returned.

Controlled Errors

Error CodeError Message
error_card_not_createdFailed to create card.
error_user_not_foundUser with the Id provided was not found.
error_card_duplicatedAn active card with the provided combination of facility code and card number already exists.
error_card_lost_or_stolenA card that has been reported lost or stolen

Any status codes returned that are not provided here are generic status codes that can be found here.

Body Params
int32
required

The facility code of the card being added.

int64
required

The card number of the card being added.

string

The Guid Id of the user that the card will be associated with. If this value is not passed, it will default to an empty Guid.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain