Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Merchant inaccuracy #58

Closed
mahmoudimus opened this issue Apr 5, 2013 · 1 comment
Closed

Docs: Merchant inaccuracy #58

mahmoudimus opened this issue Apr 5, 2013 · 1 comment

Comments

@mahmoudimus
Copy link
Contributor

18:16 < ajsharp> It says to create a merchant we have to pass in either a bank account uri or a bank account object. Is that correct? https://github.com/balanced/balanced-api/blob/master/resources/accounts.rst
18:19 < ajsharp> mjallday: ^^
18:19 < mjallday> hey mate, one second...
18:20 < ajsharp> np
18:21 < mjallday> ajsharp: looks like an inacuracy in the docs, i just tried it and it works fine without the bank account

From the documentation

Exactly one of

bank_account_uri
string. The URI of the bank account created via balanced.js. Ignored if not updated.

POSTing merchant data to the API without a bank account clearly works fine however:

 curl -X POST https://api.balancedpayments.com/v1/marketplaces/TEST-MP6IEymJ6ynwnSoqJQnUTacN/accounts \
      -u 7b7a51ccb10c11e19c0a026ba7e239a9: \
      -d email_address="megamerchant@example.org" \
      -d merchant[type]="person" \
      -d merchant[name]="William James" \
      -d merchant[street_address]="801 High St" \
      -d merchant[postal_code]="94301" \
      -d merchant[country]="USA" \
      -d merchant[dob]="1842-01" \
      -d merchant[phone_number]="+16505551234"

(migrated from balanced/balanced-api#162)

@remear
Copy link
Contributor

remear commented Aug 26, 2013

Account is deprecated.

@remear remear closed this as completed Aug 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants