Calidad
Tenemos el privilegio de trabajar con extraordinarios clientes.
¿Qué nos diferencía?
Desde el 2010, hemos ayudado a más de 25,000 contribuyentes a cumplir sus obligaciones fiscales con facilidad.
Soporte técnico heróico
Caso de éxito AWS
Timbrado out-the-box
Modelo pay-as-you-go
Resguardamos tu información
Desarrollo personalizado
javascript
var settings = {
"url": "https://api-stage.emite.dev/v1/documents",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer ponte.en.contacto"
},
"data": JSON.stringify({
"xml": "PD94...",
"return_method": "base64"
}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
import requests
import json
url = "https://api-stage.emite.dev/v1/documents"
payload = json.dumps({
"xml": "PD94...",
"return_method": "base64"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ponte.en.contacto'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "json"
require "net/http"
url = URI("https://api-stage.emite.dev/v1/documents")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["Authorization"] = "Bearer ponte.en.contacto"
request.body = JSON.dump({
"xml": "PD94...",
"return_method": "base64"
})
response = https.request(request)
puts response.read_body
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api-stage.emite.dev/v1/documents");
request.Headers.Add("Authorization", "Bearer ponte.en.contacto");
var content = new StringContent("{\n\t\"xml\":\"PD94...\",\n\t\"return_method\": \"base64\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n\t\"xml\":\"PD94...\",\n\t\"return_method\": \"base64\"\n}");
Request request = new Request.Builder()
.url("https://api-stage.emite.dev/v1/documents")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer ponte.en.contacto")
.build();
Response response = client.newCall(request).execute();