POST api/my/postorder
Insert order to the database before redirect to payment gateway. The compulsory input object fields required are (Items or PackageID) and agentID. Full detail will return after order being stored. {TransationType}: "HL": HomeOwner on add new listing, "HF": HomeOwner on renewal of feature listing, "TC": Training course, null/empty: irealtor online payment.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
objCard | ShoppingCard object |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "OrderID": "sample string 1", "PackageID": 1, "Items": [ { "ItemID": 1, "Quantity": 2, "Price": 3.0 }, { "ItemID": 1, "Quantity": 2, "Price": 3.0 }, { "ItemID": 1, "Quantity": 2, "Price": 3.0 } ], "Amount": 2.0, "Tax": 3.0, "DiscountAmount": 1.0, "AmountBeforeDiscount": 1.0, "AgentID": 4, "CouponCode": "sample string 5", "isMobile": true, "Status": true, "Message": "sample string 6", "Platform": "sample string 7", "TransactionType": "sample string 8", "PaymentPlatform": "sample string 9" }
application/xml, text/xml
Sample:
<ShoppingCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iProperty.Billing.Api.Models.MY"> <AgentID>4</AgentID> <Amount>2</Amount> <AmountBeforeDiscount>1</AmountBeforeDiscount> <CouponCode>sample string 5</CouponCode> <DiscountAmount>1</DiscountAmount> <Items> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> </Items> <Message>sample string 6</Message> <OrderID>sample string 1</OrderID> <PackageID>1</PackageID> <PaymentPlatform>sample string 9</PaymentPlatform> <Platform>sample string 7</Platform> <Status>true</Status> <Tax>3</Tax> <TransactionType>sample string 8</TransactionType> <isMobile>true</isMobile> </ShoppingCard>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
ShoppingCard object
Response body formats
application/json, text/json
Sample:
{ "OrderID": "sample string 1", "PackageID": 1, "Items": [ { "ItemID": 1, "Quantity": 2, "Price": 3.0 }, { "ItemID": 1, "Quantity": 2, "Price": 3.0 }, { "ItemID": 1, "Quantity": 2, "Price": 3.0 } ], "Amount": 2.0, "Tax": 3.0, "DiscountAmount": 1.0, "AmountBeforeDiscount": 1.0, "AgentID": 4, "CouponCode": "sample string 5", "isMobile": true, "Status": true, "Message": "sample string 6", "Platform": "sample string 7", "TransactionType": "sample string 8", "PaymentPlatform": "sample string 9" }
application/xml, text/xml
Sample:
<ShoppingCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iProperty.Billing.Api.Models.MY"> <AgentID>4</AgentID> <Amount>2</Amount> <AmountBeforeDiscount>1</AmountBeforeDiscount> <CouponCode>sample string 5</CouponCode> <DiscountAmount>1</DiscountAmount> <Items> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> <ShoppingCardItem> <ItemID>1</ItemID> <Price>3</Price> <Quantity>2</Quantity> </ShoppingCardItem> </Items> <Message>sample string 6</Message> <OrderID>sample string 1</OrderID> <PackageID>1</PackageID> <PaymentPlatform>sample string 9</PaymentPlatform> <Platform>sample string 7</Platform> <Status>true</Status> <Tax>3</Tax> <TransactionType>sample string 8</TransactionType> <isMobile>true</isMobile> </ShoppingCard>