Examples on Postman

{

  "info": {

    "_postman_id": "6c893a73-3b51-40a2-9d9c-f6cd5c9e3093",

    "name": "OpenPlatform Quality OP",

    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"

  },

  "item": [

    {

      "name": "Authenticate a User - Get Authentication Tokens",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "8213a3ab-6c87-42da-b0bd-38da87975527",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"oauthToken\", 'Bearer ' + jsonData.oauth2.access_token);\r",

              "postman.setEnvironmentVariable(\"jwtToken\", jsonData.jwt);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "POST",

        "header": [

          {

            "key": "Content-Type",

            "name": "Content-Type",

            "value": "application/x-www-form-urlencoded",

            "type": "text"

          }

        ],

        "body": {

          "mode": "urlencoded",

          "urlencoded": [

            {

              "key": "grant_type",

              "value": "password",

              "type": "text"

            },

            {

              "key": "scope",

              "value": "security",

             "type": "text"

            },

            {

              "key": "username",

              "value": "YOUR_CEMEXGO_ID",

              "type": "text"

            },

            {

              "key": "password",

              "value": "SECURE_PASSWORD_HERE",

              "type": "text"

            }

          ]

        },

        "url": {

          "raw": "{{api.host}}/v2/secm/oam/oauth2/token",

          "host": ["{{api.host}}"],

          "path": ["v2", "secm", "oam", "oauth2", "token"]

        }

      },

      "response": []

    },

    {

      "name": "Get Authenticated User Countries",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "4bee8add-f92b-41a3-98b7-8d2fb758b83d",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"countryCode\", jsonData.countries[0].countryCode);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/cgm/mycountries",

          "host": ["{{api.host}}"],

          "path": ["v1", "cgm", "mycountries"]

        }

      },

      "response": []

    },

    {

      "name": "Get Authenticated User Customers",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "eeb64d34-4fbb-4096-b24d-adb49ee8767e",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"customerCode\", jsonData.customers[0].customerCode);\r",

              "postman.setEnvironmentVariable(\"customerId\", jsonData.customers[0].customerId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v4/crm/customers",

          "host": ["{{api.host}}"],

          "path": ["v4", "crm", "customers"]

        }

      },

      "response": []

    },

    {

      "name": "Get Contacts By CustomerCode and Country",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "ef3aead9-c084-48fc-bd92-93025e9f0d9e",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"contactId\", jsonData.contacts[0].contactId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v4/crm/mycontacts?customerCode={{customerCode}}.{{countryCode}}",

          "host": ["{{api.host}}"],

          "path": ["v4", "crm", "mycontacts"],

          "query": [

            {

              "key": "customerCode",

              "value": "{{customerCode}}.{{countryCode}}"

            }

          ]

        }

      },

      "response": []

    },

    {

      "name": "Get Contracts By CustomerCode and Country",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "fabe71d2-7bc4-414d-8cdd-1a82c87045d1",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"contractId\", jsonData.contracts[0].contractId);\r",

              "postman.setEnvironmentVariable(\"contractCode\", jsonData.contracts[0].contractCode);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "protocolProfileBehavior": {

        "disableBodyPruning": true

      },

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "body": {

          "mode": "raw",

          "raw": ""

        },

        "url": {

          "raw": "{{api.host}}/v1/ctm/contracts?customerCode={{customerCode}}.{{countryCode}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "ctm", "contracts"],

          "query": [

            {

              "key": "customerCode",

              "value": "{{customerCode}}.{{countryCode}}"

            }

          ]

        }

      },

      "response": []

    },

    {

      "name": "Create an Order Request on Draft Status",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "7bc9a43e-e053-4ba4-98fe-547c0cbe6aff",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"orderId\", jsonData.orderId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "POST",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Content-Type",

            "name": "Content-Type",

            "value": "application/json",

            "type": "text"

          }

        ],

        "body": {

          "mode": "raw",

          "raw":

            "{\n\t\"purchaseOrder\": \"CUSTOMERINTERNALORDERNUMBER000001\",\n\t\"deliveryDate\": \"2019-09-20T12:43:32Z\",\n\t\"shippingCondition\": {\n\t\t\"shippingConditionId\": 6\n\t},\n\t\"contract\": {\n\t\t\"contractId\": {{contractId}}\n\t},\n\t\"contact\": {\n\t\t\"contactId\": {{contactId}}\n\t},\n\t\"instructions\": \"Special Instructions on this Order Request.\"\n}"

        },

        "url": {

          "raw": "{{api.host}}/v1/odm/orders",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders"]

        }

      },

      "response": []

    },

    {

      "name": "Get Order List by Customer Code",

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders?=1372896&customerCode={{customerCode}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders"],

          "query": [

            {

              "key": "dateTimeTo",

              "value": "2019-01-19T12:43:32",

    ��         "description": "Max 7 days",

              "disabled": true

            },

            {

              "key": "dateTimeFrom",

              "value": "2019-01-13T12:43:32",

              "disabled": true

            },

            {

              "key": "customerCode",

              "value": "",

              "description": " Customer Code",

              "disabled": true

            },

            {

              "key": "",

              "value": "1372896"

            },

            {

              "key": "customerCode",

              "value": "{{customerCode}}"

            }

          ]

        }

      },

      "response": []

    },

    {

      "name": "Get Available Products For an Specific Order",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "53be9c89-f152-4386-a99d-ddd6eb07d638",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"productCode01\", jsonData.products[0].productCode);\r",

              "postman.setEnvironmentVariable(\"productCode02\", jsonData.products[1].productCode);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/products",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "products"]

        }

      },

      "response": []

    },

    {

      "name": "Add Products to an Specific Order",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "327d0b54-e98f-4215-abe7-042917a3a5a3",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"item01\", jsonData.orderItem[0].itemId);\r",

              "postman.setEnvironmentVariable(\"item02\", jsonData.orderItem[1].itemId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "PUT",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Content-Type",

            "name": "Content-Type",

            "type": "text",

            "value": "application/json"

          }

        ],

        "body": {

          "mode": "raw",

          "raw":

            "{\n\t\"items\": [\n\t\t{\n\t\t\t\"product\": {\n\t\t\t\t\"productCode\": \"{{productCode01}}\"\n\t\t\t},\n\t\t\t\"quantity\": 2,\n\t\t\t\"requestedDateTime\": \"2019-09-20T12:43:32Z\"\n\t\t},\n\t\t{\n\t\t\t\"product\": {\n\t\t\t\t\"productCode\": \"{{productCode02}}\"\n\t\t\t},\n\t\t\t\"quantity\": 1,\n\t\t\t\"requestedDateTime\": \"2019-09-20T12:43:32Z\"\n\t\t}\n\t]\n}"

        },

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items"]

        }

      },

      "response": []

    },

    {

      "name": "Get An Specific Order Item List",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "6abb44fc-7406-4af0-ab19-b35e44e4bcd8",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"item01\", jsonData.orderItem[0].itemId);\r",

              "postman.setEnvironmentVariable(\"item02\", jsonData.orderItem[1].itemId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Spacings Specific Order and Item",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "5e4e365f-1c5b-4a24-a2cd-7c97460f1915",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"spacingId20min\", jsonData.spacings[0].spacingId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/spacings",

          "host": ["{{api.host}}"],

      ��   "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "spacings"]

        }

      },

      "response": []

    },

    {

      "name": "Update Spacings for an Specific Order and Item",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/spacings/{{spacingId20min}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "spacings", "{{spacingId20min}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Slumps Specific Order and Item",

      "event": [

        {

 ��        "listen": "test",

          "script": {

            "id": "61aa9a7a-045b-453c-aa45-1ef2503b2e4c",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"slump1\", jsonData.slumps[0].slumpId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "value": "application/json",

            "type": "text"

          },

          {

            "key": "App-Code",

            "value": "{{app.code}}",

            "type": "text"

          },

          {

            "key": "Accept-Language",

            "value": "en-US",

            "type": "text"

          },

          {

            "key": "Authorization",

            "value": "{{oauthToken}}",

            "type": "text"

          },

          {

            "key": "Jwt",

            "value": "{{jwtToken}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "value": "{{privateSubscriptionKey}}",

            "type": "text"

          },

          {

            "key": "Ocp-Apim-Trace",

            "value": "true",

            "type": "text",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/slumps",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "slumps"]

        }

      },

      "response": []

    },

    {

      "name": "Update Slumps for an Specific Order and Item",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

��       ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/slumps/{{slump1}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "slumps", "{{slump1}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable LoadSizes Specific Order and Item",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "a517e598-a4d3-4b73-ba56-c7376986cd6f",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"loadSize10yd3\", jsonData.loadSizes[0].loadSizeId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/loadsizes",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "loadsizes"]

        }

      },

      "response": []

    },

    {

      "name": "Update LoadSizes for an Specific Order and Item",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/loadsizes/{{loadSize10yd3}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "loadsizes", "{{loadSize10yd3}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Applications Specific Order and Item",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "b38b87ed-da64-4321-b7bd-4630f68b4f12",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"applicationGroundings\", jsonData.applications[0].applicationId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/applications",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item01}}", "applications"]

        }

      },

      "response": []

    },

    {

      "name": "Update Applications for an Specific Order and Item",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "c9345848-bdd3-42e2-a0ce-f6de09ff6e97",

            "exec": [""],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item01}}/applications/{{applicationGroundings}}",

          "host": ["{{api.host}}"],

          "path": [

            "v1",

            "odm",

            "orders",

            "{{orderId}}",

            "items",

            "{{item01}}",

            "applications",

            "{{applicationGroundings}}"

          ]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Spacings Specific Order and Item 2",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "5e4e365f-1c5b-4a24-a2cd-7c97460f1915",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"spacingId20min\", jsonData.spacings[0].spacingId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/spacings",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "spacings"]

        }

      },

      "response": []

    },

    {

      "name": "Update Spacings for an Specific Order and Item 2",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/spacings/{{spacingId20min}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "spacings", "{{spacingId20min}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Slumps Specific Order and Item 2",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "61aa9a7a-045b-453c-aa45-1ef2503b2e4c",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"slump1\", jsonData.slumps[0].slumpId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/slumps",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "slumps"]

        }

      },

      "response": []

    },

    {

      "name": "Update Slumps for an Specific Order and Item 2",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/slumps/{{slump1}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "slumps", "{{slump1}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable LoadSizes Specific Order and Item 2",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "a517e598-a4d3-4b73-ba56-c7376986cd6f",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"loadSize10yd3\", jsonData.loadSizes[0].loadSizeId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/loadsizes",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "loadsizes"]

        }

      },

      "response": []

    },

    {

      "name": "Update LoadSizes for an Specific Order and Item 2",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/loadsizes/{{loadSize10yd3}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "loadsizes", "{{loadSize10yd3}}"]

        }

      },

      "response": []

    },

    {

      "name": "Get a List of avaliable Applications Specific Order and Item 2",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "b38b87ed-da64-4321-b7bd-4630f68b4f12",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"applicationGroundings\", jsonData.applications[0].applicationId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/applications",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "items", "{{item02}}", "applications"]

        }

      },

      "response": []

    },

    {

      "name": "Update Applications for an Specific Order and Item 2",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "c9345848-bdd3-42e2-a0ce-f6de09ff6e97",

            "exec": [""],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "PATCH",

        "header": [

     ��    {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/items/{{item02}}/applications/{{applicationGroundings}}",

          "host": ["{{api.host}}"],

          "path": [

            "v1",

            "odm",

            "orders",

            "{{orderId}}",

            "items",

            "{{item02}}",

            "applications",

            "{{applicationGroundings}}"

          ]

        }

      },

      "response": []

    },

    {

      "name": "Update an Specific Order and Mark it as Requested",

      "request": {

        "method": "PATCH",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/odm/orders/{{orderId}}/requested",

          "host": ["{{api.host}}"],

          "path": ["v1", "odm", "orders", "{{orderId}}", "requested"]

        }

      },

      "response": [

        {

          "name": "{{api.host.am}}/v1/odm/orders/2381/requested",

          "originalRequest": {

            "method": "PATCH",

            "header": [

              {

                "key": "Accept",

                "value": "application/json",

                "type": "text"

              },

              {

                "key": "x-ibm-client-id",

                "value": "{{client_id}}",

                "type": "text"

              },

              {

                "key": "App-Code",

                "value": "{{app.code}}",

                "type": "text"

              },

              {

                "key": "Accept-Language",

                "value": "en-US",

                "type": "text"

              },

              {

                "key": "Authorization",

                "value": "{{oauthToken}}",

                "type": "text"

              },

              {

                "key": "Jwt",

                "value": "{{jwtToken}}",

                "type": "text"

              },

              {

                "key": "Ocp-Apim-Subscription-Key",

                "value": "02a5b136830d4374a935d0f474ed42eb",

                "type": "text",

                "disabled": true

              },

              {

                "key": "Ocp-Apim-Trace",

                "value": "true",

                "type": "text",

                "disabled": true

              }

            ],

            "url": {

              "raw": "{{api.host}}/v1/odm/orders/1372881/requested",

       ��      "host": ["{{api.host}}"],

              "path": ["v1", "odm", "orders", "1372881", "requested"]

            }

          },

          "status": "OK",

          "code": 200,

          "_postman_previewlanguage": "json",

          "header": [

            {

              "key": "Cache-Control",

              "value": "no-cache"

            },

            {

              "key": "Pragma",

              "value": "no-cache"

            },

            {

              "key": "Transfer-Encoding",

              "value": "chunked"

            },

            {

              "key": "Content-Type",

              "value": "application/json; charset=utf-8"

            },

            {

              "key": "Content-Encoding",

              "value": "gzip"

            },

            {

              "key": "Expires",

              "value": "-1"

            },

            {

              "key": "Vary",

              "value": "Accept-Encoding"

            },

            {

              "key": "Request-Context",

              "value": "appId=cid-v1:01522cb9-5d14-47cd-b75b-4d4cc68ffb8a"

            },

            {

              "key": "Access-Control-Expose-Headers",

              "value": "Request-Context"

            },

            {

              "key": "Date",

              "value": "Thu, 06 Jun 2019 15:47:43 GMT"

            }

          ],

          "cookie": [],

          "body":

            "{\n    \"links\": [\n        {\n            \"href\": \"/v1/odm/orders/1372881\",\n            \"method\": \"GET\",\n            \"rel\": \"self\"\n        },\n        {\n            \"href\": \"/v1/odm/orders/1372881/items\",\n            \"method\": \"GET\",\n            \"rel\": \"items\"\n        },\n        {\n            \"href\": \"/v1/odm/orders/1372881/requested\",\n            \"method\": \"PATCH\",\n            \"rel\": \"requested\"\n        }\n    ],\n    \"orderId\": 1372881,\n    \"createdDateTime\": \"2019-06-06T14:11:35\",\n    \"programmedDateTime\": \"2019-09-20T12:43:32\",\n    \"requestedDateTime\": \"2019-09-20T12:43:32\",\n    \"purchaseOrder\": \"PURCHASEORDERNUMBER 01\",\n    \"orderType\": {\n        \"orderTypeId\": 459,\n        \"orderTypeCode\": \"DFT\",\n        \"orderTypeDesc\": \"Order Draft Code\"\n    },\n    \"status\": {\n        \"statusId\": 20,\n        \"statusCode\": \"RQSD\",\n        \"statusDesc\": \"Requested\"\n    },\n    \"customer\": {\n        \"links\": [\n            {\n                \"href\": \"/v4/crm/customers/339900\",\n                \"method\": \"GET\",\n                \"rel\": \"self\"\n            }\n        ],\n        \"customerId\": 339900\n    },\n    \"shippingCondition\": {\n        \"links\": [\n            {\n                \"href\": \"/v7/dm/shippingconditions/6\",\n                \"method\": \"GET\",\n                \"rel\": \"self\"\n            }\n        ],\n        \"shippingConditionId\": 6\n    },\n    \"jobsite\": {\n        \"links\": [\n            {\n                \"href\": \"/v7/dm/jobsites/827297\",\n                \"method\": \"GET\",\n                \"rel\": \"self\"\n            }\n        ],\n        \"jobsiteId\": 827297\n    }\n}"

        }

      ]

    },

    {

      "name": "Get a List of Tickets By Order Code",

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

        ��   "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Authorization",

            "type": "text",

            "value": "{{oauthToken}}"

          },

          {

            "key": "Jwt",

            "type": "text",

            "value": "{{jwtToken}}"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{privateSubscriptionKey}}"

          },

          {

            "key": "Ocp-Apim-Trace",

            "type": "text",

            "value": "true",

            "disabled": true

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/dsm/tickets?orderCode=02190531000000003434.US",

          "host": ["{{api.host}}"],

          "path": ["v1", "dsm", "tickets"],

          "query": [

            {

              "key": "orderCode",

              "value": "02190531000000003434.US"

            }

          ]

        }

      },

      "response": []

    },

    {

      "name": "Get Plant Catalog",

      "event": [

        {

          "listen": "test",

          "script": {

            "id": "7367db87-5071-4a9d-8f0e-9b33af2df14b",

            "exec": [

              "var jsonData = JSON.parse(responseBody);\r",

              "postman.setEnvironmentVariable(\"plantId\", jsonData.plants[0].plantId);"

            ],

            "type": "text/javascript"

          }

        }

      ],

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{publicSubscriptionKey}}"

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/dsm/plants?countryCode={{countryCode}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "dsm", "plants"],

          "query": [

            {

              "key": "countryCode",

              "value": "{{countryCode}}"

            }

          ]

        }

      },

      "response": []

    },

    {

      "name": "Get an Specific Plant Address Information",

      "request": {

        "method": "GET",

        "header": [

          {

            "key": "Accept",

            "type": "text",

            "value": "application/json"

          },

          {

            "key": "App-Code",

            "type": "text",

            "value": "{{app.code}}"

          },

          {

            "key": "Accept-Language",

            "type": "text",

            "value": "en-US"

          },

          {

            "key": "Ocp-Apim-Subscription-Key",

            "type": "text",

            "value": "{{publicSubscriptionKey}}"

          }

        ],

        "url": {

          "raw": "{{api.host}}/v1/dsm/plants/{{plantId}}/addresses?countryCode={{countryCode}}",

          "host": ["{{api.host}}"],

          "path": ["v1", "dsm", "plants", "{{plantId}}", "addresses"],

          "query": [

            {

              "key": "countryCode",

              "value": "{{countryCode}}"

            }

          ]

        }

      },

      "response": []

    }

  ]

}