Skip to main content

RemoveUserCard

Overview

Removes a Card from an existing User. Returns Success/Error code.

Request Information


Method

POST - api/Person/RemoveUserCard

URI Parameters

None.

Body Parameters

RemoveUserCardViewModel

NameDescriptionTypeAdditional information
UserIdRequired: The PK of the existing User that you want to remove the card from.globally unique identifierNone.
CardIdOptional: The PK of the existing Card that you want to remove from the User. Retrieve by calling Person/GetUserByIdglobally unique identifierNone.
ExternalCardNumberConditional: If CardId is null, then this must be the External number imprinted on the card you wish to remove. If this card does not belong to the same User provided in UserId, then a NotFound error code will be returned.stringNone.

JSON

{
"UserId": "736926c3-238f-45f1-9d0d-9d4c33f3f121",
"CardId": "20baee11-cfd0-4034-8482-f4e51d116d14",
"ExternalCardNumber": "sample string 2"
}

XML

<RemoveUserCardViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<CardId>20baee11-cfd0-4034-8482-f4e51d116d14</CardId>
<ExternalCardNumber>sample string 2</ExternalCardNumber>
<UserId>736926c3-238f-45f1-9d0d-9d4c33f3f121</UserId>
</RemoveUserCardViewModel>

Response Information


Resource Description

Result

NameDescriptionTypeAdditional information
ResultCodeRepresents the result codeintegerNone.
DescriptionRepresents a description of the result codestringNone.

Response Formats

JSON

{
"ResultCode": 1,
"Description": "sample string 2"
}

XML

<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
`````<Description>``````sample string 2</Description>
`<ResultCode>`1</ResultCode>
</Result>