PUT api/orders/ConfirmOrder/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
ConfirmOrderRequestName | Description | Type | Additional information |
---|---|---|---|
Cart | ICart |
None. |
|
PaymentDetails | PaymentParameters |
None. |
|
CardDetails | CardInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "PaymentDetails": { "PaymentModeUsed": 0, "PaymentTrackingId": "sample string 1", "AuthorizationCode": "sample string 2", "PaymentStatus": "sample string 3", "TransactionError": "sample string 4" }, "CardDetails": { "NameOnCard": "sample string 1", "CardNumber": "sample string 2", "CardExpirationDate": "sample string 3", "CVVCode": "sample string 4" } }
text/xml
Sample:
<ConfirmOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Kintivo.Commerce.API.Entities"> <_x003C_CardDetails_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Kintivo.Commerce.Entities"> <d2p1:_CVVCode>sample string 4</d2p1:_CVVCode> <d2p1:_CardExpirationDate>sample string 3</d2p1:_CardExpirationDate> <d2p1:_CardNumber>sample string 2</d2p1:_CardNumber> <d2p1:_NameOnCard>sample string 1</d2p1:_NameOnCard> </_x003C_CardDetails_x003E_k__BackingField> <_x003C_Cart_x003E_k__BackingField i:nil="true" /> <_x003C_PaymentDetails_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Kintivo.Commerce.Entities"> <d2p1:AuthorizationCode>sample string 2</d2p1:AuthorizationCode> <d2p1:PaymentModeUsed>None</d2p1:PaymentModeUsed> <d2p1:PaymentStatus>sample string 3</d2p1:PaymentStatus> <d2p1:PaymentTrackingId>sample string 1</d2p1:PaymentTrackingId> <d2p1:TransactionError>sample string 4</d2p1:TransactionError> </_x003C_PaymentDetails_x003E_k__BackingField> </ConfirmOrderRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.