Accounts

Update Account

put/api/accounts/{account-id}/update.json

Path parameters

account-idinteger required
Example:1

Query parameters

api_keystring required
Example:YOUR_API_KEY

Your API Key.

Request body

Example request

{
  "account": {
    "first_name": "My New Company Name",
    "last_name": "My New Company Name",
    "organization_name": "My New Company Name",
    "phone": "210000000",
    "email": "billing@company.com",
    "password": "secret123",
    "fiscal_id": "500100200",
    "address": "Main Street, 123",
    "city": "Lisbon",
    "postal_code": "1000-001",
    "website": "www.company.com",
    "fax": "210000001",
    "terms": "1",
    "credentials": {
      "username": "500100200/1",
      "password": "password"
    }
  }
}

Response

SUCCESS

Changes

Changed in 1 of the 2 revisions of this API.110

  • 5b82d4eb0d9f110See the full diff
    • the errors response's property type/format changed from object/ to array/ for status 401

      response-property-type-changed

    • the account/address request property's maxLength was set to 210

      request-property-max-length-set

    • the account/city request property's maxLength was set to 50

      request-property-max-length-set

    • the account/email request property's maxLength was set to 255

      request-property-max-length-set

    • the account/fax request property's maxLength was set to 255

      request-property-max-length-set

    • the account/fiscal_id request property's maxLength was set to 255

      request-property-max-length-set

    • the account/organization_name request property's maxLength was set to 100

      request-property-max-length-set

    • the account/phone request property's maxLength was set to 255

      request-property-max-length-set

    • the account/postal_code request property's maxLength was set to 255

      request-property-max-length-set

    • the account/website request property's maxLength was set to 255

      request-property-max-length-set

    • removed the optional property errors/error from the response with the 401 status

      response-optional-property-removed

    This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog