DR Php api

Page 1

Share-it PHP Integrations This documentation relates to the classic PHP based storefront / checkout process on the MyCommerce Share-it platform. We are also introducing a newer storefront which may not yet qualify for your use case as some feature gaps are pending closure per our roadmap. Please contact us with questions. Traditionally integrations via vendor hosted sites and share-it checkout were solely based on URL parameters as documented in the Control Panel and the appendix of this document. The JSON based API provides a convenient alternative for vendors that want to present a product selector on their site and then send the shopper to a pre-populated cart to conclude the checkout process. It also is highly compatible with the API for the new storefront so that a future transition is made easy. This approach can be combined with SSO profile integration (see separate documentation) as well as pulling in product data from our new RESTful API (https://api.shareit.com/HelpShareit - access to help requires a valid CP login, you can sign-up free of charge any time at www.mycommerce.com ). After an order was placed successfully we will send you XML or JSON notifications (via HTTPS WebHook or email) on status updates as well as call your license key generator (if configured). See separate docs. Our classic SOAP APIs provide access to manage subscriptions. These APIs will also be ported over to RESTful endpoints in the near future.

PHP Cart API The PHP cart API can be used to create a cart in the PHP order system programmatically and then send the shopper to the cart page at a later time. https://secure.shareit.com/shareit/cartapi.php

POST – Add to cart / PUT – Replace cart { "items": [ { "product_id": "300671271", "quantity": 1, "vendor_id": "18531", "dyn_name": "Subscription 50 GB yearly [abc123]", "additionals": [ { "name": "Device", "value": "abc123" } ] }, { "product_id": "300671271", "quantity": 1, "vendor_id": "18531", "dyn_name": "Subscription 50 GB yearly [xyz456]", "additionals": [ { "name": "Device", "value": "xyz456" } ] } ] }

MyCommerce powered by ShareIt, Digital River GmbH, Cologne, Germany

digitalriver.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.