POST pos/giftcard
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
ApiGiftCardOperationRequestName | Description | Type | Additional information |
---|---|---|---|
Operation | ApiGiftCardOperation |
None. |
|
Code | string |
None. |
|
GiftCards | Collection of integer |
None. |
|
CustomPaymentMethodId | integer |
None. |
|
Params | Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{ "Operation": 1, "Code": "sample string 1", "GiftCards": [ 1, 2 ], "CustomPaymentMethodId": 1, "Params": { "sample string 1": {}, "sample string 3": {} } }
application/xml, text/xml
Sample:
<ApiGiftCardOperationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Api"> <Code>sample string 1</Code> <CustomPaymentMethodId>1</CustomPaymentMethodId> <GiftCards xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </GiftCards> <Operation>Balance</Operation> <Params xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </Params> </ApiGiftCardOperationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |