Title: Adding API for shopping feature
Last modified: January 13, 2017

---

# Adding API for shopping feature

 *  [pilarldavismedia](https://wordpress.org/support/users/pilarldavismedia/)
 * (@pilarldavismedia)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/adding-api-for-shopping-feature/)
 * I’m have a site where I sell oils and one of makers of the oils sent me this 
   info to add to my wordpress website in order to have their shopping cart (complete
   with their products, pricing, checkout, etc). I added the API plugin but there
   is no place to enter this info. Any help is appreciated.
 * Below is the info they sent to me.
 * The API accepts JSON encoded strings
    Initial request params: consumerKey: 8LMGEjJ9rDgn82KACX3l49oRP3yqz7JIGAmN3UZ9krPNnD5cma
   consumerSecret: FDGjUOcyeqG7ToX0koHQ68ipPaKHb9 action: request_token URL: [http://butterflyexpress.net/api/server](http://butterflyexpress.net/api/server)
 * Main Request params:
    consumerKey:8LMGEjJ9rDgn82KACX3l49oRP3yqz7JIGAmN3UZ9krPNnD5cma
   consumerSecret:FDGjUOcyeqG7ToX0koHQ68ipPaKHb9 token: returned from previous request
   action:process_request command:sendorder body: “order_id”:”int(11)” – Your site
   order id “user_id”:null – Always Null “contact_id”:”int(11)” – Your site contact
   id “shipping_id”:”int(11)” – Your site shipping id “order_date”:”YYYY/MM/DD” –
   date order was purchased “special_instr”:”varchar ” “products”:[{“product_sku”:”
   varchar”,”qty”:”int(11)”},{“product_sku”:”varchar”,”qty”:”int(11)”}] – Multiple
   Products “contactBilling”:{“id”:”int(11)”,”first_name”:”varchar(200)”,”last_name”:”
   varchar(200)”,”street_address”:”varchar(200)”,”address_2″: varchar(200),”city”:”
   varchar(200)”,”state”:”varchar(2)”,”zip”:”int(5)”,”country”:”varchar(3)”,”email”:”
   varchar(200)”,”phone”:”xxx-xxx-xxxx”,”company”:”varchar(200)”}, “contactShipping”:{“
   id”:”int(11)”,”first_name”:”varchar(200)”,”last_name”:”varchar(200)”,”street_address”:”
   varchar(200)”,”address_2″: varchar(200),”city”:”varchar(200)”,”state”:”varchar(
   2)”,”zip”:”int(5)”,”country”:”varchar(3)”,”email”:”varchar(200)”,”phone”:”xxx-
   xxx-xxxx”,”company”:”varchar(200)”} – fax optional

The topic ‘Adding API for shopping feature’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 0 replies
 * 1 participant
 * Last reply from: [pilarldavismedia](https://wordpress.org/support/users/pilarldavismedia/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/adding-api-for-shopping-feature/)
 * Status: not resolved