Created
March 2, 2015 15:42
-
-
Save billforward-alex/d31f23453427d82e70e6 to your computer and use it in GitHub Desktop.
Apply credit to account in BillForward Node SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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