Disconnect from the card

Role

This method gives access to the SCardDisconnect function.

Request

URL : /pcsc/reader/{$id}/disconnect

Method : POST

URL Params : {$id} : the ReaderId of the device. Use GET /pcsc/readers to enumerate the available readers.

Content : see below.

Request content

Field name Type Status Description
Token string mandatory Token provided by the Connect method

Example

{
	"Token": "0AAZZevyX99hu1Py0Suib6"
}

Success Response

See Success Response and SUCCESS object.

Error Response

See Error Responses. An ERROR object is returned in case of a PC/SC-specific error, with the Error field present and populated.

Example

When the card has already been removed

{
	"Result": "error",
	"Error": "SCARD_W_REMOVED_CARD",
	"Message": "The smart card has been removed, so further communication is not possible."
}