Commerce Services
Categories
Component ID
1275216
Component name
Commerce Services
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Overview
The Commerce Services module integrates with the Services v3.x or later to provide methods to create and manage product nodes via Web Services.
Currently product.create action is enabled for use, and we're looking forward to add new actions soon.
Commerce Services seeds are in Groups.Drupal and Services Issues.
Please note: the code will be soon published here.
Instructions
The operation works like the node.create operation, required attributes are:
- type (product type, e.g. 'product'),
- sku (must be unique, if not a SQL ERROR will arise),
- title (string),
- uid (numeric),
- amount (numeric, multiply by 100, e.g. 1.99 = 199),
- currency_code (string, e.g. "USD").
The call will return a product ID (in the pid attribute) that can be used to reference the product from a content node.
