Skip to content

Instantly share code, notes, and snippets.

@billforward-alex
Created March 2, 2015 15:42
Show Gist options
  • Save billforward-alex/d31f23453427d82e70e6 to your computer and use it in GitHub Desktop.
Save billforward-alex/d31f23453427d82e70e6 to your computer and use it in GitHub Desktop.
Apply credit to account in BillForward Node SDK
BillForward.Account.getByID('ACC-81674A80-3B2D-4327-8C24-994720BA')
.then(function(account) {
models.creditNote = new BillForward.CreditNote({
'accountID': account.id, // predicated on account's first being created
'value': 100,
'currency': 'USD'
});
return BillForward.CreditNote.create(models.creditNote);
})
.done();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment