====== Reserve trading scheme (with sms keys delivering) ====== ===== Positive scenario ===== * End user request an order for several products (no more than 5 products, each not more than 5 keys) * Reseller system send request to Webstore to create a reserve (lifetime = 15 minutes). The Request must contain the telephone number of the end user. * Webstore return number of reserve. It mean that the order can be complete succefully if order is placed. * Reseller system confirm reserve and place an order * End user pay for order * Reseller system, using order number, send request to Webstore to send keys to end user by SMS * Webstore send order data to financional reporting system ==== Scheme ==== {{:ru:apiv2:apiusermanual:commonscenarios:shemasms.png?400|}} ===== Negative scenario ===== * End user request an order for several products (no more than 5 products, each not more than 5 keys) * Reseller system send request to Webstore to create a reserve (lifetime = 15 minutes). The Request must contain the telephone number of the end user. * Webstore return error result at the moment * Reseller try again in several seconds ===== Positive scenario 2 ===== * End user request an order for several products (no more than 5 products, each not more than 5 keys) * Reseller system send request to Webstore to create a reserve (lifetime = 15 minutes). The Request must contain the telephone number of the end user. * Webstore return number of reserve. It mean that the order can be complete succefully if order is placed. * Reseller system confirm reserve and place an order * Error raised in Reseller or MONT systems * When problem is resolved, Reseller system, using order number, send request to Webstore to send keys to end user by SMS * After 24 hours from placing order, data of it is already send to MONT reporting system ===== Positive scenario 3 ===== * End user request an order for several products (no more than 5 products, each not more than 5 keys) * Reseller system send request to Webstore to create a reserve (lifetime = 15 minutes). The Request must contain the telephone number of the end user. * Webstore return number of reserve. It mean that the order can be complete succefully if order is placed. * Reseller system confirm reserve and place an order * End user can't pay for order * Reseller system send request to cancel order * if 24 hours not passed - order will be succesfully canceled ===== Methods ===== * [[en:apiv2:methods:addreserve:summary_page|AddReserve]] - Reserve create * [[en:apiv2:methods:confirmreserve:summary_page|ConfirmReserve]] - Confirm reserve * [[en:apiv2:methods:cancelreserve:summary_page|CancelReserve]] - Cancel reserve * [[en:apiv2:methods:confirmordersms:summary_page|ConfirmOrderSms]] - Confirm order and send sms with keys to end user * [[en:apiv2:methods:cancelordersms:summary_page|CancelOrderSms]] - Cancel order ===== Steps ===== ==== 1. Create reserve (AddReserve) ==== {{page>en:apiv2:methods:addreserve:summary_page&noheader}} ==== 2. Reserve confirmation (ConfirmReserve) ==== {{page>en:apiv2:methods:confirmreserve:summary_page&noheader}} ==== 2а. Reserve cancelation (CancelReserve) ==== {{page>en:apiv2:methods:cancelreserve:summary_page&noheader}} ==== 3. Send keys to end user by SMS (ConfirmOrderSms) ==== {{page>en:apiv2:methods:confirmordersms:summary_page&noheader}} ==== 3а. Order cancelation (CancelOrderSms) ==== {{page>en:apiv2:methods:cancelordersms:summary_page&noheader}}