This is the API Drive FX Documentation Center, here you can access helping files, test our API.
In this section you can see some examples of how to use the API Drive FX in several programming languages!

 

Feel free to copy the files and use it on your on project!

Create a internal document for stock exchange between Warehouses!

 

This example illustrate the creation of an internal document of type “inventory transfers”, that allows the user to specify the both warehouses: origin warehouse
and destiny warehouse.

The example will create the product if it is not created yet at the Drive FX. The code below assume that the record of customer is already created.

Console application in C# that uses  CreateDocument endpoint of the API

 

Has the basic classes and fields needed to sucessfully create a document:

 

  • Customer
  • RequestOptions
  • Document
  • Products

Example that uses a HTML Form to submit info about client and creates a invoice in Drive FX

 

This form was created with PHP languange and uses two endpoints of Drive FX API, Generate Access Token and Create Document.

 

The first endpoint (Generate Access Token) will be called when the form is initialized, in order to generate the access token that will be used every time you want to call an endpoint.

 

After the token is correctly generated, the form can be filled and when you submit the form it will be called
the endpoint Create Document to create an invoice with that data.

Create wares and services at Drive FX API and update them

 

This example was created with PHP languange and uses four endpoints of Drive FX API:

  • Generate Access Token
  • Get new instance of Object
  • Save instance of Object
  • Search Entities

 

The first endpoint will be called when the example is initialized, in order to generate the access token that will be used every time you want to call an endpoint.

 

Then, the second endpoint will create an instance in “Artigos e Serviços” and we can change the values as we like.

 

At the third endpoint, it will saves the values changed before and provides the information at Drive FX.

 

Finally, the fourth endpoint allows us to search for an entity created before.

Create clients at Drive FX API and update their information

 

This example was created with PHP languange and uses exactly the same four endpoints of Drive FX API of the previous example:

  • Generate Access Token
  • Get new instance of Object
  • Save instance of Object
  • Search Entities

 

The first endpoint will be called when the example is initialized, in order to generate the access token that will be used every time you want to call an endpoint.

 

Then, the second endpoint will create an instance in “Clientes” and we can change the values as we like.

 

At the third endpoint, it will saves the values changed before and provides the information at Drive FX.

 

Finally, the fourth endpoint allows us to search for an entity created before.

Create wares and services at Drive FX API through an Excel file

 

This example was created with PHP languange and uses four endpoints of Drive FX API:

  • Generate Access Token
  • Search Entities
  • Get new instance of Object
  • Save instance of Object

 

The first endpoint will be called when the example is initialized, in order to generate the access token that will be used every time you want to call an endpoint.

 

Then, the second endpoint will search through the entities in “Taxas Iva” and “Miseimp” and associate the codes of tabiva to the miseimpstamp.

 

At the third endpoint, we will create an instance that allows us to fetch the information in an Excel file that we created and then create a new ware or service.

 

Finally, the fourth endpoint it will saves the values changed before and provides the information at Drive FX.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Start typing and press Enter to search