Saf-t PT Suportado

InvoiceXpress API

users.login

This endpoint does not require an API KEY to be acessible.
Instead it requires your current login and password.
Upon successful login it will return all the accounts which belong to you.

Use this to obtain API_KEY for your accounts avoiding going through the web interface to generate them.

Account information returned explained:

  • account id (id)
  • account organization name (name)
  • account url (url)
  • account api_key (api_key)
  • account state wether if it’s active, deactive or pending (state)

You call this method submitting an HTTP POST request to the following URL including on the request body, a xml data with your current credentials:

https://www.invoicexpress.net/login.xml

Example xml to be submitted with the invoice data:

<?xml version="1.0" encoding="UTF-8"?>
<credentials>
 <login>chucknorris@invoicexpress.com</login>
 <password>icanspeakbraille</password>
</credentials>

Return Values

Success

Your current accounts are sent on a xml format. Example xml:

<?xml version="1.0" encoding="UTF-8"?>
<accounts>
 <account>
  <id>1</id>
  <name>Chuck LDA</name>
  <url>https://chuck.invoicexpress.net</url>
  <api_key>000111222333444</api_key>
  <state>active</state>
 </account>
 <account>
  <id>2</id>
  <name>Norris will crush you</name>
  <url>https://roundhouse.invoicexpress.net</url>
  <api_key>3330000</api_key>
  <state>active</state>
 </account>
</accounts>

Error

HTTP: 401 Access denied
Authentication failed using the submitted credentials.
HTTP: 422 Unprocessable Entity
Credentials are missing.