{ "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": "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": "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": "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 \"partner_store_id\": \"POS_STORE_001\",\n \"integration_enabled\": true,\n \"store_configuration_data\": {}\n }\n}" }, "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 \"merchantId\": \"{{merchantId}}\",\n \"posData\": {\n \"integration_enabled\": 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}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"merchantId\": \"{{merchantId}}\"\n}" }, "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": "" } ] }