{
    "info":  {
                 "_postman_id":  "f2fe66a6-e2e5-4b4d-b025-eecd020a00d0",
                 "name":  "Checkout - Step 2",
                 "description":  "Uses the actual Customer checkout endpoints.",
                 "schema":  "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
             },
    "variable":  [
                     {
                         "key":  "baseUrl",
                         "value":  "http://192.168.1.104:8080/api/v1",
                         "type":  "string"
                     },
                     {
                         "key":  "accessToken",
                         "value":  "",
                         "type":  "string"
                     },
                     {
                         "key":  "addressId",
                         "value":  "",
                         "type":  "string"
                     },
                     {
                         "key":  "deliveryMethodId",
                         "value":  "",
                         "type":  "string"
                     }
                 ],
    "auth":  {
                 "type":  "bearer",
                 "bearer":  [
                                {
                                    "key":  "token",
                                    "value":  "{{accessToken}}",
                                    "type":  "string"
                                }
                            ]
             },
    "item":  [
                 {
                     "name":  "Checkout",
                     "item":  [
                                  {
                                      "name":  "1. Get available delivery methods",
                                      "request":  {
                                                      "auth":  {
                                                                   "type":  "inherit"
                                                               },
                                                      "method":  "GET",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "type":  "text",
                                                                         "value":  "application/json"
                                                                     }
                                                                 ],
                                                      "url":  {
                                                                  "raw":  "{{baseUrl}}/cart-checkout/delivery-methods?address_id={{addressId}}",
                                                                  "host":  [
                                                                               "{{baseUrl}}"
                                                                           ],
                                                                  "path":  [
                                                                               "cart-checkout",
                                                                               "delivery-methods"
                                                                           ],
                                                                  "query":  [
                                                                                {
                                                                                    "key":  "address_id",
                                                                                    "value":  "{{addressId}}",
                                                                                    "description":  "Must belong to the authenticated user."
                                                                                }
                                                                            ]
                                                              }
                                                  },
                                      "response":  [

                                                   ]
                                  },
                                  {
                                      "name":  "2. Calculate cart summary",
                                      "request":  {
                                                      "auth":  {
                                                                   "type":  "inherit"
                                                               },
                                                      "method":  "POST",
                                                      "header":  [
                                                                     {
                                                                         "key":  "Accept",
                                                                         "type":  "text",
                                                                         "value":  "application/json"
                                                                     },
                                                                     {
                                                                         "key":  "Content-Type",
                                                                         "value":  "application/json",
                                                                         "type":  "text"
                                                                     }
                                                                 ],
                                                      "body":  {
                                                                   "mode":  "raw",
                                                                   "raw":  "{\n  \"address_id\": {{addressId}},\n  \"delivery_method_id\": {{deliveryMethodId}}\n}",
                                                                   "options":  {
                                                                                   "raw":  {
                                                                                               "language":  "json"
                                                                                           }
                                                                               }
                                                               },
                                                      "url":  {
                                                                  "raw":  "{{baseUrl}}/cart-checkout/calculation",
                                                                  "host":  [
                                                                               "{{baseUrl}}"
                                                                           ],
                                                                  "path":  [
                                                                               "cart-checkout",
                                                                               "calculation"
                                                                           ]
                                                              }
                                                  },
                                      "response":  [

                                                   ]
                                  }
                              ]
                 }
             ]
}