Create

POST /api/accounts/create.json Creates a new account. Example Request curl Ruby Node Python PHP Go Request Body Name Type Required Description account Object Required Account data to be created first_name String The user’s first name. last_name String The user’s last name. organization_name String Required The name of the company. phone String The account phone number. email […]

Update

PUT /api/accounts/:account-id/update.json Updates account data. Example Request curl Ruby Node Python PHP Go Query Parameters Name Type Required Description Example account-id Integer Required The ID of the account to be updated. 42 Request Body Parameters Name Type Required Description account Object Required Account data to be created first_name String The user’s first name. last_name String […]

Get

GET /api/accounts/:account-id/get.json Returns a specific account. Example Request curl Ruby Node Python PHP Go Path Parameters Name Type Required Description Example account-id Integer Required The ID of the account you want to get. 42 Responses 200 SUCCESS Taxes Get 401 ACCESS DENIEDThe API Key parameter is missing or is incorrectly entered. (Empty Response) 404 NOT […]

Delete

DELETE /taxes/:tax-id.json Deletes a tax. Example Request curl Ruby Node Python PHP Go Path Parameters Name Type Required Description Example tax_id Integer Required The ID of the tax to be deleted. 42 Responses 200 SUCCESS (Empty Response) 401 ACCESS DENIEDThe API Key parameter is missing or is incorrectly entered. (Empty Response) 404 NOT FOUNDNo item […]

Create

POST /taxes.json Creates a new tax. Example Request curl Ruby Node Python PHP Go Request Body Name Type Required Description tax Object Required Tax data to be created name String Required Tax name value String Required Tax value (%) region String Depends Tax region. This parameter is required to export SAF-T PT. When this element […]

Update

PUT /taxes/:tax-id.json Updates a tax. Example Request curl Ruby Node Python PHP Go Query Parameters Name Type Required Description Example tax-id Integer Required The ID of the tax to be updated. 42 Request Body Parameters Name Type Required Description tax Object Required Tax data to be updated. name String Required Tax name value String Required […]

Get

GET /taxes/:tax-id.json Returns a specific tax. Example Request curl Ruby Node Python PHP Go Path Parameters Name Type Required Description Example tax-id Integer Required The ID of the tax you want to get. 42 Responses 200 SUCCESS Taxes Get 401 ACCESS DENIEDThe API Key parameter is missing or is incorrectly entered. (Empty Response) 404 NOT […]

List all

GET /taxes.json Returns all your taxes. Example Request curl Ruby Node Python PHP Go Responses 200 SUCCESS Taxces List all 401 ACCESS DENIEDThe API Key parameter is missing or is incorrectly entered. (Empty Response) Example Success Body Response

Create

POST /sequences.json Creates and registers a new sequence. For portuguese accounts, it’s necessary to have AT credentials configured. View all information here. Example Request curl Ruby Node Python PHP Go Request Body Name Type Required Description sequence Object Required Sequence data to be created serie String Required Series name default_sequence String If “1”, this sequence is […]

Update

PUT /sequences/:sequence-id/set_current.json Sets a specific sequence as the default. Example Request curl Ruby Node Python PHP Go Query Parameters Name Type Required Description Example sequence-id Integer Required The sequence to set as the default. 42 Responses 200 SUCCESSThe sequence was set as the default successfully. (Empty Response) 401 ACCESS DENIEDThe API Key parameter is missing […]