Confirmorder2
Request Parameters:
This method is used for place order without payment.
URL: ../Api/Client/ConfirmOrder2
Header:
Content-Type:application/json
Required Parameters :
[Note: For Guest_customers as we get the CustomerGUID after add the product into the cart from that CustomerGUID get the CustomerGUID and pass that CustomerGUID in to the parameter. ]
Case-1. Success Response :
Parameter:
{
"ApiSecretKey": "i99b98d117m116a112o98k115c111",
"CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId": "1",
"LanguageId": "1"
}
Response :
{
"Status": 1,
"Message": "Your order has been successfully processed!",
"Data": {
"Message": "Your order has been successfully processed!",
"Status": "SUCCESS",
"Customer": {
"CustomerId": 1,
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"FirstName": null,
"LastName": null,
"Email": "admin@yourStore.com",
"Phone": null,
"Gender": null,
"DateOfBirth": null
},
"PaymentMethodDetail": {
"MethodName": "Check / Money Order",
"SystemName": "Payments.CheckMoneyOrder"
},
"RewardPointDetail": {
"UseRewardPoints": false,
"RewardPoints": 1251,
"RewardPointsAmount": null,
"RedeemedRewardPoints": 0,
"RedeemedPointsAmount": "$0.00",
"RewardPointsBalance": 1251,
"RewardPointsBalanceAmount": "$1,251.00"
},
"OrderDetail": {
"OrderId": 3035,
"OrderGuid": "57d10564-661f-49d2-b617-fa29812b81a8",
"OrderStatus": "Pending",
"ShippingMethod": "Next Day Air",
"VatNumber": null,
"PickUpInStore": false,
"CustomerCurrencyCode": "USD",
"CurrencyRate": 1,
"CustomerTaxDisplayTypeId": 10,
"RewardPointsWereAdded": false,
"CheckoutAttributeDescription": "",
"CheckoutAttributesXml": null,
"CustomerLanguageId": 1,
"AffiliateId": 0,
"CustomerIp": "127.0.0.1",
"ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
"CustomValuesXml": null,
"Deleted": false,
"CreatedOnUtc": "2019-02-11T12:01:31.6926688Z"
},
"PaymentDetail": {
"Status": "Pending",
"IsRecurringPayment": false
},
"BillingAddress": {
"FirstName": "Michael",
"LastName": "Richard",
"Email": "Michael@mail.com",
"Company": "Michael N Richard",
"CountryId": 1,
"CountryName": "United States",
"CountryTwoLetterIsoCode": "US",
"CountryThreeLetterIsoCode": "US",
"CountryNumericIsoCode": 840,
"StateProvinceId": 40,
"StateProvinceName": "Georgia",
"StateProvinceAbbreviation": "GA",
"City": "Callifornia",
"Address1": "Richard Homes",
"Address2": "25th Westside",
"ZipPostalCode": "100021",
"PhoneNumber": "9856230147",
"FaxNumber": "012",
"AddressHtml": null,
"FormattedCustomAddressAttributes": null,
"CustomAddressAttributes": null
},
"ShippingAddress": {
"FirstName": "John",
"LastName": "Smith",
"Email": "admin@yourStore.com",
"Company": "Nop Solutions Ltd",
"CountryId": 1,
"CountryName": "United States",
"CountryTwoLetterIsoCode": "US",
"CountryThreeLetterIsoCode": "US",
"CountryNumericIsoCode": 840,
"StateProvinceId": 16,
"StateProvinceName": "New York",
"StateProvinceAbbreviation": "NY",
"City": "New York",
"Address1": "21 West 52nd Street",
"Address2": "",
"ZipPostalCode": "10021",
"PhoneNumber": "12345678",
"FaxNumber": "",
"AddressHtml": null,
"FormattedCustomAddressAttributes": null,
"CustomAddressAttributes": null
},
"GiftCards": [],
"OrderItems": [
{
"OrderItemId": 3039,
"OrderItemGuid": "25876c1e-1f9f-4fb7-b6ca-2e32655d9e53",
"OrderId": 3035,
"Sku": "M8_HTC_5L",
"ProductId": 18,
"ProductName": "HTC One M8 Android L 5.0 Lollipop",
"ProductSeName": "htc-one-m8-android-l-50-lollipop",
"Quantity": 1,
"AttributeInfo": "",
"RentalInfo": null,
"UnitPriceInclTax": 245,
"UnitPriceExclTax": 245,
"PriceInclTax": 245,
"PriceExclTax": 245,
"DiscountAmountInclTax": "$0.00",
"DiscountAmountExclTax": "$0.00",
"OriginalProductCost": 0,
"AttributeDescription": "",
"AttributesXml": "",
"DownloadCount": 0,
"IsDownloadActivated": false,
"LicenseDownloadId": 0,
"ItemWeight": 2,
"RentalStartDateUtc": null,
"RentalEndDateUtc": null,
"UnitPriceAmount": "$245.00",
"SubTotalAmount": "$245.00"
}
],
"OrderTotalDetail": {
"PricesIncludeTax": false,
"DisplayTaxShippingInfo": false,
"Tax": null,
"OrderSubtotalInclTax": 245,
"OrderSubtotalExclTax": 245,
"OrderSubTotalDiscountInclTax": 0,
"OrderSubTotalDiscountExclTax": 0,
"OrderShippingInclTax": 10,
"OrderShippingExclTax": 10,
"PaymentMethodAdditionalFeeInclTax": 0,
"PaymentMethodAdditionalFeeExclTax": 0,
"TaxRates": "0:0; ",
"OrderTax": 0,
"OrderDiscount": 0,
"OrderTotal": 255,
"RefundedAmount": 0,
"DiscountApplied": false
},
"TermsOfServiceOnOrderConfirmPage": false,
"MinOrderTotalWarning": null,
"Warnings": []
},
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response for recurring product:
Parameter:
{
"Status": 1,
"Message": "Your order has been successfully processed!",
"Data": {
"Message": "Your order has been successfully processed!",
"Status": "SUCCESS",
"Customer": {
"CustomerId": 1,
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"FirstName": null,
"LastName": null,
"Email": "admin@yourStore.com",
"Phone": null,
"Gender": null,
"DateOfBirth": null
},
"PaymentMethodDetail": {
"MethodName": "Credit Card",
"SystemName": "Payments.Manual"
},
"RewardPointDetail": {
"UseRewardPoints": false,
"RewardPoints": 1251,
"RewardPointsAmount": null,
"RedeemedRewardPoints": 0,
"RedeemedPointsAmount": "$0.00",
"RewardPointsBalance": 1251,
"RewardPointsBalanceAmount": "$1,251.00"
},
"OrderDetail": {
"OrderId": 3054,
"OrderGuid": "a0b85f4b-d326-41c9-933f-4bf13edc018f",
"OrderStatus": "Pending",
"ShippingMethod": "Next Day Air",
"VatNumber": null,
"PickUpInStore": false,
"CustomerCurrencyCode": "USD",
"CurrencyRate": 1,
"CustomerTaxDisplayTypeId": 10,
"RewardPointsWereAdded": false,
"CheckoutAttributeDescription": "Gift wrapping: No",
"CheckoutAttributesXml": "<Attributes><CheckoutAttribute ID=\"1\"><CheckoutAttributeValue><Value>1</Value></CheckoutAttributeValue></CheckoutAttribute></Attributes>",
"CustomerLanguageId": 1,
"AffiliateId": 0,
"CustomerIp": "127.0.0.1",
"ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
"CustomValuesXml": null,
"Deleted": false,
"CreatedOnUtc": "2019-02-13T12:59:36.7066237Z"
},
"PaymentDetail": {
"Status": "Pending",
"IsRecurringPayment": true
},
"BillingAddress": {
"FirstName": "Michael",
"LastName": "Richard",
"Email": "Michael@mail.com",
"Company": "Michael N Richard",
"CountryId": 1,
"CountryName": "United States",
"CountryTwoLetterIsoCode": "US",
"CountryThreeLetterIsoCode": "US",
"CountryNumericIsoCode": 840,
"StateProvinceId": 40,
"StateProvinceName": "Georgia",
"StateProvinceAbbreviation": "GA",
"City": "Callifornia",
"Address1": "Richard Homes",
"Address2": "25th Westside",
"ZipPostalCode": "100021",
"PhoneNumber": "9856230147",
"FaxNumber": "012",
"AddressHtml": null,
"FormattedCustomAddressAttributes": null,
"CustomAddressAttributes": null
},
"ShippingAddress": {
"FirstName": "John",
"LastName": "Smith",
"Email": "admin@yourStore.com",
"Company": "Nop Solutions Ltd",
"CountryId": 1,
"CountryName": "United States",
"CountryTwoLetterIsoCode": "US",
"CountryThreeLetterIsoCode": "US",
"CountryNumericIsoCode": 840,
"StateProvinceId": 16,
"StateProvinceName": "New York",
"StateProvinceAbbreviation": "NY",
"City": "New York",
"Address1": "21 West 52nd Street",
"Address2": "",
"ZipPostalCode": "10021",
"PhoneNumber": "12345678",
"FaxNumber": "",
"AddressHtml": null,
"FormattedCustomAddressAttributes": null,
"CustomAddressAttributes": null
},
"GiftCards": [],
"OrderItems": [],
"OrderTotalDetail": {
"PricesIncludeTax": false,
"DisplayTaxShippingInfo": false,
"Tax": null,
"OrderSubtotalInclTax": 1500,
"OrderSubtotalExclTax": 1500,
"OrderSubTotalDiscountInclTax": 0,
"OrderSubTotalDiscountExclTax": 0,
"OrderShippingInclTax": 10,
"OrderShippingExclTax": 10,
"PaymentMethodAdditionalFeeInclTax": 0,
"PaymentMethodAdditionalFeeExclTax": 0,
"TaxRates": "0:0; ",
"OrderTax": 0,
"OrderDiscount": 0,
"OrderTotal": 1510,
"RefundedAmount": 0,
"DiscountApplied": false
},
"RecurringDetails": {
"Id": 15,
"CycleLength": 2,
"CyclePeriod": "Days",
"TotalCycles": 5
},
"TermsOfServiceOnOrderConfirmPage": false,
"MinOrderTotalWarning": null,
"Warnings": []
},
"ValidationMessage": [],
"ErrorMessage": null
}