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

I need a way to handle conflicts #4

Open
dsog opened this issue Jun 25, 2012 · 0 comments
Open

I need a way to handle conflicts #4

dsog opened this issue Jun 25, 2012 · 0 comments
Assignees

Comments

@dsog
Copy link
Member

dsog commented Jun 25, 2012

Error attempting POST => https://api.balancedpayments.com/v1/marketplaces/TEST-MK98f1c1d4844011e1911d024f5cb9b783/accounts:
409 CONFLICT
{
  "status": "Conflict", 
  "category_code": "duplicate-email-address", 
  "additional": null, 
  "status_code": 409, 
  "category_type": "logical", 
  "extras": {
    "account_uri": "/v1/marketplaces/TEST-MK98f1c1d4844011e1911d024f5cb9b783/accounts/AC1y0WNSEZTl6jb1yTyAh9fM"
  }, 
  "request_id": "OHMa9c73994bf1911e1bd3d026ba7e239a9", 
  "description": "Account with email address \"[email protected]\" already exists. Your request id is OHMa9c73994bf1911e1bd3d026ba7e239a9."
} at /usr/local/lib/perl5/site_perl/5.14.1/Business/BalancedPayments/HTTP.pm line 64.

There should be a way to query with the account_uri and get the account if it already exists. OR maybe the client should just do that step and return the object if it exists.

@ghost ghost assigned ironcamel Jun 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants