API Reference
4.- Solicitar envío
Este endpoint permite solicitar un envío a partir de un servicio previamente seleccionado. La solicitud incluye la información del servicio de paquetería, los datos de origen y destino, las características del paquete y notas adicionales para el envío.
La respuesta devuelve la etiqueta del envío, toda la información relacionada con el envío creado y el saldo restante de la cuenta del usuario, una vez que los datos han sido validados correctamente conforme al servicio elegido.
POST
https://apirest.sheeping.io
/
v1
/
create-shipment
4.- Solicitar envío
curl --request POST \
--url https://apirest.sheeping.io/v1/create-shipment \
--header 'Content-Type: application/json' \
--data '
{
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 69,
"declared_value": 100,
"insured": false
},
"notes": "TEST NOTES"
}
'import requests
url = "https://apirest.sheeping.io/v1/create-shipment"
payload = {
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 69,
"declared_value": 100,
"insured": False
},
"notes": "TEST NOTES"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service_code: 'FEDEX_NACIONAL_ECONOMICO',
origin: {
company: 'TEST ORIGIN COMPANY',
name: 'TEST ORIGIN NAME',
phone: '3333333333',
email: 'test@mail.com',
street: 'TEST ORIGIN STREET',
street_number: '1',
neighborhood: 'TEST NEIGHBORHOOD',
zip_code: '45530',
reference: 'TEST REFERENCE'
},
destination: {
company: 'TEST DESTINATION COMPANY',
name: 'TEST DESTINATION NAME',
phone: '3333333333',
email: 'test@mail.com',
street: 'TEST DESTINATION STREET',
street_number: '1',
neighborhood: 'TEST DESTINATION NEIGHBORHOOD',
zip_code: '44100',
reference: 'TEST REFERENCE'
},
parcel: {
description: 'TEST DESCRIPTION',
dimensions: {height: 10, width: 20, depth: 20},
weight: 69,
declared_value: 100,
insured: false
},
notes: 'TEST NOTES'
})
};
fetch('https://apirest.sheeping.io/v1/create-shipment', 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://apirest.sheeping.io/v1/create-shipment",
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([
'service_code' => 'FEDEX_NACIONAL_ECONOMICO',
'origin' => [
'company' => 'TEST ORIGIN COMPANY',
'name' => 'TEST ORIGIN NAME',
'phone' => '3333333333',
'email' => 'test@mail.com',
'street' => 'TEST ORIGIN STREET',
'street_number' => '1',
'neighborhood' => 'TEST NEIGHBORHOOD',
'zip_code' => '45530',
'reference' => 'TEST REFERENCE'
],
'destination' => [
'company' => 'TEST DESTINATION COMPANY',
'name' => 'TEST DESTINATION NAME',
'phone' => '3333333333',
'email' => 'test@mail.com',
'street' => 'TEST DESTINATION STREET',
'street_number' => '1',
'neighborhood' => 'TEST DESTINATION NEIGHBORHOOD',
'zip_code' => '44100',
'reference' => 'TEST REFERENCE'
],
'parcel' => [
'description' => 'TEST DESCRIPTION',
'dimensions' => [
'height' => 10,
'width' => 20,
'depth' => 20
],
'weight' => 69,
'declared_value' => 100,
'insured' => false
],
'notes' => 'TEST NOTES'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://apirest.sheeping.io/v1/create-shipment"
payload := strings.NewReader("{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://apirest.sheeping.io/v1/create-shipment")
.header("Content-Type", "application/json")
.body("{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apirest.sheeping.io/v1/create-shipment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}"
response = http.request(request)
puts response.read_body{
"current_balance": 0,
"shipment": {
"internal_id": "fde911e5-1b7b-4339-8c85-a9c54fad4b22",
"creation_date": "2026-01-06T00:49:18.565933",
"modification_date": "2026-01-06T00:49:18.565949",
"label_number": "794974443985",
"tracking_number": "794974443985",
"carrier": {
"company_name": "FEDEX",
"service_name": "FEDEX EXPRESS SAVER",
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"service_image_url": "https://apirest.sheeping.io/media/services/fedex-logo_yMXXDkB.webp",
"capabilities": {
"supports_cancellation": false,
"supports_pickup": false,
"supports_pickup_cancellation": false
}
},
"delivery": {
"estimated_days": "1 a 3 días hábiles",
"estimated_date": "2026-01-07",
"type": "NORMAL",
"zone": "1",
"extended_area": false,
"remote_area": false
},
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE",
"rfc": "XAXX010101000",
"city": "San Pedro Tlaquepaque",
"state": "Jalisco"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE",
"rfc": "XAXX010101000",
"city": "Guadalajara",
"state": "Jalisco"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 1,
"declared_value": 100,
"insured": false,
"bienes_transp": "44121500",
"paking_code": "4G",
"total_weight": 1,
"volumetric_weight": 1
},
"quotes": {
"base": 200,
"fast_delivery": 0,
"extra_weight": 0,
"excess_weight": 0,
"excess_dimensions": 0,
"extended_area": 0,
"remote_area": 0,
"zonification": 0,
"fuel": 0,
"insurance": 0,
"subtotal": 200,
"iva": 32,
"total": 232,
"currency": "MXN"
},
"notes": "TEST NOTES",
"label": "<PDF_B64>"
},
"transaction_id": "fde911e5-1b7b-4339-8c85-a9c54fad4b22"
}{
"error": {
"code": "INVALID_PARCEL_WEIGHT",
"message": "Asegúrese de que el peso fisico no sea mayor a 68 Kg y el peso volumetrico no sea mayor a 68 Kg para el servicio FEDEX NACIONAL ECONOMICO.",
"details": {
"parcel": {
"weight": [
"El peso proporcionado no es válido."
]
}
}
},
"transaction_id": "06f0be7d-9c56-4eb6-8eea-0b892dbff5d1"
}{
"error": {
"code": "ERROR_PAYMENT_REQUIRED",
"message": "Lo sentimos no cuentas con saldo suficiente para generar el envio con FEDEX NACIONAL ECONOMICO, costo de envio 150MXN saldo actual 100MXN faltante 50MXN, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "2aefad11-a0f6-4c7d-9601-fdc03309faaf"
}{
"error": {
"code": "USER_INACTIVE_ERROR",
"message": "Lo sentimos no puedes realizar esta acción debido a que tu cuenta no esta activa, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "2aefad11-a0f6-4c7d-9601-fdc03309faaf"
}{
"error": {
"code": "SERVICE_ERROR_NO_FOUND",
"message": "Lo sentimos el servicio TEST SERVICE CODE no se encuentra disponible o no existe, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "a8e0478e-8df8-4746-9e75-aec1e2a60ca6"
}{
"detail": "Método \"GET\" no permitido.",
"status_code": 405
}{
"error": {
"code": "REQUEST_ERROR_406",
"message": "Datos de la solicitud incompletos.",
"details": {
"origin": {
"zip_code": [
"Asegúrese de que este campo no tenga más de 5 caracteres."
]
}
}
},
"transaction_id": "6c9caf92-dea3-47cf-965c-47395449c45d"
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Lo sentimos hubo un error inesperado, favor de intentar mas tarde.",
"details": null
},
"transaction_id": "9f091a8a-a214-4c23-8b89-560670c64714"
}{
"error": {
"code": "PROVIDER_TIMEOUT",
"message": "El proveedor está tardando demasiado en responder, favor de intentar mas tarde.",
"details": null
},
"transaction_id": "9f091a8a-a214-4c23-8b89-560670c64714"
}⌘I
4.- Solicitar envío
curl --request POST \
--url https://apirest.sheeping.io/v1/create-shipment \
--header 'Content-Type: application/json' \
--data '
{
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 69,
"declared_value": 100,
"insured": false
},
"notes": "TEST NOTES"
}
'import requests
url = "https://apirest.sheeping.io/v1/create-shipment"
payload = {
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 69,
"declared_value": 100,
"insured": False
},
"notes": "TEST NOTES"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service_code: 'FEDEX_NACIONAL_ECONOMICO',
origin: {
company: 'TEST ORIGIN COMPANY',
name: 'TEST ORIGIN NAME',
phone: '3333333333',
email: 'test@mail.com',
street: 'TEST ORIGIN STREET',
street_number: '1',
neighborhood: 'TEST NEIGHBORHOOD',
zip_code: '45530',
reference: 'TEST REFERENCE'
},
destination: {
company: 'TEST DESTINATION COMPANY',
name: 'TEST DESTINATION NAME',
phone: '3333333333',
email: 'test@mail.com',
street: 'TEST DESTINATION STREET',
street_number: '1',
neighborhood: 'TEST DESTINATION NEIGHBORHOOD',
zip_code: '44100',
reference: 'TEST REFERENCE'
},
parcel: {
description: 'TEST DESCRIPTION',
dimensions: {height: 10, width: 20, depth: 20},
weight: 69,
declared_value: 100,
insured: false
},
notes: 'TEST NOTES'
})
};
fetch('https://apirest.sheeping.io/v1/create-shipment', 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://apirest.sheeping.io/v1/create-shipment",
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([
'service_code' => 'FEDEX_NACIONAL_ECONOMICO',
'origin' => [
'company' => 'TEST ORIGIN COMPANY',
'name' => 'TEST ORIGIN NAME',
'phone' => '3333333333',
'email' => 'test@mail.com',
'street' => 'TEST ORIGIN STREET',
'street_number' => '1',
'neighborhood' => 'TEST NEIGHBORHOOD',
'zip_code' => '45530',
'reference' => 'TEST REFERENCE'
],
'destination' => [
'company' => 'TEST DESTINATION COMPANY',
'name' => 'TEST DESTINATION NAME',
'phone' => '3333333333',
'email' => 'test@mail.com',
'street' => 'TEST DESTINATION STREET',
'street_number' => '1',
'neighborhood' => 'TEST DESTINATION NEIGHBORHOOD',
'zip_code' => '44100',
'reference' => 'TEST REFERENCE'
],
'parcel' => [
'description' => 'TEST DESCRIPTION',
'dimensions' => [
'height' => 10,
'width' => 20,
'depth' => 20
],
'weight' => 69,
'declared_value' => 100,
'insured' => false
],
'notes' => 'TEST NOTES'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://apirest.sheeping.io/v1/create-shipment"
payload := strings.NewReader("{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://apirest.sheeping.io/v1/create-shipment")
.header("Content-Type", "application/json")
.body("{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apirest.sheeping.io/v1/create-shipment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service_code\": \"FEDEX_NACIONAL_ECONOMICO\",\n \"origin\": {\n \"company\": \"TEST ORIGIN COMPANY\",\n \"name\": \"TEST ORIGIN NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST ORIGIN STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST NEIGHBORHOOD\",\n \"zip_code\": \"45530\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"destination\": {\n \"company\": \"TEST DESTINATION COMPANY\",\n \"name\": \"TEST DESTINATION NAME\",\n \"phone\": \"3333333333\",\n \"email\": \"test@mail.com\",\n \"street\": \"TEST DESTINATION STREET\",\n \"street_number\": \"1\",\n \"neighborhood\": \"TEST DESTINATION NEIGHBORHOOD\",\n \"zip_code\": \"44100\",\n \"reference\": \"TEST REFERENCE\"\n },\n \"parcel\": {\n \"description\": \"TEST DESCRIPTION\",\n \"dimensions\": {\n \"height\": 10,\n \"width\": 20,\n \"depth\": 20\n },\n \"weight\": 69,\n \"declared_value\": 100,\n \"insured\": false\n },\n \"notes\": \"TEST NOTES\"\n}"
response = http.request(request)
puts response.read_body{
"current_balance": 0,
"shipment": {
"internal_id": "fde911e5-1b7b-4339-8c85-a9c54fad4b22",
"creation_date": "2026-01-06T00:49:18.565933",
"modification_date": "2026-01-06T00:49:18.565949",
"label_number": "794974443985",
"tracking_number": "794974443985",
"carrier": {
"company_name": "FEDEX",
"service_name": "FEDEX EXPRESS SAVER",
"service_code": "FEDEX_NACIONAL_ECONOMICO",
"service_image_url": "https://apirest.sheeping.io/media/services/fedex-logo_yMXXDkB.webp",
"capabilities": {
"supports_cancellation": false,
"supports_pickup": false,
"supports_pickup_cancellation": false
}
},
"delivery": {
"estimated_days": "1 a 3 días hábiles",
"estimated_date": "2026-01-07",
"type": "NORMAL",
"zone": "1",
"extended_area": false,
"remote_area": false
},
"origin": {
"company": "TEST ORIGIN COMPANY",
"name": "TEST ORIGIN NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST ORIGIN STREET",
"street_number": "1",
"neighborhood": "TEST NEIGHBORHOOD",
"zip_code": "45530",
"reference": "TEST REFERENCE",
"rfc": "XAXX010101000",
"city": "San Pedro Tlaquepaque",
"state": "Jalisco"
},
"destination": {
"company": "TEST DESTINATION COMPANY",
"name": "TEST DESTINATION NAME",
"phone": "3333333333",
"email": "test@mail.com",
"street": "TEST DESTINATION STREET",
"street_number": "1",
"neighborhood": "TEST DESTINATION NEIGHBORHOOD",
"zip_code": "44100",
"reference": "TEST REFERENCE",
"rfc": "XAXX010101000",
"city": "Guadalajara",
"state": "Jalisco"
},
"parcel": {
"description": "TEST DESCRIPTION",
"dimensions": {
"height": 10,
"width": 20,
"depth": 20
},
"weight": 1,
"declared_value": 100,
"insured": false,
"bienes_transp": "44121500",
"paking_code": "4G",
"total_weight": 1,
"volumetric_weight": 1
},
"quotes": {
"base": 200,
"fast_delivery": 0,
"extra_weight": 0,
"excess_weight": 0,
"excess_dimensions": 0,
"extended_area": 0,
"remote_area": 0,
"zonification": 0,
"fuel": 0,
"insurance": 0,
"subtotal": 200,
"iva": 32,
"total": 232,
"currency": "MXN"
},
"notes": "TEST NOTES",
"label": "<PDF_B64>"
},
"transaction_id": "fde911e5-1b7b-4339-8c85-a9c54fad4b22"
}{
"error": {
"code": "INVALID_PARCEL_WEIGHT",
"message": "Asegúrese de que el peso fisico no sea mayor a 68 Kg y el peso volumetrico no sea mayor a 68 Kg para el servicio FEDEX NACIONAL ECONOMICO.",
"details": {
"parcel": {
"weight": [
"El peso proporcionado no es válido."
]
}
}
},
"transaction_id": "06f0be7d-9c56-4eb6-8eea-0b892dbff5d1"
}{
"error": {
"code": "ERROR_PAYMENT_REQUIRED",
"message": "Lo sentimos no cuentas con saldo suficiente para generar el envio con FEDEX NACIONAL ECONOMICO, costo de envio 150MXN saldo actual 100MXN faltante 50MXN, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "2aefad11-a0f6-4c7d-9601-fdc03309faaf"
}{
"error": {
"code": "USER_INACTIVE_ERROR",
"message": "Lo sentimos no puedes realizar esta acción debido a que tu cuenta no esta activa, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "2aefad11-a0f6-4c7d-9601-fdc03309faaf"
}{
"error": {
"code": "SERVICE_ERROR_NO_FOUND",
"message": "Lo sentimos el servicio TEST SERVICE CODE no se encuentra disponible o no existe, favor de contactar a tu asesor.",
"details": null
},
"transaction_id": "a8e0478e-8df8-4746-9e75-aec1e2a60ca6"
}{
"detail": "Método \"GET\" no permitido.",
"status_code": 405
}{
"error": {
"code": "REQUEST_ERROR_406",
"message": "Datos de la solicitud incompletos.",
"details": {
"origin": {
"zip_code": [
"Asegúrese de que este campo no tenga más de 5 caracteres."
]
}
}
},
"transaction_id": "6c9caf92-dea3-47cf-965c-47395449c45d"
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "Lo sentimos hubo un error inesperado, favor de intentar mas tarde.",
"details": null
},
"transaction_id": "9f091a8a-a214-4c23-8b89-560670c64714"
}{
"error": {
"code": "PROVIDER_TIMEOUT",
"message": "El proveedor está tardando demasiado en responder, favor de intentar mas tarde.",
"details": null
},
"transaction_id": "9f091a8a-a214-4c23-8b89-560670c64714"
}