UBER-EATS-Wrapper/postman/Uber_Wrapper.postman_collection.json

1086 lines
25 KiB
JSON

{
"info": {
"_postman_id": "3f2bc407-ec9d-4eef-b77d-74359eb281fe",
"name": "Uber Wrapper",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Health",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/health",
"host": [
"{{baseUrl}}"
],
"path": [
"health"
]
}
}
},
{
"name": "Create Merchant",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Demo Restaurant\",\n \"externalRef\": \"pos_001\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/merchants",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"merchants"
]
}
}
},
{
"name": "Get OAuth URL",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/auth/uber/authorize-url?merchantId={{merchantId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"auth",
"uber",
"authorize-url"
],
"query": [
{
"key": "merchantId",
"value": "{{merchantId}}"
}
]
}
}
},
{
"name": "Check Domain Pairing",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/auth/uber/domain-pairing-status",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"auth",
"uber",
"domain-pairing-status"
]
}
}
},
{
"name": "Get Auth Capabilities",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/auth/uber/capabilities",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"auth",
"uber",
"capabilities"
]
}
}
},
{
"name": "Client Credentials Token",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"scope\": \"eats.store eats.order\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/auth/uber/client-credentials-token",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"auth",
"uber",
"client-credentials-token"
]
}
}
},
{
"name": "Replace Menu (PUT)",
"request": {
"method": "PUT",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"merchantId\": \"{{merchantId}}\",\n \"storeId\": \"{{storeId}}\",\n \"menu\": {\n \"categories\": []\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/menu/replace",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"menu",
"replace"
]
}
}
},
{
"name": "Update Menu Items",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"merchantId\": \"{{merchantId}}\",\n \"storeId\": \"{{storeId}}\",\n \"items\": [\n {\n \"id\": \"item_1\",\n \"price_info\": {\n \"price\": 799\n },\n \"suspension_info\": {\n \"suspend_until\": null\n }\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/menu/items",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"menu",
"items"
]
}
}
},
{
"name": "List Provisionable Stores",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/provisionable?merchantId={{merchantId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"provisionable"
],
"query": [
{
"key": "merchantId",
"value": "{{merchantId}}"
}
]
}
}
},
{
"name": "List Stores (App)",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores"
]
}
}
},
{
"name": "Delivery Store API - Get Stores",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores?page_size=50",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores"
],
"query": [
{
"key": "page_size",
"value": "50"
}
]
}
}
},
{
"name": "Delivery Store API - Get Store Details",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}?expand=holiday_hours,internal_contact_emails",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}"
],
"query": [
{
"key": "expand",
"value": "holiday_hours,internal_contact_emails"
}
]
}
}
},
{
"name": "Delivery Store API - Update Store",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"contact\": {\n \"email\": \"abc@restaurant.com\",\n \"name\": \"Jane Doe\",\n \"phone_number\": \"+1-800-999-9999\"\n },\n \"pickup_instructions\": \"Enter from the north side\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}"
]
}
}
},
{
"name": "Delivery Store API - Get Status",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}/status",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}",
"status"
]
}
}
},
{
"name": "Delivery Store API - Set Status",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"OFFLINE\",\n \"is_offline_until\": \"2026-04-01T10:00:00.000Z\",\n \"reason\": \"Scheduled maintenance\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}/status",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}",
"status"
]
}
}
},
{
"name": "Delivery Store API - Update Prep Time",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"default_prep_time\": 500\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}/prep-time",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}",
"prep-time"
]
}
}
},
{
"name": "Delivery Store API - Update Fulfillment Config",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"override_config\": {\n \"custom_min_etd_minutes\": 30\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/delivery-store/stores/{{storeId}}/fulfillment-configuration",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"delivery-store",
"stores",
"{{storeId}}",
"fulfillment-configuration"
]
}
}
},
{
"name": "Get Store By ID",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}"
]
}
}
},
{
"name": "Get Store Status",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/status",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"status"
]
}
}
},
{
"name": "Set Store Status",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"OFFLINE\",\n \"reason\": \"maintenance\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/status",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"status"
]
}
}
},
{
"name": "Get Holiday Hours",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/holiday-hours",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"holiday-hours"
]
}
}
},
{
"name": "Get Order Details",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/orders/{{orderId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"orders",
"{{orderId}}"
]
}
}
},
{
"name": "Resolve Fulfillment Issue",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"merchantId\": \"{{merchantId}}\",\n \"action\": \"resolve\",\n \"payload\": {\n \"issues\": []\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/orders/{{orderId}}/action",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"orders",
"{{orderId}}",
"action"
]
}
}
},
{
"name": "Resolve Fulfillment Issues (Typed)",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"issues\": [\n {\n \"cart_item_id\": \"cart_item_1\",\n \"issue_type\": \"OUT_OF_ITEM\",\n \"action_type\": \"REPLACE_FOR_ME\",\n \"item_substitute\": {\n \"id\": \"sub_item_1\"\n }\n }\n ]\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/orders/{{orderId}}/fulfillment-issues",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"orders",
"{{orderId}}",
"fulfillment-issues"
]
}
}
},
{
"name": "Mark Order Ready",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/orders/{{orderId}}/ready",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"orders",
"{{orderId}}",
"ready"
]
}
}
},
{
"name": "Order Response SLA Metric",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/metrics/order-response-sla",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"metrics",
"order-response-sla"
]
}
}
},
{
"name": "Go Live Readiness Metric",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/metrics/go-live-readiness?merchantId={{merchantId}}",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"metrics",
"go-live-readiness"
],
"query": [
{
"key": "merchantId",
"value": "{{merchantId}}"
}
]
}
}
},
{
"name": "Fetch Reporting CSV",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"method\": \"GET\",\n \"upstreamPath\": \"/v1/eats/reports/payment_details\",\n \"query\": {\n \"storeUUIDs\": \"{{storeId}}\",\n \"startDate\": \"2026-03-01\",\n \"endDate\": \"2026-03-02\"\n },\n \"parseCsv\": true,\n \"requiredHeaders\": [\"order_id\", \"store_id\"]\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/reporting/fetch",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"reporting",
"fetch"
]
}
}
},
{
"name": "Set Holiday Hours",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"holiday_hours\": []\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/holiday-hours",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"holiday-hours"
]
}
}
},
{
"name": "Create POS Data (Provision)",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"merchantId\": \"{{merchantId}}\",\n \"posData\": {\n \"allowed_customer_requests\": {\n \"allow_single_use_items_requests\": false,\n \"allow_special_instruction_requests\": false\n },\n \"integrator_brand_id\": \"app-brand-1jj9th32\",\n \"integrator_store_id\": \"app-store-001\",\n \"is_order_manager\": true,\n \"merchant_store_id\": \"UberStore1\",\n \"require_manual_acceptance\": false,\n \"store_configuration_data\": \"v1-config\",\n \"webhooks_config\": {\n \"webhooks_version\": \"1.0.0\"\n }\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/pos-data",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"pos-data"
]
}
}
},
{
"name": "Get POS Data",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/pos-data",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"pos-data"
]
}
}
},
{
"name": "Patch POS Data (Enable/Disable)",
"request": {
"method": "PATCH",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"posData\": {\n \"integration_enabled\": false,\n \"require_manual_acceptance\": false\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/pos-data",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"pos-data"
]
}
}
},
{
"name": "Delete POS Data (Deprovision)",
"request": {
"method": "DELETE",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/uber/stores/{{storeId}}/pos-data",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"stores",
"{{storeId}}",
"pos-data"
]
}
}
},
{
"name": "Webhook Ingest (Simulation)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "X-Uber-Signature",
"value": "replace-with-valid-hmac"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"event_type\": \"orders.notification\",\n \"resource_id\": \"ORDER_ID\",\n \"resource_href\": \"/v1/eats/orders/ORDER_ID\",\n \"order\": {\n \"id\": \"ORDER_ID\"\n }\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/webhooks/uber",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"webhooks",
"uber"
]
}
}
},
{
"name": "Generic Uber Request",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{apiKey}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"method\": \"GET\",\n \"path\": \"/v1/eats/stores/{{storeId}}/orders\",\n \"authMode\": \"app\",\n \"scopes\": \"eats.order\"\n}"
},
"url": {
"raw": "{{baseUrl}}/api/v1/uber/request",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"uber",
"request"
]
}
}
}
],
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:8080"
},
{
"key": "apiKey",
"value": "change-me"
},
{
"key": "merchantId",
"value": ""
},
{
"key": "storeId",
"value": ""
},
{
"key": "orderId",
"value": ""
}
]
}