Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fulfil.IO Javascript/Node API

API Overview

Get a Fulfil client instance to .

var fulfil = require('fulfil');
var fulfilClient = require('fulfil').client('<subdomain>', '<api-key>');

Get a specific resource

var productModel = fulfilClient.model('product.product');

Create a new record

productModel.create([
  {template: 1, variant_name: 'Apple iPhone 6'}
])
.then(function(ids) {
  // The ids would be a list of ids
})
}).catch(function(err) {
  // Deal with an error
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.