logo

SmartBill

Overview

The /dte/get-json route allows you to retrieve the JSON of a document associated with your business by providing the generation code of the DTE. The API will return the corresponding document data if it exists or an error response if it does not.

Request Details

URL: https://api.smartbill.lat/v1/dte/get-json

HTTP Method: POST

Headers:

  • Content-Type: application/json
  • X-Smartbill-Public-Key: API Public key
  • X-Smartbill-Private-Key: API private key

Structure

In the body of the request, you will need to include the structure for "body". This key acts as the container for the invoice details, ensuring that Smartbill can accurately process the request and generate the corresponding document.

document

string

Required

This refers to the “generation code” of the document you want to invalidate.

To retrieve the JSON of a specific document, you only need to provide the document’s generation code, which is the UUID returned when the document is successfully issued.

Example

Below is an example of a request to invalidate a document by simply specifying the document you wish to invalidate:

Response

Below are two examples of responses: one for a successful request and another for a request that encountered errors.