{
  "opencollection": "1.0.0",
  "info": {
    "name": "Cart Actions Endpoints Customer Self API",
    "version": "3.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Customer Self",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Customer Details - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fabric.inc/v3/customers/self",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ]
          },
          "docs": "Using this endpoint, a customer can view their details through the storefront UI."
        },
        {
          "info": {
            "name": "Update Customer Details - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.fabric.inc/v3/customers/self",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Using this endpoint, customers can update their own details through the storefront UI."
        },
        {
          "info": {
            "name": "View Addresses - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fabric.inc/v3/customers/self/customer-address",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The number of records to skip before returning records. For example, when offset is 20 and limit's 10, this endpoint returns records from 21 to 30."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of records in a single page."
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "The criteria to sort results, where `-` indicates a descending order and `+` indicates an ascending order. You can sort the following fields - `updatedAt`, `country`, `city`, and `region`."
              },
              {
                "name": "isDeleted",
                "value": "",
                "type": "query",
                "description": "A flag indicating whether only the deleted addresses are returned in the response. Specify `true` to get only the deleted addresses and `false` to get only the non-deleted ones."
              }
            ]
          },
          "docs": "Using this endpoint, a customer can view their own addresses through the storefront UI."
        },
        {
          "info": {
            "name": "Add Address - Customer Context.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fabric.inc/v3/customers/self/customer-address",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Using this endpoint, a customer can add their address through a storefront UI."
        },
        {
          "info": {
            "name": "View Address - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fabric.inc/v3/customers/self/customer-address/:addressId",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "params": [
              {
                "name": "addressId",
                "value": "",
                "type": "path",
                "description": "A 24-character system-generated ID of the customer's address."
              }
            ]
          },
          "docs": "Using this endpoint, a customer can view their own address through the storefront UI based on the `addressId`."
        },
        {
          "info": {
            "name": "Update Address - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.fabric.inc/v3/customers/self/customer-address/:addressId",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "params": [
              {
                "name": "addressId",
                "value": "",
                "type": "path",
                "description": "A 24-character system-generated ID of the customer's address."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Using this endpoint, a customer can update their own address through the storefront UI based on `addressId`."
        },
        {
          "info": {
            "name": "Delete Address - Customer Context",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.fabric.inc/v3/customers/self/customer-address/:addressId",
            "headers": [
              {
                "name": "x-fabric-tenant-id",
                "value": ""
              },
              {
                "name": "x-fabric-request-id",
                "value": "263e731c-45c8-11ed-b878-0242ac120002"
              }
            ],
            "params": [
              {
                "name": "addressId",
                "value": "",
                "type": "path",
                "description": "A 24-character system-generated ID of the customer's address."
              }
            ]
          },
          "docs": "Using this endpoint, a customer can delete their own address through the storefront UI based on `addressId`."
        }
      ]
    }
  ],
  "bundled": true
}