The new v3 endpoint for retrieving prices for a one-click order lets you create product bundles and apply a separate discount and coupon to each individual product. Multiple bundles can be included in a single request.
It also allows you to request price breakdowns by day, week, and month for each action.
upgrade, renew, and downgrade simultaneously for the same subscription (subscriptions must be unique).purchase differs from those for upgrade, renew, and downgrade.priceCalculationType for upgrade and downgradefalse for priceCalculationType, the response will include only the total product price without a breakdown.precheckAutocharge settings.en will be used.PURCHASE action.purchase.RENEW, UPGRADE, or DOWNGRADE action.renew upgrade downgrade.404 — Products not found error code."null".taxPercent)PURCHASE objectPURCHASE action, this currently always comes as 0.00.PURCHASE action, this currently always comes as 0.00.PURCHASE action, this currently always comes as 0.00.PURCHASE action, this currently always comes as 0.00.RENEW objectRENEW action, this currently always comes as 0.00.RENEW action, this currently always comes as 0.00.RENEW action, this currently always comes as 0.00.RENEW action, this currently always comes as 0.00.UPGRADE and DOWNGRADE object{
"data": {
"currency": "GBP",
"tax": {
"type": "vat",
"country": "nl"
},
"chargeMethods": [
{
"paymentMethodType": "card",
"paymentMethodIdentifier": "**** **** **** 9903",
"chargeMethodId": "477cabe0-e92a-486e-badd-b87555e3a5b1"
},
{
"paymentMethodType": "pay_pal",
"paymentMethodIdentifier": "test@test.com",
"chargeMethodId": "477cabe0-e92a-486e-badd-b87555e3a5b2"
}
],
"bundles": [
{
"bundleHashKey": "hashKey1",
"totalAmount": {
"origin": "50.00",
"discountsAndCoupons": "19.90",
"amountWithDiscountsAndCoupons": "30.10",
"taxPercent": "10.00",
"tax": "3.01",
"amountWithDiscountsAndCouponsAndTax": "33.11"
},
"products": [
{
"productHashKey": "hashKey1",
"code": "MMBM",
"isTrial": true,
"action": "upgrade",
"subscriptionId": "UUID",
"precheckAutocharge": {
"isPrechecked": false,
"isShown": true
},
"amount": {
"origin": "50.00",
"amountForAction": "40.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
}
},
{
"productHashKey": "hashKey2",
"code": "MMPM",
"isTrial": false,
"action": "purchase",
"quantity": 2,
"precheckAutocharge": {
"isPrechecked": false,
"isShown": true
},
"amount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"dailyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"weeklyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"mounthlyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
}
}
]
},
{
"bundleHashKey": "hashKey2",
"totalAmount": {
"origin": "50.00",
"discountsAndCoupons": "19.90",
"amountWithDiscountsAndCoupons": "30.10",
"taxPercent": "10.00",
"tax": "3.01",
"amountWithDiscountsAndCouponsAndTax": "33.11"
},
"products": [
{
"productHashKey": "hashKey1",
"code": "MMBM",
"isTrial": false,
"action": "renew",
"subscriptionId": "UUID",
"precheckAutocharge": {
"isPrechecked": false,
"isShown": true
},
"amount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"dailyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"weeklyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
},
"mounthlyAmount": {
"origin": "50.00",
"amountForAction": "0.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
}
}
]
},
{
"bundleHashKey": "hashKey3",
"totalAmount": {
"origin": "50.00",
"discountsAndCoupons": "19.90",
"amountWithDiscountsAndCoupons": "30.10",
"taxPercent": "10.00",
"tax": "3.01",
"amountWithDiscountsAndCouponsAndTax": "33.11"
},
"products": [
{
"productHashKey": "hashKey1",
"code": "MMPM",
"isTrial": false,
"action": "downgrade",
"subscriptionId": "UUID",
"precheckAutocharge": {
"isPrechecked": false,
"isShown": true
},
"amount": {
"origin": "50.00",
"amountForAction": "50.00",
"discountPercent": "20.00",
"discount": "10.00",
"amountWithDiscount": "40.00",
"couponPercent": "25.00",
"couponCode": "XMAS25",
"coupon": "10.00",
"amountWithDiscountAndCoupon": "30.00",
"taxPercent": "10.00",
"tax": "3.00",
"amountWithDiscountAndCouponAndTax": "33.00"
}
}
]
}
],
"products": [
{
"id": "33025962-414d-440a-a4ec-1eaec711473b",
"code": "MMBM",
"name": "mSpy 1-Month Premium Subscription",
"nameByLocale": "mSpy 1-Month Basic Subscription",
"durationDays": 28,
"durationWeeks": 4,
"durationMonth": 1,
"isActive": true,
"availableForShop": true,
"availableForControlPanel": true,
"availableForAutocharge": true
},
{
"id": "12345678-414d-440a-a4ec-1eaec711473b",
"code": "MMPM",
"name": "mSpy 1-Month Premium Subscription",
"nameByLocale": "mSpy 1-Month Basic Subscription",
"durationDays": 28,
"durationWeeks": 4,
"durationMonth": 1,
"isActive": true,
"availableForShop": true,
"availableForControlPanel": true,
"availableForAutocharge": true
}
]
},
"meta": {
"type": "collection",
"total": 1,
"offset": 0
}
}The list of possible errors for this endpoint, along with their types and interpretation, is provided in the general reference: Endpoint response errors.