GET api/CustomerDetails/GetToken?APiToken={APiToken}&CustomerID={CustomerID}&PageNumber={PageNumber}&PageSize={PageSize}
Api to get Customer Token
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
APiToken | string |
None. |
|
CustomerID | integer |
None. |
|
PageNumber | integer |
None. |
|
PageSize | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
CustomerTokenResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
Tokens | Collection of TokenDataModel |
None. |
|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "tokens": [ { "customerCardTokenId": 1, "customerID": 2, "token": "sample string 3", "expiryMonthYear": "sample string 4", "expYear": 5, "expMonth": 6, "lastFourDigitOfCard": "sample string 7", "isActive": 8, "isDeleted": 9, "addedBy": 10, "addedDate": "2025-07-17T05:27:41.794565+00:00", "modifiedBy": 12, "modifiedDate": "2025-07-17T05:27:41.794565+00:00", "totalRecord": 14 }, { "customerCardTokenId": 1, "customerID": 2, "token": "sample string 3", "expiryMonthYear": "sample string 4", "expYear": 5, "expMonth": 6, "lastFourDigitOfCard": "sample string 7", "isActive": 8, "isDeleted": 9, "addedBy": 10, "addedDate": "2025-07-17T05:27:41.794565+00:00", "modifiedBy": 12, "modifiedDate": "2025-07-17T05:27:41.794565+00:00", "totalRecord": 14 } ], "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CustomerTokenResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"> <Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code> <Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message> <ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID> <Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful> <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord> <Tokens> <TokenDataModel> <AddedBy>10</AddedBy> <AddedDate>2025-07-17T05:27:41.794565+00:00</AddedDate> <CustomerCardTokenId>1</CustomerCardTokenId> <CustomerID>2</CustomerID> <ExpMonth>6</ExpMonth> <ExpYear>5</ExpYear> <ExpiryMonthYear>sample string 4</ExpiryMonthYear> <IsActive>8</IsActive> <IsDeleted>9</IsDeleted> <LastFourDigitOfCard>sample string 7</LastFourDigitOfCard> <ModifiedBy>12</ModifiedBy> <ModifiedDate>2025-07-17T05:27:41.794565+00:00</ModifiedDate> <Token>sample string 3</Token> <TotalRecord>14</TotalRecord> </TokenDataModel> <TokenDataModel> <AddedBy>10</AddedBy> <AddedDate>2025-07-17T05:27:41.794565+00:00</AddedDate> <CustomerCardTokenId>1</CustomerCardTokenId> <CustomerID>2</CustomerID> <ExpMonth>6</ExpMonth> <ExpYear>5</ExpYear> <ExpiryMonthYear>sample string 4</ExpiryMonthYear> <IsActive>8</IsActive> <IsDeleted>9</IsDeleted> <LastFourDigitOfCard>sample string 7</LastFourDigitOfCard> <ModifiedBy>12</ModifiedBy> <ModifiedDate>2025-07-17T05:27:41.794565+00:00</ModifiedDate> <Token>sample string 3</Token> <TotalRecord>14</TotalRecord> </TokenDataModel> </Tokens> </CustomerTokenResponseDataModel>
multipart/form-data
Sample:
<CustomerTokenResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.DataModel"><Code xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">5</TotalRecord><Tokens><TokenDataModel><AddedBy>10</AddedBy><AddedDate>2025-07-17T05:27:41.794565+00:00</AddedDate><CustomerCardTokenId>1</CustomerCardTokenId><CustomerID>2</CustomerID><ExpMonth>6</ExpMonth><ExpYear>5</ExpYear><ExpiryMonthYear>sample string 4</ExpiryMonthYear><IsActive>8</IsActive><IsDeleted>9</IsDeleted><LastFourDigitOfCard>sample string 7</LastFourDigitOfCard><ModifiedBy>12</ModifiedBy><ModifiedDate>2025-07-17T05:27:41.794565+00:00</ModifiedDate><Token>sample string 3</Token><TotalRecord>14</TotalRecord></TokenDataModel><TokenDataModel><AddedBy>10</AddedBy><AddedDate>2025-07-17T05:27:41.794565+00:00</AddedDate><CustomerCardTokenId>1</CustomerCardTokenId><CustomerID>2</CustomerID><ExpMonth>6</ExpMonth><ExpYear>5</ExpYear><ExpiryMonthYear>sample string 4</ExpiryMonthYear><IsActive>8</IsActive><IsDeleted>9</IsDeleted><LastFourDigitOfCard>sample string 7</LastFourDigitOfCard><ModifiedBy>12</ModifiedBy><ModifiedDate>2025-07-17T05:27:41.794565+00:00</ModifiedDate><Token>sample string 3</Token><TotalRecord>14</TotalRecord></TokenDataModel></Tokens></CustomerTokenResponseDataModel>