Returning Card data
The GET method for the Card object returns information about a defined card in the fact store by ID.
The GET method produces application/xml or application/json.
URI
GET baseurl/fact/card/{card_id}
Request content
The request for this method contains no JSON content.
Response content
The XML format for this service is detailed in the CFM/Data/XSD/CFCommonTypes.xsd file.
The JSON uses the following
format:
{
"id": "card_id",
"cardNumber": "card_number",
"name": "name_string",
"description": "description_text",
"type": {
"value": "card_type_stereotype",
"typeTable": "CFFACT.CARD_TYPE"
},
"expirationDate": "date_value",
"timestamp": "timestamp_value",
"accounts": [{
"objectID": account_record_id,
"objectType": "account"
},....
],
"transactions": [{
"objectID": transaction_record_id,
"objectType": "transaction"
},...
],
}
The timestamp value is returned as a string in ISO 8601 format, such as "2015-05-15T11:43:00.559-05:00".
The entity that is returned by this service is Card. If no data is found for the specified ID, 404 Not Found message is returned.
| Code | Description |
|---|---|
| 200 OK | The method completed successfully, and the card data is returned. |
| 404 Not Found | The card that was specified in the request was not found or an invalid (non-numeric) card_id value was specified. |