Impulsionar entrega
curl --request POST \
--url https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"valor": 7.5
}'import requests
url = "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar"
payload = { "valor": 7.5 }
headers = {
"Authorization": "Basic <encoded-value>",
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({valor: 7.5})
};
fetch('https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'valor' => 7.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar"
payload := strings.NewReader("{\n \"valor\": 7.5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar")
.header("Authorization", "Basic <encoded-value>")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"valor\": 7.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valor\": 7.5\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id_mch": 781169552,
"valor": 7.5,
"origem": "empresa"
}
}Entregas
Impulsionar entrega
Soma um valor extra a uma entrega pendente informada em {id}, com a mesma regra do botão Impulsionar do painel. O valor deixa a entrega mais atrativa para os entregadores e vale uma vez por entrega.
Quem paga depende do usuário autenticado:
- Gestor de empresa: o valor extra entra no preço da entrega e é cobrado da empresa. A entrega precisa ser da própria empresa, e a empresa precisa ter o impulsionamento de entregas liberado. Com pagamento por carteira de créditos, a empresa precisa ter saldo mínimo e, em central de preço fixo, saldo para o valor da entrega somado ao extra.
- Gestor da central: o valor extra é custo da central, pago ao entregador quando a entrega é finalizada. A empresa não paga nem vê esse valor. A entrega precisa ser da própria central. A resposta traz também o valor final da entrega e a data e hora do impulsionamento.
A entrega precisa estar pendente, sem entregador. O valor aceito vai de 2,00 a 100,00 reais.
Para acessar este endpoint, o usuário autenticado deve ter a permissão API - Corrida/Entrega.
POST
/
entregas
/
{id}
/
impulsionar
Impulsionar entrega
curl --request POST \
--url https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"valor": 7.5
}'import requests
url = "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar"
payload = { "valor": 7.5 }
headers = {
"Authorization": "Basic <encoded-value>",
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Basic <encoded-value>',
'api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({valor: 7.5})
};
fetch('https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'valor' => 7.5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar"
payload := strings.NewReader("{\n \"valor\": 7.5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar")
.header("Authorization", "Basic <encoded-value>")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"valor\": 7.5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.taximachine.com.br/api/v2/integracao/entregas/{id}/impulsionar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valor\": 7.5\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id_mch": 781169552,
"valor": 7.5,
"origem": "empresa"
}
}Authorizations
Body
application/json
