All URIs are relative to http://api.sistemasmartlog.com.br
Method | HTTP request | Description |
---|---|---|
cEPsAtendidosPhpGet | GET /CEPsAtendidos.php | Consultar se o CEP é atendido. |
cotacaoPhpPost | POST /Cotacao.php | Realizar cotação de valor de frete |
rastreamentoPhpGet | GET /Rastreamento.php | Consultar o status da encomenda |
referenciaEmbarquePhpPost | POST /ReferenciaEmbarque.php | Realizar criação de código de referência de embarque |
cEPsAtendidosPhpGet($cnpj, $token, $cep)
Consultar se o CEP é atendido.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\MdulosApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$cnpj = "cnpj_example"; // string |
$token = "token_example"; // string |
$cep = "cep_example"; // string |
try {
$apiInstance->cEPsAtendidosPhpGet($cnpj, $token, $cep);
} catch (Exception $e) {
echo 'Exception when calling MdulosApi->cEPsAtendidosPhpGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cnpj | string | ||
token | string | ||
cep | string |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
cotacaoPhpPost($cnpj, $token, $peso, $cep_destino, $valor, $volumes, $altura, $largura, $comprimento)
Realizar cotação de valor de frete
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\MdulosApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$cnpj = "cnpj_example"; // string |
$token = "token_example"; // string |
$peso = 8.14; // float |
$cep_destino = "cep_destino_example"; // string |
$valor = 8.14; // float |
$volumes = 8.14; // float |
$altura = 8.14; // float |
$largura = 8.14; // float |
$comprimento = 8.14; // float |
try {
$apiInstance->cotacaoPhpPost($cnpj, $token, $peso, $cep_destino, $valor, $volumes, $altura, $largura, $comprimento);
} catch (Exception $e) {
echo 'Exception when calling MdulosApi->cotacaoPhpPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cnpj | string | ||
token | string | ||
peso | float | ||
cep_destino | string | ||
valor | float | ||
volumes | float | ||
altura | float | ||
largura | float | ||
comprimento | float |
void (empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rastreamentoPhpGet($cnpj, $token, $chave_n_fe, $conhecimento)
Consultar o status da encomenda
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\MdulosApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$cnpj = "cnpj_example"; // string |
$token = "token_example"; // string |
$chave_n_fe = 8.14; // float |
$conhecimento = "conhecimento_example"; // string |
try {
$apiInstance->rastreamentoPhpGet($cnpj, $token, $chave_n_fe, $conhecimento);
} catch (Exception $e) {
echo 'Exception when calling MdulosApi->rastreamentoPhpGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cnpj | string | ||
token | string | ||
chave_n_fe | float | [optional] | |
conhecimento | string | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
referenciaEmbarquePhpPost($cnpj, $token, $unidade, $body)
Realizar criação de código de referência de embarque
Este método tem o objetivo de realizar a solicitação/criação de uma minuta eletronica de acordo com os parametros informados
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\MdulosApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$cnpj = "cnpj_example"; // string |
$token = "token_example"; // string |
$unidade = "unidade_example"; // string | Sigla na unidade Smartlog
$body = new \Swagger\Client\Model\Referencia(); // \Swagger\Client\Model\Referencia | Dados do pedido ou nota fiscal
try {
$apiInstance->referenciaEmbarquePhpPost($cnpj, $token, $unidade, $body);
} catch (Exception $e) {
echo 'Exception when calling MdulosApi->referenciaEmbarquePhpPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
cnpj | string | ||
token | string | ||
unidade | string | Sigla na unidade Smartlog | |
body | \Swagger\Client\Model\Referencia | Dados do pedido ou nota fiscal |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]