POST giftcards
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
ApiPushRequestOfGiftCardApiModelName | Description | Type | Additional information |
---|---|---|---|
Inserted | Collection of GiftCardApiModel |
None. |
|
Updated | Collection of GiftCardApiModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "Inserted": [ { "CompanyId": 1, "Amount": 2.0, "GiftCardCode": "sample string 3", "RemainingAmount": 4.0, "Name": "sample string 5", "Email": "sample string 6", "By": "sample string 7", "Type": 64, "CreatedDate": "2024-11-21T02:29:31.1675806-05:00", "CustomPaymentMethodId": 1, "AllowMultipleUsage": true, "ExpirationDate": "2024-11-21T02:29:31.1675806-05:00", "OrderItemMobileId": 1, "InternalMobileId": 11, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true }, { "CompanyId": 1, "Amount": 2.0, "GiftCardCode": "sample string 3", "RemainingAmount": 4.0, "Name": "sample string 5", "Email": "sample string 6", "By": "sample string 7", "Type": 64, "CreatedDate": "2024-11-21T02:29:31.1675806-05:00", "CustomPaymentMethodId": 1, "AllowMultipleUsage": true, "ExpirationDate": "2024-11-21T02:29:31.1675806-05:00", "OrderItemMobileId": 1, "InternalMobileId": 11, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true } ], "Updated": [ { "CompanyId": 1, "Amount": 2.0, "GiftCardCode": "sample string 3", "RemainingAmount": 4.0, "Name": "sample string 5", "Email": "sample string 6", "By": "sample string 7", "Type": 64, "CreatedDate": "2024-11-21T02:29:31.1675806-05:00", "CustomPaymentMethodId": 1, "AllowMultipleUsage": true, "ExpirationDate": "2024-11-21T02:29:31.1675806-05:00", "OrderItemMobileId": 1, "InternalMobileId": 11, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true }, { "CompanyId": 1, "Amount": 2.0, "GiftCardCode": "sample string 3", "RemainingAmount": 4.0, "Name": "sample string 5", "Email": "sample string 6", "By": "sample string 7", "Type": 64, "CreatedDate": "2024-11-21T02:29:31.1675806-05:00", "CustomPaymentMethodId": 1, "AllowMultipleUsage": true, "ExpirationDate": "2024-11-21T02:29:31.1675806-05:00", "OrderItemMobileId": 1, "InternalMobileId": 11, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true } ] }
application/xml, text/xml
Sample:
<ApiPushRequestOfGiftCardApiModelSoOqNYiB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Api"> <Inserted xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Data.Mapping.Mobile.Catalog"> <d2p1:GiftCardApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">11</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <AllowMultipleUsage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</AllowMultipleUsage> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2</Amount> <By xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 7</By> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CompanyId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</CreatedDate> <CustomPaymentMethodId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CustomPaymentMethodId> <Email xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 6</Email> <ExpirationDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</ExpirationDate> <GiftCardCode xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 3</GiftCardCode> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 5</Name> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <RemainingAmount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</RemainingAmount> <Type xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">64</Type> </d2p1:GiftCardApiModel> <d2p1:GiftCardApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">11</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <AllowMultipleUsage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</AllowMultipleUsage> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2</Amount> <By xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 7</By> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CompanyId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</CreatedDate> <CustomPaymentMethodId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CustomPaymentMethodId> <Email xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 6</Email> <ExpirationDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</ExpirationDate> <GiftCardCode xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 3</GiftCardCode> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 5</Name> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <RemainingAmount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</RemainingAmount> <Type xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">64</Type> </d2p1:GiftCardApiModel> </Inserted> <Updated xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Data.Mapping.Mobile.Catalog"> <d2p1:GiftCardApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">11</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <AllowMultipleUsage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</AllowMultipleUsage> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2</Amount> <By xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 7</By> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CompanyId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</CreatedDate> <CustomPaymentMethodId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CustomPaymentMethodId> <Email xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 6</Email> <ExpirationDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</ExpirationDate> <GiftCardCode xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 3</GiftCardCode> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 5</Name> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <RemainingAmount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</RemainingAmount> <Type xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">64</Type> </d2p1:GiftCardApiModel> <d2p1:GiftCardApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">11</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <AllowMultipleUsage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</AllowMultipleUsage> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2</Amount> <By xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 7</By> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CompanyId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</CreatedDate> <CustomPaymentMethodId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</CustomPaymentMethodId> <Email xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 6</Email> <ExpirationDate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">2024-11-21T02:29:31.1675806-05:00</ExpirationDate> <GiftCardCode xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 3</GiftCardCode> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 5</Name> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <RemainingAmount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</RemainingAmount> <Type xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">64</Type> </d2p1:GiftCardApiModel> </Updated> </ApiPushRequestOfGiftCardApiModelSoOqNYiB>
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. |