PATCH /api/rest/order/{orderId}/delivery

Updates delivery/tracking fields for a given order. Requires a valid JWT Bearer token.

Path parameters

  • orderId string(uuid) Required

    Rayo Order ID

application/json

Body Required

  • rastreo object Required

    Tracking fields to update. Omit any field you don't want to change.

    Additional properties are NOT allowed.

    Hide rastreo attributes Show rastreo attributes object
    • rastreo_numero string | null
    • rastreo_paqueteria string | null
    • rastreo_url string | null
    • rastreo_pdf string | null

Responses

  • 200 application/json

    Order delivery info updated successfully

    Hide response attribute Show response attribute object
    • orden object Required

      Additional properties are allowed.

      Hide orden attributes Show orden attributes object
      • id string(uuid) Required
      • rastreo_pdf string | null
      • rastreo_url string | null
      • rastreo_paqueteria string | null
      • rastreo_numero string | null
  • default application/json

    Unexpected error

    Hide response attributes Show response attributes object
    • error string Required
    • code string Required
    • path string
PATCH /api/rest/order/{orderId}/delivery
curl \
 --request PATCH 'https://cerebro.techrayo.com/api/rest/order/{orderId}/delivery' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"rastreo":{"rastreo_pdf":"https://storage.googleapis.com/download/storage/v1/b/prod-carser-skydropx/o/AMPM-STANDARD-MX-1.0.0-1005523260014.pdf?generation=1770226216425937\u0026alt=media","rastreo_url":"https://www.paquetexpress.com.mx/rastreo/211233651644","rastreo_numero":"1005523260014","rastreo_paqueteria":"FEDEX"}}'
Request example
{
  "rastreo": {
    "rastreo_pdf": "https://storage.googleapis.com/download/storage/v1/b/prod-carser-skydropx/o/AMPM-STANDARD-MX-1.0.0-1005523260014.pdf?generation=1770226216425937&alt=media",
    "rastreo_url": "https://www.paquetexpress.com.mx/rastreo/211233651644",
    "rastreo_numero": "1005523260014",
    "rastreo_paqueteria": "FEDEX"
  }
}
Response examples (200)
{
  "orden": {
    "id": "e027d467-699d-4d01-8e19-50d0b6984f7f",
    "rastreo_pdf": "https://storage.googleapis.com/download/storage/v1/b/prod-carser-skydropx/o/AMPM-STANDARD-MX-1.0.0-1005523260014.pdf?generation=1770226216425937&alt=media",
    "rastreo_url": "https://www.paquetexpress.com.mx/rastreo/211233651644",
    "rastreo_numero": "1005523260014",
    "rastreo_paqueteria": "FEDEX"
  }
}
Response examples (default)
{
  "error": "internal error",
  "code": "unexpected",
  "path": "$"
}