Múltiplas Contas

É possível o usuário fazer parte de mais de uma conta. No momento de seu login, é necessário informar qual conta deseja utilizar.

Listar contas

GET /accounts

Exibe os atributos das contas do usuário, retornando 200 Ok.

Exemplo de Resposta

HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/json; charset=utf-8
[
  {
    "account": {
        "beta": true,
        "blocked": false,
        "canceled_at": null,
        "cancellation_reason": null,
        "charging_uuid": null,
        "created_at": "2014-03-13T15:35:38-03:00",
        "default_currency_id": 2,
        "ecommerce_response": "{"charge_day":21,"client_name":"","plan_slug":"myfinance-max","api_url":"http://ecommerce.myfreecomm.com.br/api/orders/myfinance-max/1383/","client_cpf":"","is_active":false,"is_paid":false,"activated_at":null,"activation_expired":false,"number":1383,"plan_change_urls":{"myfinance-plus":"http://ecommerce.myfreecomm.com.br/myfinance-max/1383/change/myfinance-plus/","myfinance-premium":"http://ecommerce.myfreecomm.com.br/myfinance-plus/1383/change/myfinance-premium/","myfinance-basic":"http://ecommerce.myfreecomm.com.br/myfinance-plus/1383/change/myfinance-basic/","myfinance-personal":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-personal","myfinance-professional":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-professional","myfinance-bronze":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-bronze","myfinance-silver":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-silver","myfinance-gold":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-gold","myfinance-platinum":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-platinum"},"next_payment_at":null,"user_code":"2","client_email":"rodrigo.tassinari@fintera.com.br","is_recurring":true,"is_trial":false,"checkout_url":"http://ecommerce.myfreecomm.com.br/myfinance-max/1383/checkout/","amount":"49.90","created_at":"2011-12-21 10:05:09","active_until":null}",
        "id": 1,
        "invite": null,
        "is_trial": false,
        "name": "Minha Conta",
        "payment_method": "ecommerce",
        "plan_slug": "max",
        "referral_code": "70beea263",
        "referrer_id": null,
        "updated_at": "2014-03-13T15:35:38-03:00",
        "uuid": "740d0256-9062-4824-ab96-efabcbe36ca1",
        "waiting_payment": false
    }
  },
  {
    "account": {
        "beta": true,
        "blocked": false,
        "canceled_at": null,
        "cancellation_reason": null,
        "charging_uuid": null,
        "created_at": "2014-03-13T15:35:38-03:00",
        "default_currency_id": 2,
        "ecommerce_response": "{"charge_day":21,"client_name":"","plan_slug":"myfinance-max","api_url":"http://ecommerce.myfreecomm.com.br/api/orders/myfinance-max/1383/","client_cpf":"","is_active":false,"is_paid":false,"activated_at":null,"activation_expired":false,"number":1383,"plan_change_urls":{"myfinance-plus":"http://ecommerce.myfreecomm.com.br/myfinance-max/1383/change/myfinance-plus/","myfinance-premium":"http://ecommerce.myfreecomm.com.br/myfinance-plus/1383/change/myfinance-premium/","myfinance-basic":"http://ecommerce.myfreecomm.com.br/myfinance-plus/1383/change/myfinance-basic/","myfinance-personal":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-personal","myfinance-professional":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-professional","myfinance-bronze":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-bronze","myfinance-silver":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-silver","myfinance-gold":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-gold","myfinance-platinum":"http://ecommerce.myfreecomm.com.br/myfinance-family/1383/change/myfinance-platinum"},"next_payment_at":null,"user_code":"2","client_email":"rodrigo.tassinari@fintera.com.br","is_recurring":true,"is_trial":false,"checkout_url":"http://ecommerce.myfreecomm.com.br/myfinance-max/1383/checkout/","amount":"49.90","created_at":"2011-12-21 10:05:09","active_until":null}",
        "id": 2,
        "invite": null,
        "is_trial": false,
        "name": "Minha outra conta",
        "payment_method": "ecommerce",
        "plan_slug": "max",
        "referral_code": "70beea263",
        "referrer_id": null,
        "updated_at": "2014-03-13T15:35:38-03:00",
        "uuid": "740d0256-9062-4824-ab96-efabcbe36ca1",
        "waiting_payment": false
    }
  }
]
HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 20:00:02 GMT
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<accounts type="array">
  <account>
    <id type="integer">1</id>
    <name>Minha conta</name>
  </account>
  <account>
    <id type="integer"></id>
    <name>Minha outra conta</name>
  </account>
</accounts>