WS611 - Export SLA report - Region x Shipper
This integration aims to export the SLA report - Region x Comprovei Shipper
Authentication
- Calls will have transport-level authentication (Basic Authentication);
- Request
user/passwordfrom the account administrator.
Features
-
URL
https://api.comprovei.com.br/api/1.1/util/export/documentSlaRegionShipper
-
Method:
POST -
URL parameter:
No parameters
-
Example:
{ "headers": { "username": "usuario", "password": "senha" }, "body": { "formato_exportacao" : "xml", "filtros": { "data_SLA_inicial": "2020-01-01", "data_SLA_final": "2020-01-01", "data_finalizacao_inicial": "2020-01-01", "data_finalizacao_final": "2020-01-01", "embarcadores": ["String", "String2"], "transportadoras": ["String", "String2"], "regioes": ["int", "int2"] } } }Response Example
- Success:
{ "statusCode": 200, "headers": { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": true }, "body": { "user_message": "https://comprovei.s3.amazonaws.com/producao/report_requests/export/21/routeExport-20200525192526.csv.zip? X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJELIIV2RATTMVK7A%2F20200525%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20200525T192538Z&X-Amz-Expires=259200& X-Amz-Signature=19d54276cff1a3f1e074bac3e5f7737d670030f5bfb8267fbfebeb335a2dfca4&X-Amz-SignedHeaders=host", "code": 0, "internal_message": "Exportação gerada com sucesso!", "response_data": "" } } -
Error:
{ "statusCode": 400, "headers": { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": true }, "body": { "message": "Não foram encontrados resultados para os filtros selecionados!" } } -
Error:
{ "statusCode": 400, "headers": { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": true }, "body": { "message": "Algum campo de data está no formato errado. Tente (aaaa-mm-dd)" } }- Error:
{ "statusCode": 400, "headers": { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": true }, "body": { "message": "O intervalo de datas não pode ter mais de 31 dias" } }
- Error:
- Success: