{
  "opencollection": "1.0.0",
  "info": {
    "name": "API Version 3 coverage webhooks API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "webhooks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "get-api-v3-webhooks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://delivery.99minutos.com/api/v3/webhooks",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get webhooks configurations\n\nwebhook notification example:\n\n```json\n{\n  \"StatusName\": \"stored\", // Current status of the order, the complete list of events at the tracking endpoint, are sent in camelCase.\n  \"TrackingId\": \"2139671481\", // Identifier generated by 99minutos\n  \"InternalKey\": \"SOME_ID\", // Identifier sent by the customer\n  \"Events\": [ // List of events through which the shipment has transited in ascending order \n    {\n      \"StatusCode\": \"1002\",\n      \"StatusName\": \"confirmed\",\n     "
        },
        {
          "info": {
            "name": "post-api-v3-webhooks",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://delivery.99minutos.com/api/v3/webhooks",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Submit a new webhook configuration. You can set 2 settings at most.\n\nwebhook notification example:\n\n```json\n{\n  \"StatusName\": \"stored\", // Current status of the order, the complete list of events at the tracking endpoint, are sent in camelCase.\n  \"TrackingId\": \"2139671481\", // Identifier generated by 99minutos\n  \"InternalKey\": \"SOME_ID\", // Identifier sent by the customer\n  \"Events\": [ // List of events through which the shipment has transited in ascending order \n    {\n      \"StatusCode\": \"1002\""
        },
        {
          "info": {
            "name": "patch-api-v3-webhooks-webhook_id",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://delivery.99minutos.com/api/v3/webhooks/:webhook_id",
            "params": [
              {
                "name": "webhook_id",
                "value": "",
                "type": "path",
                "description": "Webhook uuid"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update webhook configuration. You can update headers or/and status_rules.\n\nwebhook notification example:\n\n```json\n{\n  \"headers\": {\n    \"Content-Type\": \"application/json\" // Change the headers\n  },\n  \"status_rules\": {\n    \"status_version\": 2, // Change status version\n    \"allowed_status_names\": [\n      \"delivered\"   // Change the allowed status names\n    ]\n  }\n}\n```"
        },
        {
          "info": {
            "name": "delete-api-v3-webhooks-webhook_id",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://delivery.99minutos.com/api/v3/webhooks/:webhook_id",
            "params": [
              {
                "name": "webhook_id",
                "value": "",
                "type": "path",
                "description": "Webhook uuid"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete webhook config by id"
        },
        {
          "info": {
            "name": "get-api-v3-webhooks-evidences-by-tracking-id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://delivery.99minutos.com/api/v3/webhooks/evidences/:tracking_id",
            "params": [
              {
                "name": "tracking_id",
                "value": "",
                "type": "path",
                "description": "Tracking id"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get evidences by trackingId"
        }
      ]
    }
  ],
  "bundled": true
}