Skip to content

Instantly share code, notes, and snippets.

@bskiefer
Created October 14, 2019 16:23
Show Gist options
  • Save bskiefer/63d40e4a3232219371525a9a96797b9c to your computer and use it in GitHub Desktop.
Save bskiefer/63d40e4a3232219371525a9a96797b9c to your computer and use it in GitHub Desktop.
PM
{
"info": {
"_postman_id": "2488776b-8759-4fb7-ba5f-252d41ec5817",
"name": "Gov2Go",
"description": "## Getting Started\n\nRun each request under Schema\n> This stores schema for each request type in your variables, which is used for testing.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Schema",
"item": [
{
"name": "Default Schema",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"search-e8fa3c122e7545d8baa4\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RENEWAL LENGTH\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RegLengthHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" },",
" \"dependsOnFieldValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependsOnFieldValue\",",
" \"type\": [\"null\", \"string\"],",
" \"title\": \"The dependsOnFieldValue Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RegLengthHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"SubRegLengthRenewSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" }",
" }",
" }",
" },",
" \"customData\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData\",",
" \"type\": \"object\",",
" \"title\": \"The Customdata Schema\",",
" \"properties\": {",
" \"optionName\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/optionName\",",
" \"type\": \"string\",",
" \"title\": \"The Optionname Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Countries\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"boxAlignPosition\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/boxAlignPosition\",",
" \"type\": \"string\",",
" \"title\": \"The Boxalignposition Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"right\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"componentAligment\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/componentAligment\",",
" \"type\": \"string\",",
" \"title\": \"The Componentaligment Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"radioGroupName\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/radioGroupName\",",
" \"type\": \"string\",",
" \"title\": \"The radioGroupName Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"text\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/text\",",
" \"type\": \"string\",",
" \"title\": \"The Text Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The Options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/options/items\",",
" \"type\": [\"object\", \"string\"],",
" \"title\": \"The Items Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"United States\"",
" ],",
" \"properties\": {",
" \"text\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/text\",",
" \"type\": \"string\",",
" \"title\": \"The Text Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 year\"",
" ]",
" },",
" \"name\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/name\",",
" \"type\": \"string\",",
" \"title\": \"The Name Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 year\"",
" ]",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/value\",",
" \"type\": [\"string\", \"integer\"],",
" \"title\": \"The Value Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 1",
" ]",
" },",
" \"selected\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/selected\",",
" \"type\": \"boolean\",",
" \"title\": \"The Selected Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" }",
" }",
" }",
" }",
" }",
" },",
" \"defaultValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/defaultValue\",",
" \"type\": [\"string\", \"null\"],",
" \"title\": \"The Defaultvalue Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1\"",
" ]",
" },",
" \"readOnly\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/readOnly\",",
" \"type\": \"boolean\",",
" \"title\": \"The Readonly Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"unique\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/unique\",",
" \"type\": \"boolean\",",
" \"title\": \"The Unique Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"tooltip\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/tooltip\",",
" \"type\": [\"string\", \"null\"],",
" \"title\": \"The Tooltip Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"text\"",
" ]",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The Options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items\",",
" \"type\": [\"array\", \"object\"],",
" \"title\": \"The Items Schema\",",
" \"properties\": {",
" \"name\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/name\",",
" \"type\": \"string\",",
" \"title\": \"The Name Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 year\"",
" ]",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/value\",",
" \"type\": [\"string\", \"integer\"],",
" \"title\": \"The Value Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 1",
" ]",
" },",
" \"selected\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/selected\",",
" \"type\": \"boolean\",",
" \"title\": \"The Selected Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-default\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "1d69c090-bfbb-4e6b-9cde-3f60da376385",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Line Items",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"receiptTitle\",",
" \"lineItems\",",
" \"total\",",
" \"Fees\",",
" \"LocalReferenceId\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"receiptTitle\": {",
" \"$id\": \"#/properties/data/properties/receiptTitle\",",
" \"type\": \"string\",",
" \"title\": \"The Receipttitle Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 Year for '00 STUD REGA\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"lineItems\": {",
" \"$id\": \"#/properties/data/properties/lineItems\",",
" \"type\": \"array\",",
" \"title\": \"The Lineitems Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/lineItems/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"description\",",
" \"quantity\",",
" \"sku\",",
" \"unitPrice\"",
" ],",
" \"properties\": {",
" \"description\": {",
" \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",",
" \"type\": \"string\",",
" \"title\": \"The Description Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 Year Renewal Fee\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"quantity\": {",
" \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",",
" \"type\": \"integer\",",
" \"title\": \"The Quantity Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 1",
" ]",
" },",
" \"sku\": {",
" \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",",
" \"type\": \"null\",",
" \"title\": \"The Sku Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"unitPrice\": {",
" \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",",
" \"type\": [",
" \"number\",",
" \"integer\"",
" ],",
" \"title\": \"The Unitprice Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 25",
" ]",
" }",
" }",
" }",
" },",
" \"total\": {",
" \"$id\": \"#/properties/data/properties/total\",",
" \"type\": [",
" \"number\",",
" \"integer\"",
" ],",
" \"title\": \"The Total Schema\",",
" \"default\": 0.0,",
" \"examples\": [",
" 27.75",
" ]",
" },",
" \"Fees\": {",
" \"$id\": \"#/properties/data/properties/Fees\",",
" \"type\": \"array\",",
" \"title\": \"The Fees Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/Fees/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"PaymentType\",",
" \"LineItems\",",
" \"Total\"",
" ],",
" \"properties\": {",
" \"PaymentType\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",",
" \"type\": \"integer\",",
" \"title\": \"The Paymenttype Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 0",
" ]",
" },",
" \"LineItems\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",",
" \"type\": \"array\",",
" \"title\": \"The Lineitems Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"Description\",",
" \"Quantity\",",
" \"Sku\",",
" \"Type\",",
" \"UnitPrice\"",
" ],",
" \"properties\": {",
" \"Description\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",",
" \"type\": \"string\",",
" \"title\": \"The Description Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 Year Renewal Fee\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"Quantity\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",",
" \"type\": \"integer\",",
" \"title\": \"The Quantity Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 1",
" ]",
" },",
" \"Sku\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",",
" \"type\": \"null\",",
" \"title\": \"The Sku Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"Type\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",",
" \"type\": \"string\",",
" \"title\": \"The Type Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Renewal\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"UnitPrice\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",",
" \"type\": [",
" \"number\",",
" \"integer\"",
" ],",
" \"title\": \"The Unitprice Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 25",
" ]",
" }",
" }",
" }",
" },",
" \"Total\": {",
" \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",",
" \"type\": [",
" \"integer\",",
" \"number\"",
" ],",
" \"title\": \"The Total Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 25",
" ]",
" }",
" }",
" }",
" },",
" \"LocalReferenceId\": {",
" \"$id\": \"#/LocalReferenceId/data/properties/LocalReferenceId\",",
" \"type\": \"string\",",
" \"title\": \"The LocalReferenceId Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"20190920193644212\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"review-784441fc0e1842f48741\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\",",
" \"dependentFields\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 Year for '00 STUD REGA\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"labelSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Please confirm the following items are correct before pressing continue.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"subLabelSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-line-items\", JSON.stringify(schema));",
"console.log(schema);",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "cda53ce4-8f60-4933-b28a-a1ee4830d93c",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Search Results",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"search-e8fa3c122e7545d8baa4\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RENEWAL LENGTH\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RegLengthHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" },",
" \"dependsOnFieldValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependsOnFieldValue\",",
" \"type\": [\"null\", \"string\"],",
" \"title\": \"The dependsOnFieldValue Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RegLengthHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"SubRegLengthRenewSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" }",
" }",
" }",
" },",
" \"customData\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData\",",
" \"type\": \"object\",",
" \"title\": \"The Customdata Schema\",",
" \"properties\": {",
" \"optionName\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/optionName\",",
" \"type\": \"string\",",
" \"title\": \"The Optionname Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Countries\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"boxAlignPosition\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/boxAlignPosition\",",
" \"type\": \"string\",",
" \"title\": \"The Boxalignposition Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"right\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"componentAligment\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/componentAligment\",",
" \"type\": \"string\",",
" \"title\": \"The Componentaligment Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"text\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/text\",",
" \"type\": \"string\",",
" \"title\": \"The Text Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"left\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The Options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/properties/options/items\",",
" \"type\": \"string\",",
" \"title\": \"The Items Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"United States\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" },",
" \"defaultValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/defaultValue\",",
" \"type\": [\"string\", \"null\"],",
" \"title\": \"The Defaultvalue Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1\"",
" ]",
" },",
" \"readOnly\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/readOnly\",",
" \"type\": \"boolean\",",
" \"title\": \"The Readonly Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"unique\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/unique\",",
" \"type\": \"boolean\",",
" \"title\": \"The Unique Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"tooltip\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/tooltip\",",
" \"type\": [\"string\", \"null\"],",
" \"title\": \"The Tooltip Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"text\"",
" ]",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The Options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"properties\": {",
" \"name\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/name\",",
" \"type\": \"string\",",
" \"title\": \"The Name Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1 year\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/value\",",
" \"type\": \"integer\",",
" \"title\": \"The Value Schema\",",
" \"default\": 0,",
" \"examples\": [",
" 1",
" ]",
" },",
" \"selected\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/options/items/properties/selected\",",
" \"type\": \"boolean\",",
" \"title\": \"The Selected Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-search\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Late",
"event": [
{
"listen": "prerequest",
"script": {
"id": "bb51041d-99b6-49a2-88e9-b2c6f22f2ee7",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"late-cf43971956d24b5490f8\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"State of Arkansas Affidavit of Non-Use of a Motor Vehicle\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"affidavitHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The Required Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" true",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"There are late penalties associated with this vehicle. Please read the below carefully.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"affidavitSubHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" },",
" \"customData\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData\",",
" \"type\": \"object\",",
" \"title\": \"The customData Schema\",",
" \"properties\": {",
" \"radioGroupName\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/radioGroupName\",",
" \"type\": \"string\",",
" \"title\": \"The radioGroupName Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"I agree\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items\",",
" \"type\": [\"string\", \"object\"],",
" \"title\": \"The Items Schema\",",
" \"properties\": {",
" \"text\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items/properties/text\",",
" \"type\": \"string\",",
" \"title\": \"The text Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"No\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"false\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-late\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Verify Address",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"verify-8bf186ede83744b19b3d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": [",
" {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0\",",
" \"type\": \"object\",",
" \"title\": \"The 0 Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\",",
" \"dependentFields\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"CHANGE OF ADDRESS VERIFICATION\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RegHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields/items/0\",",
" \"type\": \"object\",",
" \"title\": \"The 0 Schema\",",
" \"required\": [",
" \"inputType\",",
" \"subType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields/items/0/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields/items/0/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields/items/0/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"To change your address, please complete the form below. \"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/0/properties/dependentFields/items/0/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"SubRegRenewSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1\",",
" \"type\": \"object\",",
" \"title\": \"The 1 Schema\",",
" \"required\": [",
" \"inputType\",",
" \"label\",",
" \"tooltip\",",
" \"required\",",
" \"slug\",",
" \"defaultValue\",",
" \"readOnly\",",
" \"unique\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"License Plate Number\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"tooltip\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/tooltip\",",
" \"type\": \"null\",",
" \"title\": \"The Tooltip Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The Required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"plate_number\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"defaultValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/defaultValue\",",
" \"type\": [\"null\", \"string\"],",
" \"title\": \"The Defaultvalue Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"readOnly\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/readOnly\",",
" \"type\": \"boolean\",",
" \"title\": \"The Readonly Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"unique\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/1/properties/unique\",",
" \"type\": \"boolean\",",
" \"title\": \"The Unique Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2\",",
" \"type\": \"object\",",
" \"title\": \"The 2 Schema\",",
" \"required\": [",
" \"inputType\",",
" \"label\",",
" \"tooltip\",",
" \"required\",",
" \"slug\",",
" \"defaultValue\",",
" \"readOnly\",",
" \"unique\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Last 4 digits of Vehicle ID Number (VIN)\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"tooltip\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/tooltip\",",
" \"type\": \"null\",",
" \"title\": \"The Tooltip Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The Required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"vin\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"defaultValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/defaultValue\",",
" \"type\": [\"null\", \"string\"],",
" \"title\": \"The Defaultvalue Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"readOnly\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/readOnly\",",
" \"type\": \"boolean\",",
" \"title\": \"The Readonly Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"unique\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/2/properties/unique\",",
" \"type\": \"boolean\",",
" \"title\": \"The Unique Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3\",",
" \"type\": \"object\",",
" \"title\": \"The 3 Schema\",",
" \"required\": [",
" \"inputType\",",
" \"label\",",
" \"tooltip\",",
" \"required\",",
" \"slug\",",
" \"defaultValue\",",
" \"readOnly\",",
" \"unique\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"ZIP\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"tooltip\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/tooltip\",",
" \"type\": [\"string\", \"null\"],",
" \"title\": \"The Tooltip Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The Required Schema\",",
" \"default\": false,",
" \"examples\": [",
" true",
" ]",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"zip\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"defaultValue\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/defaultValue\",",
" \"type\": [\"null\", \"string\"],",
" \"title\": \"The Defaultvalue Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"readOnly\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/readOnly\",",
" \"type\": \"boolean\",",
" \"title\": \"The Readonly Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"unique\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/3/properties/unique\",",
" \"type\": \"boolean\",",
" \"title\": \"The Unique Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" }",
" }",
" }",
" ]",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-verify\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Address",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"object\",",
" \"title\": \"The Data Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"form\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"form\": {",
" \"$id\": \"#/properties/data/properties/form\",",
" \"type\": \"object\",",
" \"title\": \"The Form Schema\",",
" \"required\": [",
" \"formId\",",
" \"fields\"",
" ],",
" \"properties\": {",
" \"formId\": {",
" \"$id\": \"#/properties/data/properties/form/properties/formId\",",
" \"type\": \"string\",",
" \"title\": \"The Formid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"late-cf43971956d24b5490f8\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"fields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields\",",
" \"type\": \"array\",",
" \"title\": \"The Fields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Header\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"State of Arkansas Affidavit of Non-Use of a Motor Vehicle\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"affidavitHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"required\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/required\",",
" \"type\": \"boolean\",",
" \"title\": \"The Required Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" true",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"dependentFields\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",",
" \"type\": \"array\",",
" \"title\": \"The Dependentfields Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"inputType\",",
" \"label\",",
" \"slug\"",
" ],",
" \"properties\": {",
" \"inputType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",",
" \"type\": \"string\",",
" \"title\": \"The Inputtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"HelperText\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"subType\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",",
" \"type\": \"string\",",
" \"title\": \"The Subtype Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Text\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"label\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",",
" \"type\": \"string\",",
" \"title\": \"The Label Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"There are late penalties associated with this vehicle. Please read the below carefully.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"slug\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",",
" \"type\": \"string\",",
" \"title\": \"The Slug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"affidavitSubHeaderSlug\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" },",
" \"customData\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData\",",
" \"type\": \"object\",",
" \"title\": \"The customData Schema\",",
" \"properties\": {",
" \"radioGroupName\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/radioGroupName\",",
" \"type\": \"string\",",
" \"title\": \"The radioGroupName Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"I agree\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"options\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options\",",
" \"type\": \"array\",",
" \"title\": \"The options Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"properties\": {",
" \"text\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items/properties/text\",",
" \"type\": \"string\",",
" \"title\": \"The text Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"No\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/customData/items/properties/options/items/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"false\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-address\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Error",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"data\",",
" \"errors\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"null\",",
" \"title\": \"The Data Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/errors/items\",",
" \"type\": \"object\",",
" \"title\": \"The Items Schema\",",
" \"required\": [",
" \"error\"",
" ],",
" \"properties\": {",
" \"error\": {",
" \"$id\": \"#/properties/errors/items/properties/error\",",
" \"type\": \"string\",",
" \"title\": \"The Error Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Vehicle Has A Personalized Mandatory Replacement Plate. Must Replace Plate Before Renewing.\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-error\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Translate",
"event": [
{
"listen": "prerequest",
"script": {
"id": "8938eabd-f41b-4b1e-b55a-47d0d487870d",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"Data\",",
" \"Errors\"",
" ],",
" \"properties\": {",
" \"Data\": {",
" \"$id\": \"#/properties/data\",",
" \"type\": \"array\",",
" \"title\": \"The Data Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/items/0\",",
" \"type\": \"object\",",
" \"title\": \"The 0 Schema\",",
" \"required\": [",
" \"apiKey\",",
" \"Data\",",
" \"Events\"",
" ],",
" \"properties\": {",
" \"apiKey\": {",
" \"$id\": \"#/properties/data/items/0/properties/apiKey\",",
" \"type\": \"string\",",
" \"title\": \"The Apikey Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"Data\": {",
" \"$id\": \"#/properties/data/items/0/properties/data\",",
" \"type\": \"array\",",
" \"title\": \"The Data Schema\",",
" \"items\": [",
" {",
" \"$id\": \"#/properties/data/items/0/properties/Data/items/0\",",
" \"type\": \"object\",",
" \"title\": \"The 0 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/0/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"expiration_date\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/0/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2019-09-23\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/1\",",
" \"type\": \"object\",",
" \"title\": \"The 1 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/1/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"vin\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/1/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1E121E68110876814\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/2\",",
" \"type\": \"object\",",
" \"title\": \"The 2 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/2/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"plate\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/2/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"221XPM\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/3\",",
" \"type\": \"object\",",
" \"title\": \"The 3 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/3/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"make\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/3/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Studebaker\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/4\",",
" \"type\": \"object\",",
" \"title\": \"The 4 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/4/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"model\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/4/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Regal\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/5\",",
" \"type\": \"object\",",
" \"title\": \"The 5 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/5/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"year\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/5/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2000\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/6\",",
" \"type\": \"object\",",
" \"title\": \"The 6 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/6/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"search_params\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/6/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"eyJwbGF0ZV9udW1iZXIiOiIyMjFYUE0iLCJzZWFyY2hfdHlwZSI6InZpbiJ9\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/7\",",
" \"type\": \"object\",",
" \"title\": \"The 7 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/7/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"color\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/7/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"RED\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/8\",",
" \"type\": \"object\",",
" \"title\": \"The 8 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/8/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"zip\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/8/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"72061\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" },",
" {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/9\",",
" \"type\": \"object\",",
" \"title\": \"The 9 Schema\",",
" \"required\": [",
" \"schemaFieldSlug\",",
" \"value\"",
" ],",
" \"properties\": {",
" \"schemaFieldSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/9/properties/schemaFieldSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Schemafieldslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"pretty_expiration_date\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"value\": {",
" \"$id\": \"#/properties/data/items/0/properties/data/items/9/properties/value\",",
" \"type\": \"string\",",
" \"title\": \"The Value Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Sep 23, 2019\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" ]",
" },",
" \"Events\": {",
" \"$id\": \"#/properties/data/items/0/properties/events\",",
" \"type\": \"array\",",
" \"title\": \"The Events Schema\",",
" \"items\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0\",",
" \"type\": \"object\",",
" \"title\": \"The 0 Schema\",",
" \"required\": [",
" \"complete\",",
" \"eventSlug\",",
" \"hiddenOn\",",
" \"occursOn\"",
" ],",
" \"properties\": {",
" \"complete\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0/properties/complete\",",
" \"type\": \"boolean\",",
" \"title\": \"The Complete Schema\",",
" \"default\": false,",
" \"examples\": [",
" false",
" ]",
" },",
" \"eventSlug\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0/properties/eventSlug\",",
" \"type\": \"string\",",
" \"title\": \"The Eventslug Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"renew-car-tags\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"hiddenOn\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0/properties/hiddenOn\",",
" \"type\": \"string\",",
" \"title\": \"The Hiddenon Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2020-09-22T19:00:00-05:00\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"occursOn\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0/properties/occursOn\",",
" \"type\": \"string\",",
" \"title\": \"The Occurson Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2019-09-22T19:00:00-05:00\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"visibleOn\": {",
" \"$id\": \"#/properties/data/items/0/properties/events/items/0/properties/visibleOn\",",
" \"type\": \"string\",",
" \"title\": \"The Visibleon Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2019-06-24T19:00:00-05:00\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" }",
" }",
" }",
" }",
" }",
" }",
" },",
" \"Errors\": {",
" \"$id\": \"#/properties/errors\",",
" \"type\": \"array\",",
" \"title\": \"The Errors Schema\"",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-translate\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
},
{
"name": "Payment Confirmation",
"event": [
{
"listen": "prerequest",
"script": {
"id": "1cabc2b4-71b4-4909-86ed-caa77becccc3",
"exec": [
"const schema = {",
" \"definitions\": {},",
" \"$schema\": \"http://json-schema.org/draft-07/schema#\",",
" \"$id\": \"http://example.com/root.json\",",
" \"type\": \"object\",",
" \"title\": \"The Root Schema\",",
" \"required\": [",
" \"id\",",
" \"source\",",
" \"amount\",",
" \"renewal_count\",",
" \"payment_method\",",
" \"card_type\",",
" \"transaction_date\",",
" \"orderid\",",
" \"status\",",
" \"error\"",
" ],",
" \"properties\": {",
" \"id\": {",
" \"$id\": \"#/properties/id\",",
" \"type\": \"string\",",
" \"title\": \"The Id Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"9382330\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"source\": {",
" \"$id\": \"#/properties/source\",",
" \"type\": \"string\",",
" \"title\": \"The Source Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Web\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"amount\": {",
" \"$id\": \"#/properties/amount\",",
" \"type\": \"string\",",
" \"title\": \"The Amount Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"27.75\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"renewal_count\": {",
" \"$id\": \"#/properties/renewal_count\",",
" \"type\": \"string\",",
" \"title\": \"The Renewal_count Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"1\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"payment_method\": {",
" \"$id\": \"#/properties/payment_method\",",
" \"type\": \"null\",",
" \"title\": \"The Payment_method Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"card_type\": {",
" \"$id\": \"#/properties/card_type\",",
" \"type\": \"null\",",
" \"title\": \"The Card_type Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" },",
" \"transaction_date\": {",
" \"$id\": \"#/properties/transaction_date\",",
" \"type\": \"string\",",
" \"title\": \"The Transaction_date Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"2019-09-23 14:47:40\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"orderid\": {",
" \"$id\": \"#/properties/orderid\",",
" \"type\": \"string\",",
" \"title\": \"The Orderid Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"20190923194715763\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"status\": {",
" \"$id\": \"#/properties/status\",",
" \"type\": \"string\",",
" \"title\": \"The Status Schema\",",
" \"default\": \"\",",
" \"examples\": [",
" \"Complete\"",
" ],",
" \"pattern\": \"^(.*)$\"",
" },",
" \"error\": {",
" \"$id\": \"#/properties/error\",",
" \"type\": \"null\",",
" \"title\": \"The Error Schema\",",
" \"default\": null,",
" \"examples\": [",
" null",
" ]",
" }",
" }",
"};",
"",
"pm.environment.set(\"schema-payment-confirmation\", JSON.stringify(schema));",
"// postman.setNextRequest(null);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "http://example.com/",
"protocol": "http",
"host": [
"example",
"com"
],
"path": [
""
]
}
},
"_postman_previewlanguage": "json",
"header": [],
"cookie": [],
"body": "{\n \"definitions\": {},\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://example.com/root.json\",\n \"type\": \"object\",\n \"title\": \"The Root Schema\",\n \"required\": [\n \"data\",\n \"errors\"\n ],\n \"properties\": {\n \"data\": {\n \"$id\": \"#/properties/data\",\n \"type\": \"object\",\n \"title\": \"The Data Schema\",\n \"required\": [\n \"apiKey\",\n \"receiptTitle\",\n \"lineItems\",\n \"total\",\n \"Fees\",\n \"LocalReferenceId\",\n \"form\"\n ],\n \"properties\": {\n \"apiKey\": {\n \"$id\": \"#/properties/data/properties/apiKey\",\n \"type\": \"string\",\n \"title\": \"The Apikey Schema\",\n \"default\": \"\",\n \"examples\": [\n \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"receiptTitle\": {\n \"$id\": \"#/properties/data/properties/receiptTitle\",\n \"type\": \"string\",\n \"title\": \"The Receipttitle Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"lineItems\": {\n \"$id\": \"#/properties/data/properties/lineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/lineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"description\",\n \"quantity\",\n \"sku\",\n \"unitPrice\"\n ],\n \"properties\": {\n \"description\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"quantity\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"sku\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"unitPrice\": {\n \"$id\": \"#/properties/data/properties/lineItems/items/properties/unitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"total\": {\n \"$id\": \"#/properties/data/properties/total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 27.75\n ]\n },\n \"Fees\": {\n \"$id\": \"#/properties/data/properties/Fees\",\n \"type\": \"array\",\n \"title\": \"The Fees Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"PaymentType\",\n \"LineItems\",\n \"Total\"\n ],\n \"properties\": {\n \"PaymentType\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/PaymentType\",\n \"type\": \"number\",\n \"title\": \"The Paymenttype Schema\",\n \"default\": 0,\n \"examples\": [\n 0\n ]\n },\n \"LineItems\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems\",\n \"type\": \"array\",\n \"title\": \"The Lineitems Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"Description\",\n \"Quantity\",\n \"Sku\",\n \"Type\",\n \"UnitPrice\"\n ],\n \"properties\": {\n \"Description\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Description\",\n \"type\": \"string\",\n \"title\": \"The Description Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year Renewal Fee\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"Quantity\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Quantity\",\n \"type\": \"number\",\n \"title\": \"The Quantity Schema\",\n \"default\": 0,\n \"examples\": [\n 1\n ]\n },\n \"Sku\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Sku\",\n \"type\": \"null\",\n \"title\": \"The Sku Schema\",\n \"default\": null,\n \"examples\": [\n null\n ]\n },\n \"Type\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/Type\",\n \"type\": \"string\",\n \"title\": \"The Type Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Renewal\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"UnitPrice\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/LineItems/items/properties/UnitPrice\",\n \"type\": \"number\",\n \"title\": \"The Unitprice Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"Total\": {\n \"$id\": \"#/properties/data/properties/Fees/items/properties/Total\",\n \"type\": \"number\",\n \"title\": \"The Total Schema\",\n \"default\": 0,\n \"examples\": [\n 25\n ]\n }\n }\n }\n },\n \"LocalReferenceId\": {\n \"$id\": \"#/properties/data/properties/LocalReferenceId\",\n \"type\": \"string\",\n \"title\": \"The Localreferenceid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"20190920193644212\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"form\": {\n \"$id\": \"#/properties/data/properties/form\",\n \"type\": \"object\",\n \"title\": \"The Form Schema\",\n \"required\": [\n \"formId\",\n \"fields\"\n ],\n \"properties\": {\n \"formId\": {\n \"$id\": \"#/properties/data/properties/form/properties/formId\",\n \"type\": \"string\",\n \"title\": \"The Formid Schema\",\n \"default\": \"\",\n \"examples\": [\n \"review-784441fc0e1842f48741\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"fields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields\",\n \"type\": \"array\",\n \"title\": \"The Fields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\",\n \"dependentFields\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Header\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"1 Year for '00 STUD REGA\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"labelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"dependentFields\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields\",\n \"type\": \"array\",\n \"title\": \"The Dependentfields Schema\",\n \"items\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items\",\n \"type\": \"object\",\n \"title\": \"The Items Schema\",\n \"required\": [\n \"inputType\",\n \"subType\",\n \"label\",\n \"slug\"\n ],\n \"properties\": {\n \"inputType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/inputType\",\n \"type\": \"string\",\n \"title\": \"The Inputtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"HelperText\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"subType\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/subType\",\n \"type\": \"string\",\n \"title\": \"The Subtype Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Text\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"label\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/label\",\n \"type\": \"string\",\n \"title\": \"The Label Schema\",\n \"default\": \"\",\n \"examples\": [\n \"Please confirm the following items are correct before pressing continue.\"\n ],\n \"pattern\": \"^(.*)$\"\n },\n \"slug\": {\n \"$id\": \"#/properties/data/properties/form/properties/fields/items/properties/dependentFields/items/properties/slug\",\n \"type\": \"string\",\n \"title\": \"The Slug Schema\",\n \"default\": \"\",\n \"examples\": [\n \"subLabelSlug\"\n ],\n \"pattern\": \"^(.*)$\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"errors\": {\n \"$id\": \"#/properties/errors\",\n \"type\": \"array\",\n \"title\": \"The Errors Schema\"\n }\n }\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "00ecf294-e796-45fe-a58d-919ab70fb641",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "bcc77d94-9948-4951-9276-9088238073c6",
"type": "text/javascript",
"exec": [
"pm.test.skip()"
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Chains",
"item": [
{
"name": "Search > Line Items",
"item": [
{
"name": "Search",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n} ",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Search",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:01:51 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-6db0486aee8146cabd3b\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": 1,\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Line Items",
"event": [
{
"listen": "test",
"script": {
"id": "b564cf2c-cada-41c6-8a77-4753b43afc26",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:01:57 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917140147541\",\n \"form\": {\n \"formId\": \"review-6db0486aee8146cabd3b\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invoice Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "76aaaf77-0997-4a8c-9525-3cb4346a852c",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"localRefId\", jsonData.data.LocalReferenceId);",
"pm.environment.set(\"totalDue\", jsonData.data.total);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invoice Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 17:40:03 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190923173427652\",\n \"form\": {\n \"formId\": \"review-a884770b09fe467d93ad\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Payment Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-payment-confirmation\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": {{totalDue}},\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"response": [
{
"name": "Payment Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": 27.23,\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 19:41:06 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"id\": \"9382327\",\n \"source\": \"Web\",\n \"amount\": \"27.23\",\n \"renewal_count\": \"1\",\n \"payment_method\": null,\n \"card_type\": null,\n \"transaction_date\": \"2019-09-23 14:40:35\",\n \"orderid\": \"20190923173427652\",\n \"status\": \"Complete\",\n \"error\": null\n}"
},
{
"name": "Payment Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": 27.23,\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 19:41:06 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"id\": \"9382327\",\n \"source\": \"Web\",\n \"amount\": \"27.23\",\n \"renewal_count\": \"1\",\n \"payment_method\": null,\n \"card_type\": null,\n \"transaction_date\": \"2019-09-23 14:40:35\",\n \"orderid\": \"20190923173427652\",\n \"status\": \"Complete\",\n \"error\": null\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "f3e782a7-df33-42c1-a2d8-9a30bdc3beee",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "68c0bede-594e-400f-b150-9ef6f4b054f5",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Search > Late (affidavit) > Line Items",
"item": [
{
"name": "Search",
"event": [
{
"listen": "prerequest",
"script": {
"id": "27a8ccc8-2c78-4fdc-9f18-7c5faab4b641",
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "e15a3f89-86b8-4eb6-a7ec-8faae00f4f3a",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-late\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}EE\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": []
},
{
"name": "Renewal Options",
"event": [
{
"listen": "prerequest",
"script": {
"id": "27a8ccc8-2c78-4fdc-9f18-7c5faab4b641",
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "e15a3f89-86b8-4eb6-a7ec-8faae00f4f3a",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"affirmation\",\n \"Value\": \"true\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"FormId\": \"{{formId}}\",\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": []
},
{
"name": "Line Items",
"event": [
{
"listen": "test",
"script": {
"id": "39465b16-eb02-47d9-a5ab-6e0ada068c6d",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:01:57 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917140147541\",\n \"form\": {\n \"formId\": \"review-6db0486aee8146cabd3b\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invoice Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"localRefId\", jsonData.data.LocalReferenceId);",
"pm.environment.set(\"totalDue\", jsonData.data.total);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invoice Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 17:40:03 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190923173427652\",\n \"form\": {\n \"formId\": \"review-a884770b09fe467d93ad\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Payment Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-payment-confirmation\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": {{totalDue}},\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"response": [
{
"name": "Payment Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": 27.23,\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 19:41:06 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"id\": \"9382327\",\n \"source\": \"Web\",\n \"amount\": \"27.23\",\n \"renewal_count\": \"1\",\n \"payment_method\": null,\n \"card_type\": null,\n \"transaction_date\": \"2019-09-23 14:40:35\",\n \"orderid\": \"20190923173427652\",\n \"status\": \"Complete\",\n \"error\": null\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "31ce7712-c76b-4ea0-965c-b679f74814a5",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "2b6b7bf0-a68b-44ec-ab9a-0f017b43d796",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Search > Late > Line Items",
"item": [
{
"name": "Search",
"event": [
{
"listen": "prerequest",
"script": {
"id": "27a8ccc8-2c78-4fdc-9f18-7c5faab4b641",
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "e15a3f89-86b8-4eb6-a7ec-8faae00f4f3a",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-late\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}EE\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": []
},
{
"name": "Renewal Options",
"event": [
{
"listen": "prerequest",
"script": {
"id": "27a8ccc8-2c78-4fdc-9f18-7c5faab4b641",
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "e15a3f89-86b8-4eb6-a7ec-8faae00f4f3a",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"affirmation\",\n \"Value\": \"false\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"FormId\": \"{{formId}}\",\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": []
},
{
"name": "Line Items",
"event": [
{
"listen": "test",
"script": {
"id": "c96b21b1-179c-447a-bcec-d484f007cbda",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test('Has penalty fee', function() {",
"",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.data.lineItems[3].description).to.equal(\"Penalty Fee\");",
" ",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:01:57 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917140147541\",\n \"form\": {\n \"formId\": \"review-6db0486aee8146cabd3b\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invoice Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"localRefId\", jsonData.data.LocalReferenceId);",
"pm.environment.set(\"totalDue\", jsonData.data.total);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invoice Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 17:40:03 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190923173427652\",\n \"form\": {\n \"formId\": \"review-a884770b09fe467d93ad\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Payment Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-payment-confirmation\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": {{totalDue}},\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"response": [
{
"name": "Payment Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": 27.23,\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 19:41:06 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"id\": \"9382327\",\n \"source\": \"Web\",\n \"amount\": \"27.23\",\n \"renewal_count\": \"1\",\n \"payment_method\": null,\n \"card_type\": null,\n \"transaction_date\": \"2019-09-23 14:40:35\",\n \"orderid\": \"20190923173427652\",\n \"status\": \"Complete\",\n \"error\": null\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "31ce7712-c76b-4ea0-965c-b679f74814a5",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "2b6b7bf0-a68b-44ec-ab9a-0f017b43d796",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Search > Addresss > Line Items",
"item": [
{
"name": "Search",
"event": [
{
"listen": "test",
"script": {
"id": "d2b18292-aaa4-42ea-82f4-ed1a92d683fb",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Search",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:41 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": 1,\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Verify",
"event": [
{
"listen": "test",
"script": {
"id": "2e0e78c0-29b3-46ec-859a-2c513a94226e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"verify-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OF ADDRESS VERIFICATION\",\n \"slug\": \"RegHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change your address, please complete the form below. \",\n \"slug\": \"SubRegRenewSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"License Plate Number\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"plate_number\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Last 4 digits of Vehicle ID Number (VIN)\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"vin\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"ZIP\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"zip\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address",
"event": [
{
"listen": "test",
"script": {
"id": "0770398f-081d-4c3c-bee6-6bf407f3e7d6",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Line Items",
"event": [
{
"listen": "test",
"script": {
"id": "1b83e936-db41-4dda-8e0c-1fd28d71b40e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "a93d2189-c681-4ded-920f-b34a609f85d0",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:49:55 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917143237799\",\n \"form\": {\n \"formId\": \"review-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invoice Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"localRefId\", jsonData.data.LocalReferenceId);",
"pm.environment.set(\"totalDue\", jsonData.data.total);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invoice Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"InvoiceConfirmation\": true,\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"YV1VS29502F867709\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 17:40:03 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190923173427652\",\n \"form\": {\n \"formId\": \"review-a884770b09fe467d93ad\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Payment Confirmation",
"event": [
{
"listen": "test",
"script": {
"id": "41bd7312-2080-4050-af53-581250f2ff0e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-payment-confirmation\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": {{totalDue}},\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"response": [
{
"name": "Payment Confirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"Data\": \n {\n \"ApiKey\": \"{{api_key}}\",\n \"LocalReferenceId\": \"{{localRefId}}\",\n \"OrderId\": \"{{localRefId}}\",\n \"Total\": 27.23,\n \"Error\": null\n }\n}"
},
"url": {
"raw": "{{url}}{{confirmation_uri}}",
"host": [
"{{url}}{{confirmation_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 19:41:06 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"id\": \"9382327\",\n \"source\": \"Web\",\n \"amount\": \"27.23\",\n \"renewal_count\": \"1\",\n \"payment_method\": null,\n \"card_type\": null,\n \"transaction_date\": \"2019-09-23 14:40:35\",\n \"orderid\": \"20190923173427652\",\n \"status\": \"Complete\",\n \"error\": null\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "d1045a88-58f9-40b6-bf69-8609d48d4e83",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "e1ef6951-1d50-4751-a495-36efaecb7878",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"_postman_isSubFolder": true
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "8f4464eb-74e0-47a2-835b-2bf6fb5d2cfc",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "7ad6d88c-78ca-4b85-bead-8559c8da8411",
"type": "text/javascript",
"exec": [
"const jsonData = pm.response.json();",
"",
"pm.test('Default schema is valid', function() {",
" if(!jsonData.orderid && !jsonData.data.lineItems) {",
" var schema = JSON.parse(pm.environment.get(\"schema-default\"));",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" if (!validationResult.valid) {",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" }",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
" }",
"});",
"",
"pm.test('No errors returned', function() {",
" if (jsonData.errors && jsonData.errors.length > 0) {",
" console.log(jsonData.errors);",
" pm.expect(false).to.be.true;",
" }",
" ",
" if (jsonData.errors) {",
" pm.expect(jsonData.errors.length === 0).to.be.true;",
" } else {",
" pm.expect(true).to.be.true;",
" }",
"});"
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Errors",
"item": [
{
"name": "Mandatory Replacement",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"170GZJ\",",
" \"vin\": \"C72866E4887291056\",",
" \"zip\": \"71950\",",
" \"error\": \"Vehicle Has A Personalized Mandatory Replacement Plate. Must Replace Plate Before Renewing.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Mandatory Replacement",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:45:26 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"ApiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"Data\": null,\n \"Errors\": [\n {\n \"Error\": \"Vehicle Has A Personalized Mandatory Replacement Plate. Must Replace Plate Before Renewing.\"\n }\n ]\n}"
}
]
},
{
"name": "No Results",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"376XMZ\",",
" \"vin\": \"2B10C65E116260957\",",
" \"zip\": \"72425\",",
" \"error\": \"No Results Found\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "No Results",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:46:25 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "60"
}
],
"cookie": [],
"body": "{\n \"ApiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"Data\": null,\n \"Errors\": [\n {\n \"Error\": \"No Results Found\"\n }\n ]\n}"
}
]
},
{
"name": "Personal Property Tax No Paid",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"905MUS\",",
" \"vin\": \"ABD896BC498690859\",",
" \"zip\": \"71671\",",
" \"error\": \"Personal Property Taxes Have Not Been Paid. Please Contact Your County Collector\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Personal Property Tax No Paid",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:47:00 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Personal Property Taxes Have Not Been Paid. Please Contact Your County Collector\"\n }\n ]\n}"
}
]
},
{
"name": "Valid Insurance Not Found",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"145NXJ\",",
" \"vin\": \"344E3DDB193843868\",",
" \"zip\": \"72313\",",
" \"error\": \"Valid Insurance Information Not Found For This Vehicle\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Valid Insurance Not Found",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:47:29 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Valid Insurance Information Not Found For This Vehicle\"\n }\n ]\n}"
}
]
},
{
"name": "90 Days Prior to Expiration",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"168LRK\",",
" \"vin\": \"1C12D786314853327\",",
" \"zip\": \"72923\",",
" \"error\": \"Cannot Renew Before 90 Days Of Prior Expiration Date\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "90 Days Prior to Expiration",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:47:45 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Cannot Renew Before 90 Days Of Prior Expiration Date\"\n }\n ]\n}"
}
]
},
{
"name": "Property Tax Not Paid",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"853HEA\",",
" \"vin\": \"F3315E7E172218924\",",
" \"zip\": \"71653\",",
" \"error\": \"Property Taxes Have Not Been Paid. Please Contact Your County Collector\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Property Tax Not Paid",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:48:27 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Property Taxes Have Not Been Paid. Please Contact Your County Collector\"\n }\n ]\n}"
}
]
},
{
"name": "Title Suspended",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"150OFZ\",",
" \"vin\": \"C4560AEF287991868\",",
" \"zip\": \"71901\",",
" \"error\": \"Reg Only And Renewal Are Stopped Due To Title Suspense\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Title Suspended",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:49:00 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Reg Only And Renewal Are Stopped Due To Title Suspense\"\n }\n ]\n}"
}
]
},
{
"name": "Vehicle Not Allowed for Renewal",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"312CLR\",",
" \"vin\": \"4BB1BF32911475341\",",
" \"zip\": \"72346\",",
" \"error\": \"Only Passenger Cars And Motorcycles Are Eligible To Renew Through Arstar.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Vehicle Not Allowed for Renewal",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:49:35 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Only Passenger Cars And Motorcycles Are Eligible To Renew Through Arstar.\"\n }\n ]\n}"
}
]
},
{
"name": "Invalid Vehicle Type",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"714WYQ\",",
" \"vin\": \"79630515915480160\",",
" \"zip\": \"72085\",",
" \"error\": \"Invalid Vehicle Type\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invalid Vehicle Type",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:50:01 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Invalid Vehicle Type\"\n }\n ]\n}"
}
]
},
{
"name": "Not Eligible for 1 Year Renewal",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"127QBA\",",
" \"vin\": \"F62A5ACE126185619\",",
" \"zip\": \"72729\",",
" \"error\": \"Not Eligible For 1 Year(s) Renewal\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Not Eligible for 1 Year Renewal",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:50:34 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "60"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Not Eligible For 1 Year(s) Renewal\"\n }\n ]\n}"
}
]
},
{
"name": "License Plate Not Active",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"488HAW\",",
" \"vin\": \"6DECA17E656311839\",",
" \"zip\": \"72585\",",
" \"error\": \"License Plate Is Not Active\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "License Plate Not Active",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:50:59 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"License Plate Is Not Active\"\n }\n ]\n}"
}
]
},
{
"name": "Account Has a Balance",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"567WXV\",",
" \"vin\": \"814087C9516765976\",",
" \"zip\": \"71923\",",
" \"error\": \"Account Has A Balance Due\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Account Has a Balance",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:51:24 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Account Has A Balance Due\"\n }\n ]\n}"
}
]
},
{
"name": "Not Same Account",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"407JQR\",",
" \"vin\": \"08CC5E89115363816\",",
" \"zip\": \"72112\",",
" \"error\": \"Not The Same Account\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Not Same Account",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:51:50 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Not The Same Account\"\n }\n ]\n}"
}
]
},
{
"name": "Deactivted by National Guard",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"247OEQ\",",
" \"vin\": \"D622DA79135196960\",",
" \"zip\": \"72015\",",
" \"error\": \"Vehicle Registration Is Deactived By The National Guard.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Deactivted by National Guard",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:52:19 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Vehicle Registration Is Deactived By The National Guard.\"\n }\n ]\n}"
}
]
},
{
"name": "Plate Expired or Will Expire",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"303RTL\",",
" \"vin\": \"23FC9A79848863259\",",
" \"zip\": \"71740\",",
" \"error\": \"Your License Plate Either Has Expired Or Will Expire Within The Next 90 Days. Please Renew With A Teller At The Nearest Department Of Motor Vehicles Office.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Plate Expired or Will Expire",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:52:54 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Your License Plate Either Has Expired Or Will Expire Within The Next 90 Days. Please Renew With A Teller At The Nearest Department Of Motor Vehicles Office.\"\n }\n ]\n}"
}
]
},
{
"name": "Plate Does Not Expire",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"425RYS\",",
" \"vin\": \"3A4407F4919614279\",",
" \"zip\": \"72617\",",
" \"error\": \"Plate Is Not Eligible For Renewal, It Does Not Expire.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Plate Does Not Expire",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:53:40 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Plate Is Not Eligible For Renewal, It Does Not Expire.\"\n }\n ]\n}"
}
]
},
{
"name": "Vehcile is Title Purpose Only",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"449NOU\",",
" \"vin\": \"ED4B8560215362815\",",
" \"zip\": \"71763\",",
" \"error\": \"Vehicle Is Title Purpose Only\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Vehcile is Title Purpose Only",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:54:11 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Vehicle Is Title Purpose Only\"\n }\n ]\n}"
}
]
},
{
"name": "No Longer Qualified for National Guard Plate",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"231NYY\",",
" \"vin\": \"18303322118158076\",",
" \"zip\": \"72851\",",
" \"error\": \"Customer No Longer Qualifies For National Guard License Plate, Must Purchase New License Plate.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "No Longer Qualified for National Guard Plate",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:54:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Customer No Longer Qualifies For National Guard License Plate, Must Purchase New License Plate.\"\n }\n ]\n}"
}
]
},
{
"name": "Must Request New Guard Tags",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"388JAT\",",
" \"vin\": \"97F72E4B132088538\",",
" \"zip\": \"72839\",",
" \"error\": \" Must Contact Unit And Have Unit Send A New Request For Guard Tags To The Camp Robinson Office\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Must Request New Guard Tags",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:55:24 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \" Must Contact Unit And Have Unit Send A New Request For Guard Tags To The Camp Robinson Office\"\n }\n ]\n}"
}
]
},
{
"name": "Renewal Requires Justice of the Peace Certificate",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"513DON\",",
" \"vin\": \"D1A05B43911299108\",",
" \"zip\": \"72851\",",
" \"error\": \"Your Plate Is Not Eligible To Renew Through Arstar. You Must Renew By Mail Or By Going To A Revenue Office And Providing A Copy Of The Justice Of The Peace Certificate Commissioned By The Governor.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Renewal Requires Justice of the Peace Certificate",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:56:09 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Your Plate Is Not Eligible To Renew Through Arstar. You Must Renew By Mail Or By Going To A Revenue Office And Providing A Copy Of The Justice Of The Peace Certificate Commissioned By The Governor.\"\n }\n ]\n}"
}
]
},
{
"name": "Valid License Plate Not Found",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"821UWK\",",
" \"vin\": \"ADD2921D217332138\",",
" \"zip\": \"72434\",",
" \"error\": \"Valid License Plate Not Found For This Vehicle.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Valid License Plate Not Found",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:56:35 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Valid License Plate Not Found For This Vehicle.\"\n }\n ]\n}"
}
]
},
{
"name": "Title Has Been Transferred",
"event": [
{
"listen": "prerequest",
"script": {
"id": "526beeca-a412-427c-8cea-fbbab47d9582",
"exec": [
"var error = {",
" \"plate_number\": \"604EFC\",",
" \"vin\": \"103E47EF968827605\",",
" \"zip\": \"72203\",",
" \"error\": \"Title Has Been Transferred To Another Owner Or State.\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "866ee9b2-0ea9-4af0-8d4d-589669ecb8f6",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Title Has Been Transferred",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:57:01 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Title Has Been Transferred To Another Owner Or State.\"\n }\n ]\n}"
}
]
},
{
"name": "Generic National Guard Suspension",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"930EZI\",",
" \"vin\": \"815B9EF5112736567\",",
" \"zip\": \"72022\",",
" \"error\": \"Generic National Guard Suspension\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Generic National Guard Suspension",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:57:26 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Generic National Guard Suspension\"\n }\n ]\n}"
}
]
},
{
"name": "Plate Must Be Viewed for Design",
"event": [
{
"listen": "prerequest",
"script": {
"id": "65ee16bc-28a7-453f-9c36-cf9f526c7b30",
"exec": [
"var error = {",
" \"plate_number\": \"766LYL\",",
" \"vin\": \"2778DC21114101852\",",
" \"zip\": \"72117\",",
" \"error\": \"Plate Must Be Viewed To Verify It Is The Current Plate Design Before Renewal Can Be Processed\"",
"};",
"",
"pm.variables.set(\"plate_number\", error.plate_number);",
"pm.variables.set(\"zip_code\", error.zip);",
"pm.variables.set(\"vin_number\", error.vin);",
"pm.variables.set(\"error\", error.error);"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "d5b997b4-29fb-47c9-bb77-ad03daef47ef",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Plate Must Be Viewed for Design",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{vin_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{plate_number}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{zip_code}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 15:58:02 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"Plate Must Be Viewed To Verify It Is The Current Plate Design Before Renewal Can Be Processed\"\n }\n ]\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "cd7da031-0c2e-469d-9562-f48847797305",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "b3ba08a8-702f-49c0-98a4-b497b705dc86",
"type": "text/javascript",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-error\"));",
" ",
" var jsonData = pm.response.json();",
" ",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" if (!validationResult.valid) {",
" console.log('not valid');",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" }",
" ",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"var jsonData = pm.response.json();",
"",
"tests[\"Error is present\"] = jsonData.errors[0].error === pm.variables.get(\"error\");",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Translate",
"item": [
{
"name": "Translate",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"Events\": null,\n \"User\": {\n \"Email\": \"brandon.kiefer+123@ark.org\",\n \"Guid\": \"efb39689-1416-41c2-a6dc-586b416ceebb\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{translate_url}}",
"host": [
"{{url}}{{translate_url}}"
]
}
},
"response": [
{
"name": "Translate",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"Events\": null,\n \"User\": {\n \"Email\": \"brandon.kiefer+123@ark.org\",\n \"Guid\": \"efb39689-1416-41c2-a6dc-586b416ceebb\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{translate_url}}",
"host": [
"{{url}}{{translate_url}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 17:42:59 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": [\n {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"data\": [\n {\n \"schemaFieldSlug\": \"expiration_date\",\n \"value\": \"2019-09-19\"\n },\n {\n \"schemaFieldSlug\": \"vin\",\n \"value\": \"1E121E68110876814\"\n },\n {\n \"schemaFieldSlug\": \"plate\",\n \"value\": \"221XPM\"\n },\n {\n \"schemaFieldSlug\": \"make\",\n \"value\": \"Studebaker\"\n },\n {\n \"schemaFieldSlug\": \"model\",\n \"value\": \"Regal\"\n },\n {\n \"schemaFieldSlug\": \"year\",\n \"value\": \"2000\"\n },\n {\n \"schemaFieldSlug\": \"search_params\",\n \"value\": \"eyJwbGF0ZV9udW1iZXIiOiIyMjFYUE0iLCJzZWFyY2hfdHlwZSI6InZpbiJ9\"\n },\n {\n \"schemaFieldSlug\": \"color\",\n \"value\": \"RED\"\n },\n {\n \"schemaFieldSlug\": \"zip\",\n \"value\": \"72061\"\n },\n {\n \"schemaFieldSlug\": \"pretty_expiration_date\",\n \"value\": \"Sep 19, 2019\"\n }\n ],\n \"events\": [\n {\n \"complete\": false,\n \"eventSlug\": \"renew-car-tags\",\n \"hiddenOn\": \"2020-09-18T19:00:00-05:00\",\n \"occursOn\": \"2019-09-18T19:00:00-05:00\",\n \"visibleOn\": \"2019-06-20T19:00:00-05:00\"\n }\n ]\n }\n ],\n \"errors\": []\n}"
}
]
},
{
"name": "Translate [Expired]",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}EE\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"Events\": null,\n \"User\": {\n \"Email\": \"brandon.kiefer+123@ark.org\",\n \"Guid\": \"efb39689-1416-41c2-a6dc-586b416ceebb\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{translate_url}}",
"host": [
"{{url}}{{translate_url}}"
]
}
},
"response": [
{
"name": "Translate",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"Events\": null,\n \"User\": {\n \"Email\": \"brandon.kiefer+123@ark.org\",\n \"Guid\": \"efb39689-1416-41c2-a6dc-586b416ceebb\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{translate_url}}",
"host": [
"{{url}}{{translate_url}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 17:42:59 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": [\n {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"data\": [\n {\n \"schemaFieldSlug\": \"expiration_date\",\n \"value\": \"2019-09-19\"\n },\n {\n \"schemaFieldSlug\": \"vin\",\n \"value\": \"1E121E68110876814\"\n },\n {\n \"schemaFieldSlug\": \"plate\",\n \"value\": \"221XPM\"\n },\n {\n \"schemaFieldSlug\": \"make\",\n \"value\": \"Studebaker\"\n },\n {\n \"schemaFieldSlug\": \"model\",\n \"value\": \"Regal\"\n },\n {\n \"schemaFieldSlug\": \"year\",\n \"value\": \"2000\"\n },\n {\n \"schemaFieldSlug\": \"search_params\",\n \"value\": \"eyJwbGF0ZV9udW1iZXIiOiIyMjFYUE0iLCJzZWFyY2hfdHlwZSI6InZpbiJ9\"\n },\n {\n \"schemaFieldSlug\": \"color\",\n \"value\": \"RED\"\n },\n {\n \"schemaFieldSlug\": \"zip\",\n \"value\": \"72061\"\n },\n {\n \"schemaFieldSlug\": \"pretty_expiration_date\",\n \"value\": \"Sep 19, 2019\"\n }\n ],\n \"events\": [\n {\n \"complete\": false,\n \"eventSlug\": \"renew-car-tags\",\n \"hiddenOn\": \"2020-09-18T19:00:00-05:00\",\n \"occursOn\": \"2019-09-18T19:00:00-05:00\",\n \"visibleOn\": \"2019-06-20T19:00:00-05:00\"\n }\n ]\n }\n ],\n \"errors\": []\n}"
},
{
"name": "Translate [Expired]",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}EE\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"Events\": null,\n \"User\": {\n \"Email\": \"brandon.kiefer+123@ark.org\",\n \"Guid\": \"efb39689-1416-41c2-a6dc-586b416ceebb\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{translate_url}}",
"host": [
"{{url}}{{translate_url}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 17:43:30 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": [\n {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"data\": [\n {\n \"schemaFieldSlug\": \"expiration_date\",\n \"value\": \"2019-06-21\"\n },\n {\n \"schemaFieldSlug\": \"vin\",\n \"value\": \"1E121E68110876814\"\n },\n {\n \"schemaFieldSlug\": \"plate\",\n \"value\": \"221XPM\"\n },\n {\n \"schemaFieldSlug\": \"make\",\n \"value\": \"Studebaker\"\n },\n {\n \"schemaFieldSlug\": \"model\",\n \"value\": \"Regal\"\n },\n {\n \"schemaFieldSlug\": \"year\",\n \"value\": \"2000\"\n },\n {\n \"schemaFieldSlug\": \"search_params\",\n \"value\": \"eyJwbGF0ZV9udW1iZXIiOiIyMjFYUE0iLCJzZWFyY2hfdHlwZSI6InZpbiJ9\"\n },\n {\n \"schemaFieldSlug\": \"color\",\n \"value\": \"RED\"\n },\n {\n \"schemaFieldSlug\": \"zip\",\n \"value\": \"72061\"\n },\n {\n \"schemaFieldSlug\": \"pretty_expiration_date\",\n \"value\": \"Jun 21, 2019\"\n }\n ],\n \"events\": [\n {\n \"complete\": false,\n \"eventSlug\": \"renew-car-tags\",\n \"hiddenOn\": \"2020-06-20T19:00:00-05:00\",\n \"occursOn\": \"2019-06-20T19:00:00-05:00\",\n \"visibleOn\": \"2019-03-22T19:00:00-05:00\"\n }\n ]\n }\n ],\n \"errors\": []\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "c494119b-1e19-4c18-b940-503f5fa99fd6",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "cc69196d-b0e4-4da5-a470-560d69dd031a",
"type": "text/javascript",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-translate\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
]
}
}
],
"protocolProfileBehavior": {}
},
{
"name": "Tests",
"item": [
{
"name": "Address Verification Failure",
"item": [
{
"name": "Search",
"event": [
{
"listen": "test",
"script": {
"id": "d2b18292-aaa4-42ea-82f4-ed1a92d683fb",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Search",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:41 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": 1,\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Verify",
"event": [
{
"listen": "test",
"script": {
"id": "2e0e78c0-29b3-46ec-859a-2c513a94226e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-verify\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"verify-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OF ADDRESS VERIFICATION\",\n \"slug\": \"RegHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change your address, please complete the form below. \",\n \"slug\": \"SubRegRenewSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"License Plate Number\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"plate_number\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Last 4 digits of Vehicle ID Number (VIN)\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"vin\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"ZIP\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"zip\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address",
"event": [
{
"listen": "test",
"script": {
"id": "0770398f-081d-4c3c-bee6-6bf407f3e7d6",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Line Items Copy",
"event": [
{
"listen": "test",
"script": {
"id": "1b83e936-db41-4dda-8e0c-1fd28d71b40e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPathftr +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "a93d2189-c681-4ded-920f-b34a609f85d0",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"owner_address_1\",\n \"Value\": \"123\"\n },\n {\n \"SchemaFieldSlug\": \"owner_address_2\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"owner_city\",\n \"Value\": \"Test\"\n },\n {\n \"SchemaFieldSlug\": \"owner_state\",\n \"Value\": \"AR\"\n },\n {\n \"SchemaFieldSlug\": \"owner_zip\",\n \"Value\": \"12345\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_address_1\",\n \"Value\": \"123\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_address_2\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_city\",\n \"Value\": \"Test\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_state\",\n \"Value\": \"AR\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_zip\",\n \"Value\": \"12345\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:49:55 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917143237799\",\n \"form\": {\n \"formId\": \"review-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Address Empty Fields",
"item": [
{
"name": "Search",
"event": [
{
"listen": "test",
"script": {
"id": "d2b18292-aaa4-42ea-82f4-ed1a92d683fb",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Search",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:41 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": 1,\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Verify",
"event": [
{
"listen": "test",
"script": {
"id": "2e0e78c0-29b3-46ec-859a-2c513a94226e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-verify\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"verify-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OF ADDRESS VERIFICATION\",\n \"slug\": \"RegHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change your address, please complete the form below. \",\n \"slug\": \"SubRegRenewSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"License Plate Number\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"plate_number\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Last 4 digits of Vehicle ID Number (VIN)\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"vin\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"ZIP\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"zip\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address",
"event": [
{
"listen": "test",
"script": {
"id": "0770398f-081d-4c3c-bee6-6bf407f3e7d6",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Line Items Copy",
"event": [
{
"listen": "test",
"script": {
"id": "1b83e936-db41-4dda-8e0c-1fd28d71b40e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "a93d2189-c681-4ded-920f-b34a609f85d0",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"owner_address_1\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"owner_address_2\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"owner_city\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"owner_state\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"owner_zip\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_address_1\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_address_2\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_city\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_state\",\n \"Value\": \"\"\n },\n {\n \"SchemaFieldSlug\": \"renewal_zip\",\n \"Value\": \"\"\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:49:55 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917143237799\",\n \"form\": {\n \"formId\": \"review-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Back",
"item": [
{
"name": "Search",
"event": [
{
"listen": "test",
"script": {
"id": "d2b18292-aaa4-42ea-82f4-ed1a92d683fb",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Search",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:41 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": 1,\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Verify",
"event": [
{
"listen": "test",
"script": {
"id": "2e0e78c0-29b3-46ec-859a-2c513a94226e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-verify\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"verify-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OF ADDRESS VERIFICATION\",\n \"slug\": \"RegHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change your address, please complete the form below. \",\n \"slug\": \"SubRegRenewSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"License Plate Number\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"plate_number\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Last 4 digits of Vehicle ID Number (VIN)\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"vin\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"ZIP\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"zip\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address [Back]",
"event": [
{
"listen": "test",
"script": {
"id": "2d789ab1-b9f8-4e36-a0d1-e5333b3fb5df",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid - Back to Search', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \n \"Back\": true,\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Verify [2]",
"event": [
{
"listen": "test",
"script": {
"id": "2e0e78c0-29b3-46ec-859a-2c513a94226e",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-verify\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Line Items",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": \"true\"\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:32:46 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"verify-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OF ADDRESS VERIFICATION\",\n \"slug\": \"RegHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change your address, please complete the form below. \",\n \"slug\": \"SubRegRenewSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"License Plate Number\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"plate_number\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Last 4 digits of Vehicle ID Number (VIN)\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"vin\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"ZIP\",\n \"tooltip\": null,\n \"required\": true,\n \"slug\": \"zip\",\n \"defaultValue\": null,\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address [2]",
"event": [
{
"listen": "test",
"script": {
"id": "0770398f-081d-4c3c-bee6-6bf407f3e7d6",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Line Items",
"event": [
{
"listen": "test",
"script": {
"id": "1b83e936-db41-4dda-8e0c-1fd28d71b40e",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-line-items\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });",
"",
""
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "a93d2189-c681-4ded-920f-b34a609f85d0",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": {{eligible_address}}\n}"
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.16"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Tue, 17 Sep 2019 14:49:55 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "57"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"receiptTitle\": \"1 Year for '00 STUD REGA\",\n \"lineItems\": [\n {\n \"description\": \"1 Year Renewal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 25\n },\n {\n \"description\": \"Decal Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 2.5\n },\n {\n \"description\": \"Postage Fee\",\n \"quantity\": 1,\n \"sku\": null,\n \"unitPrice\": 0.25\n }\n ],\n \"total\": 27.75,\n \"Fees\": [\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"1 Year Renewal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Renewal\",\n \"UnitPrice\": 25\n }\n ],\n \"Total\": 25\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Decal Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Decal\",\n \"UnitPrice\": 2.5\n }\n ],\n \"Total\": 2.5\n },\n {\n \"PaymentType\": 0,\n \"LineItems\": [\n {\n \"Description\": \"Postage Fee\",\n \"Quantity\": 1,\n \"Sku\": null,\n \"Type\": \"Postage\",\n \"UnitPrice\": 0.25\n }\n ],\n \"Total\": 0.25\n }\n ],\n \"LocalReferenceId\": \"20190917143237799\",\n \"form\": {\n \"formId\": \"review-b2075c9dab904304a71f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"1 Year for '00 STUD REGA\",\n \"slug\": \"labelSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"Please confirm the following items are correct before pressing continue.\",\n \"slug\": \"subLabelSlug\"\n }\n ]\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Address [Back] Copy",
"event": [
{
"listen": "test",
"script": {
"id": "0770398f-081d-4c3c-bee6-6bf407f3e7d6",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-address\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \n \"Back\": true,\n \"FormData\": []\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Address",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"{{formId}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"plate_number\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Mon, 23 Sep 2019 20:08:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "56"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"address-f33d90385b5c4f49820c\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE REGISTRATION ADDRESS\",\n \"slug\": \"AddressHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's registration address, please update the following.\",\n \"slug\": \"subAddressHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_1\",\n \"defaultValue\": \"3934 Mill Avenue\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_city\",\n \"defaultValue\": \"Hickory Plains\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"renewal_zip\",\n \"defaultValue\": \"72066\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"CHANGE OWNER ADDRESS\",\n \"slug\": \"AddressOwnerHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"To change the vehicle's owner address, please update the following.\",\n \"slug\": \"subAddressOwnerHelperSlug\"\n }\n ]\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 1\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_1\",\n \"defaultValue\": \"8223 Church St.\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Address Line 2\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_address_2\",\n \"defaultValue\": \"\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"City\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_city\",\n \"defaultValue\": \"Guy\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"State\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_state\",\n \"defaultValue\": \"AR\",\n \"readOnly\": false,\n \"unique\": false\n },\n {\n \"inputType\": \"Text\",\n \"label\": \"Zip\",\n \"tooltip\": null,\n \"required\": false,\n \"slug\": \"owner_zip\",\n \"defaultValue\": \"72061\",\n \"readOnly\": false,\n \"unique\": false\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
}
],
"protocolProfileBehavior": {},
"_postman_isSubFolder": true
},
{
"name": "Bad Input Slug",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"pm.test('Error is valid', function() {",
"",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.errors[0].error).to.eql('We are currently unable to process your request.');",
" ",
"});",
"",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zips\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Bad Input Slug",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zips\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 15:11:25 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"The zip field is required.\"\n }\n ]\n}"
}
]
},
{
"name": "Invalid API Key",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
" ",
"pm.test('Trace contains error string', function() {",
" const $ = cheerio.load(pm.response.text());",
" var trace = $('.trace-message').text();",
" pm.expect(trace).to.include('Invalid API key provided');",
" ",
"});",
"",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"key\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": []
},
{
"name": "Show Form Regardless of InvoiceConfirmation",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": true,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
},
"description": "If the `InvoiceConfirmation` key is true, but the request data is not represented as expected, still show the correct form."
},
"response": [
{
"name": "Show Form Regardless of InvoiceConfirmation",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": true,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 15:09:35 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-9414e43de7eb45ca8c5f\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": \"1\",\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invalid Zip",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"pm.test('Error is valid', function() {",
"",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.errors[0].error).to.eql('We are currently unable to process your request.');",
" ",
"});",
"",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}12\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invalid Zip",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"Data\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}12\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 14:36:51 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "58"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\"\n },\n \"Errors\": [\n {\n \"Error\": \"The zip may not be greater than 5 characters.\"\n }\n ]\n}"
}
]
},
{
"name": "FormData instead of Data Request JSON",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"pm.environment.set(\"formId\", jsonData.data.form.formId);",
"",
"pm.test('Schema is valid', function() {",
" var schema = JSON.parse(pm.environment.get(\"schema-search\"));",
" // var map = tv4.addSchema('http://example.com/common',schema);",
" ",
" var jsonData = pm.response.json();",
" //Logging all errors to Postman console",
" var validationResult = tv4.validateMultiple(jsonData, schema,true,true);",
" for(var i =0; i<validationResult.errors.length;i++){",
" console.log(\"path :\"+ validationResult.errors[i].dataPath +\" message :\"+ validationResult.errors[i].message); ",
" }",
" ",
" //Validate method will stop validation at the first error and return false",
" pm.expect(tv4.validate(jsonData,schema, true, true)).to.be.true;",
"});",
"",
"pm.test(\"Status code is 200\", function () { pm.response.to.have.status(200); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "FormData instead of Data Request JSON",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"vin\",\n \"Value\": \"{{eligible_vin}}\"\n },\n {\n \"SchemaFieldSlug\": \"plate\",\n \"Value\": \"{{eligible_plate}}\"\n },\n {\n \"SchemaFieldSlug\": \"zip\",\n \"Value\": \"{{eligible_zip}}\"\n }\n ],\n \"InvoiceConfirmation\": false,\n \"ApiKey\": \"{{api_key}}\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 14:38:45 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"data\": {\n \"apiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"form\": {\n \"formId\": \"search-56542443bed54a189915\",\n \"fields\": [\n {\n \"inputType\": \"Header\",\n \"subType\": \"Text\",\n \"label\": \"RENEWAL LENGTH\",\n \"slug\": \"RegLengthHeaderSlug\",\n \"dependentFields\": [\n {\n \"inputType\": \"HelperText\",\n \"subType\": \"Text\",\n \"label\": \"When a vehicle has been registered for a multi-year period, the fee will be paid in advance for the applicable two (2) or three (3) year period, however, a decal will be issued for only a one (1) year period.\",\n \"slug\": \"SubRegLengthRenewSlug\"\n }\n ]\n },\n {\n \"dependsOnFieldValue\": null,\n \"inputType\": \"Dropdown\",\n \"label\": \"Choose the number of years to renew.\",\n \"required\": true,\n \"slug\": \"renewalYear\",\n \"defaultValue\": \"1\",\n \"readOnly\": false,\n \"unique\": false,\n \"options\": [\n {\n \"name\": \"1 year\",\n \"value\": 1\n },\n {\n \"name\": \"2 years\",\n \"value\": 2\n }\n ]\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Change my Address\",\n \"value\": \"false\"\n },\n \"slug\": \"address_change\"\n },\n {\n \"inputType\": \"SimpleCheckbox\",\n \"subType\": \"SingleSelection\",\n \"customData\": {\n \"boxAlignPosition\": \"left\",\n \"componentAligment\": \"left\",\n \"text\": \"Setup Email Renewal Reminder\",\n \"value\": \"false\"\n },\n \"slug\": \"notification_change\"\n }\n ]\n }\n },\n \"errors\": []\n}"
}
]
},
{
"name": "Invalid FormID - Format",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"pm.test('Error is valid', function() {",
"",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.errors[0].error).to.eql('We are currently unable to process your request.');",
" ",
"});",
"",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"123\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invalid FormID - Format",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"123\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 14:58:15 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"ApiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"data\": null,\n \"Errors\": [\n {\n \"Error\": \"We are currently unable to process your request.\"\n }\n ]\n}"
}
]
},
{
"name": "Invalid FormID - Form Not Found",
"event": [
{
"listen": "test",
"script": {
"id": "cb214546-53a1-49b1-bf2f-8b46d67edced",
"exec": [
"pm.test('Error is valid', function() {",
"",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.errors[0].error).to.eql('We were unable to process your current request.');",
" ",
"});",
"",
"",
"pm.test(\"Status code is 400\", function () { pm.response.to.have.status(400); });"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "da0148d8-27eb-460a-8983-e0287ab62486",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"test-123\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"response": [
{
"name": "Invalid FormID - Form Not Found",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\n \"ApiKey\": \"{{api_key}}\",\n \"FormId\": \"test-123\",\n \"User\": {\n \"Email\": \"brandon.kiefer@ark.org\",\n \"Guid\": \"823b884e-5435-4b08-be09-cd5f24b3d0c7\"\n },\n \"FormData\": [\n {\n \"SchemaFieldSlug\": \"renewalYear\",\n \"Value\": \"1\"\n },\n {\n \"SchemaFieldSlug\": \"address_change\",\n \"Value\": null\n },\n {\n \"SchemaFieldSlug\": \"notification_change\",\n \"Value\": null\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}{{invoice_uri}}",
"host": [
"{{url}}{{invoice_uri}}"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "nginx/1.10.3"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "X-Powered-By",
"value": "PHP/7.2.22"
},
{
"key": "Cache-Control",
"value": "no-cache, private"
},
{
"key": "Date",
"value": "Wed, 25 Sep 2019 15:06:43 GMT"
},
{
"key": "X-RateLimit-Limit",
"value": "60"
},
{
"key": "X-RateLimit-Remaining",
"value": "59"
}
],
"cookie": [],
"body": "{\n \"ApiKey\": \"b46f8b2e-519d-4280-8438-61f32d3e1a0d\",\n \"data\": null,\n \"Errors\": [\n {\n \"Error\": \"We were unable to process your current request.\"\n }\n ]\n}"
}
]
}
],
"protocolProfileBehavior": {}
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "695336ea-cc4b-4336-aa5a-464d05d4285f",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "9fe0531e-5c7e-4065-8cd9-b554294ad18d",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment