resq/postman/Resq Mobile API - API Controller.postman_collection.json

2380 lines
No EOL
51 KiB
JSON
Executable file

{
"info": {
"_postman_id": "a7eece2c-4939-461c-8b01-6d2ec1020193",
"name": "Resq Mobile API - API Controller",
"description": "API call to register a mobile number",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "[Normal] Register",
"event": [
{
"listen": "test",
"script": {
"id": "9170a06a-c4bd-4747-85c4-8f3d27b17984",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Register\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data).to.have.property(\"session_id\");",
" ",
" // get session id value",
" let session_id = jsonData.data.session_id;",
" ",
" // store the session_id value as a global variable. The session id is the api_key in calls requiring an api_key",
" ",
" pm.globals.set(\"api_key\", session_id);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "phone_model",
"value": "{{phone_model}}",
"type": "text"
},
{
"key": "os_type",
"value": "{{os_type}}",
"type": "text"
},
{
"key": "os_version",
"value": "{{os_version}}",
"type": "text"
},
{
"key": "phone_id",
"value": "{{phone_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/register",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"register"
]
}
},
"response": []
},
{
"name": "[Abnormal] Missing parameters",
"event": [
{
"listen": "test",
"script": {
"id": "2cf0b49e-cc34-4437-ae6f-9a5da1c45afa",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Missing all parameters\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"error\");",
" pm.expect(jsonData.error.message).to.include(\"Missing parameter\");",
" pm.expect(jsonData.data).to.be.empty;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{resq_url}}/api/register",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"register"
]
}
},
"response": []
},
{
"name": "[Normal] Confirm Number",
"event": [
{
"listen": "test",
"script": {
"id": "4a6c099e-3484-4047-83db-a29ab500f27a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Confirm number\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "phone_number",
"value": "{{phone_number}}",
"type": "text"
},
{
"key": "api_key",
"value": "{{api_key}}",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "{{resq_url}}/api/number_confirm?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"number_confirm"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Validate Code",
"event": [
{
"listen": "test",
"script": {
"id": "11118347-c2fd-466d-800c-82714070afab",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Validate Code\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "code",
"value": "{{code}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/code_validate?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"code_validate"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Status",
"event": [
{
"listen": "test",
"script": {
"id": "dabc1451-e75d-46c6-b3fa-5992b62a065f",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Status of mobile session\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.status).to.eql(\"confirmed\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/status?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"status"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Update Info",
"event": [
{
"listen": "test",
"script": {
"id": "27592b25-ba3d-4218-813f-3a9ab710fccc",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Update Info\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "first_name",
"value": "{{first_name}}",
"type": "text"
},
{
"key": "last_name",
"value": "{{last_name}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/info?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"info"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Info",
"event": [
{
"listen": "test",
"script": {
"id": "24efd1b8-ad00-4cb0-beb5-85c014d8a09a",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get Info\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.first_name).to.eql(\"Stiltzkin\");",
" pm.expect(jsonData.data.last_name).to.eql(\"Moogle\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/info?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"info"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Vehicle Manufacturers",
"event": [
{
"listen": "test",
"script": {
"id": "86275f4c-dd2b-42c8-9ac2-c7d7a7d2edfe",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List vehicle manufacturers\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.manufacturers).to.have.lengthOf(43);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/vehicle/mfgs?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicle",
"mfgs"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Vehicle Makes",
"event": [
{
"listen": "test",
"script": {
"id": "74a802f4-f8ea-4059-a18a-206d29a50199",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List Vehicle Makes\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.manufacturer.name).to.eql(\"VOLKSWAGEN\");",
" pm.expect(jsonData.data.makes).to.have.lengthOf(27);",
" pm.expect(jsonData.data.makes[0].make).to.eql(\"BEETLE 2013 - 2018\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/vehicle/mfgs/{{mfg_id}}/makes?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicle",
"mfgs",
"{{mfg_id}}",
"makes"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Add Vehicle",
"event": [
{
"listen": "test",
"script": {
"id": "efd6f228-c8d6-4e52-a9d1-fca7b5e3220e",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Add vehicle\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data).to.have.property(\"cv_id\");",
" ",
" // store customer vehicle id for update vehicle",
" let cv_id = jsonData.data.cv_id;",
" pm.globals.set(\"global_cv_id\", cv_id);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "make_id",
"value": "{{make_id}}",
"type": "text"
},
{
"key": "name",
"value": "{{name}}",
"type": "text"
},
{
"key": "plate_num",
"value": "{{plate_num}}",
"type": "text"
},
{
"key": "model_year",
"value": "{{model_year}}",
"type": "text"
},
{
"key": "color",
"value": "{{color}}",
"type": "text"
},
{
"key": "condition",
"value": "{{condition}}",
"type": "text"
},
{
"key": "fuel_type",
"value": "{{fuel_type}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/vehicles?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicles"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Update Vehicle",
"event": [
{
"listen": "test",
"script": {
"id": "8cd334bb-4032-47f3-9dcd-8c893135ac7d",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Update vehicle\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.cv_id).to.eql(pm.globals.get(\"global_cv_id\"));",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "make_id",
"value": "{{make_id}}",
"type": "text"
},
{
"key": "name",
"value": "{{name}}",
"type": "text"
},
{
"key": "plate_num",
"value": "{{plate_num}}",
"type": "text"
},
{
"key": "model_year",
"value": "{{model_year}}",
"type": "text"
},
{
"key": "color",
"value": "{{color}}",
"type": "text"
},
{
"key": "condition",
"value": "{{condition}}",
"type": "text"
},
{
"key": "fuel_type",
"value": "{{fuel_type}}",
"type": "text"
},
{
"key": "wty_code",
"value": "{{wty_code}}",
"type": "text"
},
{
"key": "wty_expire",
"value": "{{wty_expire}}",
"type": "text"
},
{
"key": "is_motolite",
"value": "1",
"type": "text"
},
{
"key": "is_active",
"value": "1",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/vehicles/{{global_cv_id}}?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicles",
"{{global_cv_id}}"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Vehicles",
"event": [
{
"listen": "test",
"script": {
"id": "82efd001-0a54-4c45-b8b5-d996a197a3a6",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List vehicles\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.vehicles.length).to.be.gt(0);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/vehicles?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicles"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Promos",
"event": [
{
"listen": "test",
"script": {
"id": "5263af3d-5f82-4bef-9575-c0771e78fe1e",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List promos\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.promos).to.have.lengthOf(9);",
" pm.expect(jsonData.data.promos[0].code).to.eql(\"EMPLOY\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/promos?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"promos"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Compatible Batteries",
"event": [
{
"listen": "test",
"script": {
"id": "8d860fb0-7e8b-4ac9-b229-15df1ade3677",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get compatible batteries\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.batteries[0].model_name).to.eql(\"GOLD\");",
" pm.expect(jsonData.data.batteries[0].size_name).to.eql(\"DIN55\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/vehicles/{{make_id}}/compatible_batteries?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"vehicles",
"{{make_id}}",
"compatible_batteries"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Request Job Order",
"event": [
{
"listen": "test",
"script": {
"id": "004a6b74-d182-45c9-aaca-26eac31ef663",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Request job order\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.invoice.items[0].title).to.eql(\"GOLD DIN77\");",
" pm.expect(jsonData.data.invoice.items[0].qty).to.eql(1);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "service_type",
"value": "{{service_type}}",
"type": "text"
},
{
"key": "cv_id",
"value": "{{global_cv_id}}",
"type": "text"
},
{
"key": "trade_in",
"value": "{{trade_in}}",
"type": "text"
},
{
"key": "long",
"value": "{{longitude}}",
"type": "text"
},
{
"key": "lat",
"value": "{{latitude}}",
"type": "text"
},
{
"key": "warranty",
"value": "{{warranty}}",
"type": "text"
},
{
"key": "mode_of_payment",
"value": "{{mode_of_payment}}",
"type": "text"
},
{
"key": "delivery_address",
"value": "{{delivery_address}}",
"type": "text"
},
{
"key": "delivery_instructions",
"value": "{{delivery_instructions}}",
"type": "text"
},
{
"key": "promo_id",
"value": "{{promo_id}}",
"type": "text"
},
{
"key": "batt_id",
"value": "{{batt_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/job_order?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"job_order"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Estimate",
"event": [
{
"listen": "test",
"script": {
"id": "e1573c58-a141-4d97-8812-c1b50f261f32",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Your test name\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.total_price).to.eql(8014.29);",
" pm.expect(jsonData.data.items[0].title).to.eql(\"GOLD DIN77\");",
" pm.expect(jsonData.data.items[0].qty).to.eql(1);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "service_type",
"value": "{{service_type}}",
"type": "text"
},
{
"key": "cv_id",
"value": "{{global_cv_id}}",
"type": "text"
},
{
"key": "trade_in",
"value": "{{trade_in}}",
"type": "text"
},
{
"key": "promo_id",
"value": "{{promo_id}}",
"type": "text"
},
{
"key": "batt_id",
"value": "{{batt_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/estimate?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"estimate"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] GetOngoing Job Order",
"event": [
{
"listen": "test",
"script": {
"id": "7a7496f9-8ec7-4912-9887-55fda6e7c1c3",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get ongoing job orders\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.has_ongoing).to.eql(true);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/job_order/ongoing?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"job_order",
"ongoing"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Rider Status - Job Order Pending",
"event": [
{
"listen": "test",
"script": {
"id": "f12508f6-cd9f-443b-ae56-835d4e913e55",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get rider status\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.service_type).to.eql(\"battery_new\");",
" pm.expect(jsonData.data.status).to.eql(\"outlet_assign\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/rider?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"rider"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get Rider Status - Job Order Rider Assign",
"event": [
{
"listen": "test",
"script": {
"id": "f12508f6-cd9f-443b-ae56-835d4e913e55",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get rider status\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.service_type).to.eql(\"battery_new\");",
" pm.expect(jsonData.data.status).to.eql(\"rider_assign\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/rider?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"rider"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Add Rider Rating",
"event": [
{
"listen": "test",
"script": {
"id": "a597d7d6-7b5c-4b30-9163-3cd475343e41",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Add rider rating\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "jo_id",
"value": "{{jo_id_for_rider_rating}}",
"type": "text"
},
{
"key": "rating",
"value": "{{rating}}",
"type": "text"
},
{
"key": "comment",
"value": "{{comment}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/rider_rating?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"rider_rating"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Cancel Job Order",
"event": [
{
"listen": "test",
"script": {
"id": "1aca4c3c-353b-406d-b361-99b1b5e5331d",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Cancel job order\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "jo_id",
"value": "{{jo_id_for_cancel_jo}}",
"type": "text"
},
{
"key": "reason",
"value": "{{cancel_reason}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/job_order/cancel?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"job_order",
"cancel"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get JO History",
"event": [
{
"listen": "test",
"script": {
"id": "bd898f60-4188-4063-903b-e802e195e97e",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get job order history\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.job_orders[0].id).to.eql(3);",
" pm.expect(jsonData.data.job_orders[0].customer_vehicle.plate_number).to.eql(\"MOG1234\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/job_order/history?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"job_order",
"history"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get JO Invoice",
"event": [
{
"listen": "test",
"script": {
"id": "f6aec690-14a8-4c12-940d-242547577f2f",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get job order invoice\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.items[0].title).to.eql(\"GOLD 1SM / D23 /NS50 / R\");",
"});"
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "jo_id",
"value": "{{jo_id_for_cancel_jo}}",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "{{resq_url}}/api/job_order/invoice?api_key={{preset_api_key}}&jo_id={{jo_id_for_cancel_jo}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"job_order",
"invoice"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
},
{
"key": "jo_id",
"value": "{{jo_id_for_cancel_jo}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Update Device ID",
"event": [
{
"listen": "test",
"script": {
"id": "f412a2f4-4409-4928-9c4a-c62f9d1b7533",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Update device ID\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "device_id",
"value": "{{device_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/device_id?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"device_id"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Privacy Settings",
"event": [
{
"listen": "test",
"script": {
"id": "080cb4ae-2e6a-4c41-a1a1-1f5993fb1703",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Privacy settings\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "priv_third_party",
"value": "true",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/privacy?api_key={{api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"privacy"
],
"query": [
{
"key": "api_key",
"value": "{{api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Resend Code",
"event": [
{
"listen": "test",
"script": {
"id": "bfa9f9d2-9ae6-4978-bd67-b7317a22cbf1",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Resend code\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{resq_url}}/api/resend_code?api_key={{preset_api_key_unconfirmed}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"resend_code"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key_unconfirmed}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Location Support",
"event": [
{
"listen": "test",
"script": {
"id": "538d8939-f19a-49c7-a4b4-3b06cfd5676b",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Location support\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.supported).to.eql(true);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/location_support?api_key={{preset_api_key}}&longitude={{longitude}}&latitude={{latitude}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"location_support"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
},
{
"key": "longitude",
"value": "{{longitude}}"
},
{
"key": "latitude",
"value": "{{latitude}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Activate Warranty",
"event": [
{
"listen": "test",
"script": {
"id": "4644fedd-befd-4d63-bf49-118ae368e690",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Activate warranty\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "plate_number",
"value": "{{plate_num}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/activate_warranty?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"activate_warranty"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] List Services",
"event": [
{
"listen": "test",
"script": {
"id": "68ade044-b9d3-4425-a8b4-16674778f6dc",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List of services is present\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.services.length).to.be.gt(0);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/services?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"services"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Get partner information",
"event": [
{
"listen": "test",
"script": {
"id": "6c3ba8c3-f0ae-40ab-a884-cd540d592653",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Get partner information and reviews\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.partner).to.have.property('id');",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/partners/{{partner_id}}?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"partners",
"{{partner_id}}"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
},
"description": "Get partner details and reviews"
},
"response": []
},
{
"name": "[Normal] Get list of closest partners",
"event": [
{
"listen": "test",
"script": {
"id": "94823df8-bf4f-42a9-843f-e7b1c5ceda29",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"List of partners is present\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
" pm.expect(jsonData.data.partners.length).to.be.gt(0);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{resq_url}}/api/partners?api_key={{preset_api_key}}&longitude={{longitude}}&latitude={{latitude}}&limit={{limit}}&service_id={{service_id}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"partners"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
},
{
"key": "longitude",
"value": "{{longitude}}"
},
{
"key": "latitude",
"value": "{{latitude}}"
},
{
"key": "limit",
"value": "{{limit}}"
},
{
"key": "service_id",
"value": "{{service_id}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Review Partner",
"event": [
{
"listen": "test",
"script": {
"id": "26cdf169-7282-4ceb-9ab5-237e70dfb70d",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Review partnert\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "rating",
"value": "{{rating}}",
"type": "text"
},
{
"key": "message",
"value": "{{comment}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/partners/{{partner_id}}/review?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"partners",
"{{partner_id}}",
"review"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Set Privacy Policy to Existing Policy",
"event": [
{
"listen": "test",
"script": {
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Set privacy policy\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "privacy_policy_id",
"value": "{{privacy_policy_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"warranty",
"{{wid}}",
"privacy_policy"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Normal] Set Privacy Policy to null",
"event": [
{
"listen": "test",
"script": {
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Set privacy policy\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"success\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "privacy_policy_id",
"value": "0",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"warranty",
"{{wid}}",
"privacy_policy"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Abnormal] Set Privacy Policy - Non existent privacy policy",
"event": [
{
"listen": "test",
"script": {
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Set privacy policy - Non existent privacy policy\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"error\");",
" pm.expect(jsonData.error.message).to.eql(\"No privacy policy found.\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "privacy_policy_id",
"value": "{{non_existent_policy_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"warranty",
"{{wid}}",
"privacy_policy"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Abnormal] Set Privacy Policy - Non-existent warranty",
"event": [
{
"listen": "test",
"script": {
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Set privacy policy - Non existent warranty\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"error\");",
" pm.expect(jsonData.error.message).to.eql(\"No warranty found.\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "privacy_policy_id",
"value": "{{privacy_policy_id}}",
"type": "text"
}
]
},
"url": {
"raw": "{{resq_url}}/api/warranty/{{non_existent_wid}}/privacy_policy?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"warranty",
"{{non_existent_wid}}",
"privacy_policy"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
},
{
"name": "[Abnormal] Set Privacy Policy - Missing policy ID",
"event": [
{
"listen": "test",
"script": {
"id": "b8b714b9-9019-4c5b-ab03-ef8787fff1ac",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Set privacy policy - missing policy ID\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.error.status).to.eql(\"error\");",
" pm.expect(jsonData.error.message).to.eql(\"Missing parameter(s): privacy_policy_id\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "privacy_policy_id",
"value": "{{privacy_policy_id}}",
"type": "text",
"disabled": true
}
]
},
"url": {
"raw": "{{resq_url}}/api/warranty/{{wid}}/privacy_policy?api_key={{preset_api_key}}",
"host": [
"{{resq_url}}"
],
"path": [
"api",
"warranty",
"{{wid}}",
"privacy_policy"
],
"query": [
{
"key": "api_key",
"value": "{{preset_api_key}}"
}
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "2d197aae-8a0c-410b-b188-4f788959d2c2",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "050072f2-bd10-4001-a44f-3e486904a34e",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "b1881df0-5aa2-438c-8ac5-46ccd259f2c0",
"key": "resq_url",
"value": "resq.local",
"type": "string",
"disabled": true
},
{
"id": "59777f63-095b-4325-a86e-f6adceb729a8",
"key": "phone_model",
"value": "iPhone8",
"type": "string"
},
{
"id": "fc1b400f-5d55-4471-95f1-359b75eb7a2b",
"key": "os_type",
"value": "IOS",
"type": "string"
},
{
"id": "aa7c948b-2de9-4691-82e7-bb6024403602",
"key": "os_version",
"value": "11.4",
"type": "string"
},
{
"id": "44e211e0-50f4-4903-9e21-b1527f887390",
"key": "phone_id",
"value": "11376660-F8BF-46ED-B30A-EF3F361EE223",
"type": "string"
},
{
"id": "44636d6d-4522-4ffb-a459-f05011b103a0",
"key": "phone_number",
"value": "9221111111",
"type": "string"
},
{
"id": "4eb61ece-c824-4840-8f14-ae91e34ba6cc",
"key": "first_name",
"value": "Stiltzkin",
"type": "string"
},
{
"id": "35704451-b847-4099-b119-96c091bdf787",
"key": "last_name",
"value": "Moogle",
"type": "string"
},
{
"id": "0cfe09d1-c6e2-40db-9f19-684ff95f8b9c",
"key": "mfg_id",
"value": "1435",
"type": "string"
},
{
"id": "e0b3374d-559b-48ca-8df3-b9383b54b1c8",
"key": "make_id",
"value": "22043",
"type": "string"
},
{
"id": "e462ba31-08b2-4e93-b88d-bde3d74600e1",
"key": "name",
"value": "Beetle 1.2 TSI MT (Gas)",
"type": "string"
},
{
"id": "f7b3bb29-f9e8-48bf-bb6e-160b5a99537b",
"key": "plate_num",
"value": "MGL1234",
"type": "string"
},
{
"id": "56b95327-9735-4e0b-b1b5-6e8dd2a06b57",
"key": "model_year",
"value": "2016",
"type": "string"
},
{
"id": "21873510-bb46-4b6d-861a-1269b3d693ec",
"key": "color",
"value": "White",
"type": "string"
},
{
"id": "ca7c31a9-a64c-44ce-bd21-ed6fb959a8fc",
"key": "condition",
"value": "Brand New",
"type": "string"
},
{
"id": "916d7aad-3769-4680-8898-2f662cd84da8",
"key": "fuel_type",
"value": "Gas",
"type": "string"
},
{
"id": "9335b8b3-c38e-48c9-b2de-f41db10bbe33",
"key": "wty_code",
"value": "MKUP0123456",
"type": "string"
},
{
"id": "02c4d2e7-eb4e-4812-b154-b463b5a9d862",
"key": "wty_expire",
"value": "20201125",
"type": "string"
},
{
"id": "f8c89bf6-1aed-4664-b169-d38cf4fa564d",
"key": "service_type",
"value": "battery_new",
"type": "string"
},
{
"id": "d38e4c12-b0be-4094-838f-474737acb9ae",
"key": "trade_in",
"value": "MOTOLITE",
"type": "string"
},
{
"id": "7b2cfb98-c8cc-42a8-90cd-0cba4f95c49d",
"key": "longitude",
"value": "121.018039",
"type": "string"
},
{
"id": "51e80736-d5d6-4bfd-9ea7-d11777924012",
"key": "latitude",
"value": "14.606807",
"type": "string"
},
{
"id": "26f630f6-65d3-4d15-8541-e7fb855bcaa6",
"key": "warranty",
"value": "private",
"type": "string"
},
{
"id": "19727bd1-4fb5-4e6e-828f-f8994dac0746",
"key": "mode_of_payment",
"value": "CASH",
"type": "string"
},
{
"id": "3f38ff8a-3657-416f-ba81-edba8aba0786",
"key": "delivery_address",
"value": "#123 Moogle Drive",
"type": "string"
},
{
"id": "423522ed-d679-42bf-8c2c-b2459ca90821",
"key": "delivery_instructions",
"value": "Look for the red bon-bon",
"type": "string"
},
{
"id": "9771cf9f-8750-488a-a0bd-d63086cde611",
"key": "promo_id",
"value": "1",
"type": "string"
},
{
"id": "43a22bdb-8b53-4afa-af73-0eb900fcc8cf",
"key": "code",
"value": "123456",
"type": "string"
},
{
"id": "6f9b4bf9-a70b-48fa-9b37-93ec646e01ed",
"key": "batt_id",
"value": "1050",
"type": "string"
},
{
"id": "e95eeff1-5999-4a94-939d-f0b317b8b85d",
"key": "jo_id_for_rider_rating",
"value": "4",
"type": "string"
},
{
"id": "04c336f3-e1c7-40fb-972b-15ab693dea3f",
"key": "preset_api_key",
"value": "5d427428b1541",
"type": "string"
},
{
"id": "71af4a9f-0db2-46d0-9a98-b20397690e1c",
"key": "rating",
"value": "4",
"type": "string"
},
{
"id": "73fe6c29-ce57-49d9-b6d7-b154b7334c0a",
"key": "comment",
"value": "Very professional, kupo!",
"type": "string"
},
{
"id": "0fb165ee-feef-403d-b59b-1327a644ea6d",
"key": "jo_id_for_cancel_jo",
"value": "3",
"type": "string"
},
{
"id": "fb396968-a759-4964-b8be-05dc2e0c612d",
"key": "cancel_reason",
"value": "No money, kupo!",
"type": "string"
},
{
"id": "ee6dd9ed-f3e0-4a3a-bb0c-dc0403cdf98f",
"key": "device_id",
"value": "123456",
"type": "string"
},
{
"id": "60b1d451-0af1-40de-a85e-bc2d01aad073",
"key": "partner_id",
"value": "1",
"type": "string"
},
{
"id": "45487aec-b2c4-4e2a-b6c5-ed44dba9de82",
"key": "preset_api_key_unconfirmed",
"value": "5d439b3a43f40",
"type": "string"
},
{
"id": "ffe45ee9-85b6-4fc4-806d-f330a72be98f",
"key": "service_id",
"value": "2",
"type": "string"
},
{
"id": "ffab2ad5-357e-45e4-b7d7-f27028986e22",
"key": "limit",
"value": "5",
"type": "string"
},
{
"id": "37d55a82-d5e7-498a-8b76-e04c1936a3ea",
"key": "wid",
"value": "185480",
"type": "string"
},
{
"id": "e6e71ab9-7e61-47a2-8be0-5b02b85dcc5a",
"key": "privacy_policy_id",
"value": "3",
"type": "string"
},
{
"id": "749e4f23-b5f1-478d-8927-ee38d3dbf24a",
"key": "non_existent_wid",
"value": "111111",
"type": "string"
},
{
"id": "bf0b8bfb-bfeb-4b13-aa52-368a22771813",
"key": "non_existent_policy_id",
"value": "9999",
"type": "string"
}
]
}