POST api/Card/MergeCard
Request Information
URI Parameters
None.
Body Parameters
MergeCardRequst| Name | Description | Type | Additional information |
|---|---|---|---|
| cards | Collection of integer |
None. |
|
| sessionId | string |
None. |
|
| pCode | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"cards": [
1,
2
],
"sessionId": "sample string 1",
"pCode": 2
}
application/xml, text/xml
Sample:
<MergeCardRequst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model.Requst">
<pCode xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model">2</pCode>
<sessionId xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model">sample string 1</sessionId>
<cards xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</cards>
</MergeCardRequst>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MergeCardResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| CardNo | string |
None. |
|
| CardName | string |
None. |
|
| Balance | decimal number |
None. |
|
| MergeState | integer |
None. |
|
| statusCode | StatusCode |
None. |
|
| isSuccessful | boolean |
None. |
|
| message | string |
None. |
|
| returnUrl | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"CardNo": "sample string 1",
"CardName": "sample string 2",
"Balance": 3.0,
"MergeState": 4,
"isSuccessful": true,
"statusCode": 0,
"message": "sample string 6",
"returnUrl": "sample string 7"
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.