# Create/Update Store Settings

POST https://services.leadconnectorhq.com/store/store-setting

Create or update store settings by altId and altType.

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** No scopes required.

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "LeadConnector API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/store/store-setting": {
      "post": {
        "summary": "Create/Update Store Settings",
        "operationId": "createupdateStoreSettings",
        "description": "Create or update store settings by altId and altType.",
        "parameters": [
          {
            "name": "Version",
            "in": "header",
            "required": true,
            "description": "API Version",
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStoreSettingDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateStoreSettingResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "Location-Access": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "CreateStoreSettingDto": {
        "type": "object",
        "properties": {
          "altId": {
            "type": "string",
            "description": "Location Id or Agency Id",
            "example": "6578278e879ad2646715ba9c"
          },
          "altType": {
            "type": "string",
            "enum": [
              "location"
            ]
          },
          "shippingOrigin": {
            "description": "Shipping origin address",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the store / company",
                    "example": "ABC Store"
                  },
                  "country": {
                    "type": "number",
                    "description": "Country code",
                    "enum": [
                      [
                        "US",
                        "CA",
                        "AF",
                        "AX",
                        "AL",
                        "DZ",
                        "AS",
                        "AD",
                        "AO",
                        "AI",
                        "AQ",
                        "AG",
                        "AR",
                        "AM",
                        "AW",
                        "AU",
                        "AT",
                        "AZ",
                        "BS",
                        "BH",
                        "BD",
                        "BB",
                        "BY",
                        "BE",
                        "BZ",
                        "BJ",
                        "BM",
                        "BT",
                        "BO",
                        "BA",
                        "BW",
                        "BV",
                        "BR",
                        "IO",
                        "BN",
                        "BG",
                        "BF",
                        "BI",
                        "KH",
                        "CM",
                        "CV",
                        "KY",
                        "CF",
                        "TD",
                        "CL",
                        "CN",
                        "CX",
                        "CC",
                        "CO",
                        "KM",
                        "CG",
                        "CD",
                        "CK",
                        "CR",
                        "CI",
                        "HR",
                        "CU",
                        "CY",
                        "CZ",
                        "DK",
                        "DJ",
                        "DM",
                        "DO",
                        "EC",
                        "EG",
                        "SV",
                        "GQ",
                        "ER",
                        "EE",
                        "ET",
                        "FK",
                        "FO",
                        "FJ",
                        "FI",
                        "FR",
                        "GF",
                        "PF",
                        "TF",
                        "GA",
                        "GM",
                        "GE",
                        "DE",
                        "GH",
                        "GI",
                        "GR",
                        "GL",
                        "GD",
                        "GP",
                        "GU",
                        "GT",
                        "GG",
                        "GN",
                        "GW",
                        "GY",
                        "HT",
                        "HM",
                        "VA",
                        "HN",
                        "HK",
                        "HU",
                        "IS",
                        "IN",
                        "ID",
                        "IR",
                        "IQ",
                        "IE",
                        "IM",
                        "IL",
                        "IT",
                        "JM",
                        "JP",
                        "JE",
                        "JO",
                        "KZ",
                        "KE",
                        "KI",
                        "KP",
                        "XK",
                        "KW",
                        "KG",
                        "LA",
                        "LV",
                        "LB",
                        "LS",
                        "LR",
                        "LY",
                        "LI",
                        "LT",
                        "LU",
                        "MO",
                        "MK",
                        "MG",
                        "MW",
                        "MY",
                        "MV",
                        "ML",
                        "MT",
                        "MH",
                        "MQ",
                        "MR",
                        "MU",
                        "YT",
                        "MX",
                        "FM",
                        "MD",
                        "MC",
                        "MN",
                        "ME",
                        "MS",
                        "MA",
                        "MZ",
                        "MM",
                        "NA",
                        "NR",
                        "NP",
                        "NL",
                        "AN",
                        "NC",
                        "NZ",
                        "NI",
                        "NE",
                        "NG",
                        "NU",
                        "NF",
                        "MP",
                        "NO",
                        "OM",
                        "PK",
                        "PW",
                        "PS",
                        "PA",
                        "PG",
                        "PY",
                        "PE",
                        "PH",
                        "PN",
                        "PL",
                        "PT",
                        "PR",
                        "QA",
                        "RE",
                        "RO",
                        "RU",
                        "RW",
                        "SH",
                        "KN",
                        "LC",
                        "MF",
                        "PM",
                        "VC",
                        "WS",
                        "SM",
                        "ST",
                        "SA",
                        "SN",
                        "RS",
                        "SC",
                        "SL",
                        "SG",
                        "SX",
                        "SK",
                        "SI",
                        "SB",
                        "SO",
                        "ZA",
                        "GS",
                        "KR",
                        "ES",
                        "LK",
                        "SD",
                        "SR",
                        "SJ",
                        "SZ",
                        "SE",
                        "CH",
                        "SY",
                        "TW",
                        "TJ",
                        "TZ",
                        "TH",
                        "TL",
                        "TG",
                        "TK",
                        "TO",
                        "TT",
                        "TN",
                        "TR",
                        "TM",
                        "TC",
                        "TV",
                        "UG",
                        "UA",
                        "AE",
                        "GB",
                        "UM",
                        "UY",
                        "UZ",
                        "VU",
                        "VE",
                        "VN",
                        "VG",
                        "VI",
                        "WF",
                        "EH",
                        "YE",
                        "ZM",
                        "ZW"
                      ]
                    ],
                    "example": "US"
                  },
                  "state": {
                    "type": "string",
                    "description": "State code",
                    "enum": [
                      "AL",
                      "AK",
                      "AS",
                      "AZ",
                      "AR",
                      "AA",
                      "AE",
                      "AP",
                      "CA",
                      "CO",
                      "CT",
                      "DE",
                      "DC",
                      "FM",
                      "FL",
                      "GA",
                      "GU",
                      "HI",
                      "ID",
                      "IL",
                      "IN",
                      "IA",
                      "KS",
                      "KY",
                      "LA",
                      "ME",
                      "MH",
                      "MD",
                      "MA",
                      "MI",
                      "MN",
                      "MS",
                      "MO",
                      "MT",
                      "NE",
                      "NV",
                      "NH",
                      "NJ",
                      "NM",
                      "NY",
                      "NC",
                      "ND",
                      "MP",
                      "OH",
                      "OK",
                      "OR",
                      "PW",
                      "PA",
                      "PR",
                      "RI",
                      "SC",
                      "SD",
                      "TN",
                      "TX",
                      "UT",
                      "VT",
                      "VI",
                      "VA",
                      "WA",
                      "WV",
                      "WI",
                      "WY",
                      "AB",
                      "BC",
                      "MB",
                      "NB",
                      "NL",
                      "NT",
                      "NS",
                      "NU",
                      "ON",
                      "PE",
                      "QC",
                      "SK",
                      "YT",
                      "BA",
                      "CT",
                      "CC",
                      "CH",
                      "CB",
                      "CN",
                      "ER",
                      "FO",
                      "JY",
                      "LP",
                      "LR",
                      "MZ",
                      "MN",
                      "NQ",
                      "RN",
                      "SA",
                      "SJ",
                      "SL",
                      "SC",
                      "SF",
                      "SE",
                      "TF",
                      "TU",
                      "ACT",
                      "NSW",
                      "NT",
                      "QLD",
                      "SA",
                      "TAS",
                      "VIC",
                      "WA",
                      "AC",
                      "AL",
                      "AM",
                      "AP",
                      "BA",
                      "CE",
                      "DF",
                      "ES",
                      "GO",
                      "MA",
                      "MG",
                      "MS",
                      "MT",
                      "PA",
                      "PB",
                      "PE",
                      "PI",
                      "PR",
                      "RJ",
                      "RN",
                      "RO",
                      "RR",
                      "RS",
                      "SC",
                      "SE",
                      "SP",
                      "TO",
                      "AI",
                      "AN",
                      "AP",
                      "AT",
                      "BI",
                      "CO",
                      "AR",
                      "LI",
                      "LL",
                      "LR",
                      "MA",
                      "ML",
                      "RM",
                      "TA",
                      "VS",
                      "NB",
                      "AMA",
                      "ANT",
                      "ARA",
                      "ATL",
                      "BOL",
                      "BOY",
                      "CAL",
                      "CAQ",
                      "CAS",
                      "CAU",
                      "CES",
                      "CHO",
                      "CUN",
                      "COR",
                      "GUA",
                      "GUV",
                      "HUI",
                      "LAG",
                      "MAG",
                      "MET",
                      "NAR",
                      "NSA",
                      "PUT",
                      "QUI",
                      "RIS",
                      "SAP",
                      "SAN",
                      "SUC",
                      "TOL",
                      "VAC",
                      "VAU",
                      "VID",
                      "CR-A",
                      "CR-C",
                      "CR-G",
                      "CR-H",
                      "CR-L",
                      "CR-P",
                      "CR-SJ",
                      "GT-16",
                      "GT-15",
                      "GT-04",
                      "GT-20",
                      "GT-02",
                      "GT-05",
                      "GT-01",
                      "GT-13",
                      "GT-18",
                      "GT-21",
                      "GT-22",
                      "GT-17",
                      "GT-09",
                      "GT-14",
                      "GT-11",
                      "GT-03",
                      "GT-12",
                      "GT-06",
                      "GT-07",
                      "GT-10",
                      "GT-08",
                      "GT-19",
                      "HK",
                      "KL",
                      "NT",
                      "AN",
                      "AP",
                      "AR",
                      "AS",
                      "BR",
                      "CH",
                      "CG",
                      "DN",
                      "DD",
                      "DL",
                      "GA",
                      "GJ",
                      "HR",
                      "HP",
                      "JK",
                      "JH",
                      "KA",
                      "KL",
                      "LA",
                      "LD",
                      "MP",
                      "MH",
                      "MN",
                      "ML",
                      "MZ",
                      "NL",
                      "OR",
                      "PY",
                      "PB",
                      "RJ",
                      "SK",
                      "TN",
                      "TS",
                      "TR",
                      "UP",
                      "UK",
                      "WB",
                      "CW",
                      "CN",
                      "CE",
                      "CO",
                      "DL",
                      "D",
                      "G",
                      "KY",
                      "KE",
                      "KK",
                      "LS",
                      "LM",
                      "LK",
                      "LD",
                      "LH",
                      "MO",
                      "MH",
                      "MN",
                      "OY",
                      "RN",
                      "SO",
                      "TA",
                      "WD",
                      "WH",
                      "WX",
                      "WW",
                      "AG",
                      "AL",
                      "AN",
                      "AO",
                      "AR",
                      "AP",
                      "AT",
                      "AV",
                      "BA",
                      "BT",
                      "BL",
                      "BN",
                      "BG",
                      "BI",
                      "BO",
                      "BZ",
                      "BS",
                      "BR",
                      "CA",
                      "CL",
                      "CB",
                      "CI",
                      "CE",
                      "CT",
                      "CZ",
                      "CH",
                      "CO",
                      "CS",
                      "CR",
                      "KR",
                      "CN",
                      "EN",
                      "FM",
                      "FE",
                      "FI",
                      "FG",
                      "FC",
                      "FR",
                      "GE",
                      "GO",
                      "GR",
                      "IM",
                      "IS",
                      "AQ",
                      "SP",
                      "LT",
                      "LE",
                      "LC",
                      "LI",
                      "LO",
                      "LU",
                      "MC",
                      "MN",
                      "MS",
                      "MT",
                      "VS",
                      "ME",
                      "MI",
                      "MO",
                      "MB",
                      "NA",
                      "NO",
                      "NU",
                      "OG",
                      "OT",
                      "OR",
                      "PD",
                      "PA",
                      "PR",
                      "PV",
                      "PG",
                      "PU",
                      "PE",
                      "PC",
                      "PI",
                      "PT",
                      "PN",
                      "PZ",
                      "PO",
                      "RG",
                      "RA",
                      "RC",
                      "RE",
                      "RI",
                      "RN",
                      "RM",
                      "RO",
                      "SA",
                      "SS",
                      "SV",
                      "SI",
                      "SR",
                      "SO",
                      "TA",
                      "TE",
                      "TR",
                      "TO",
                      "TP",
                      "TN",
                      "TV",
                      "TS",
                      "UD",
                      "VA",
                      "VE",
                      "VB",
                      "VC",
                      "VR",
                      "VV",
                      "VI",
                      "VT",
                      "JP-23",
                      "JP-05",
                      "JP-02",
                      "JP-12",
                      "JP-38",
                      "JP-18",
                      "JP-40",
                      "JP-07",
                      "JP-21",
                      "JP-10",
                      "JP-34",
                      "JP-01",
                      "JP-28",
                      "JP-08",
                      "JP-17",
                      "JP-03",
                      "JP-37",
                      "JP-46",
                      "JP-14",
                      "JP-39",
                      "JP-43",
                      "JP-26",
                      "JP-24",
                      "JP-04",
                      "JP-45",
                      "JP-20",
                      "JP-42",
                      "JP-29",
                      "JP-15",
                      "JP-44",
                      "JP-33",
                      "JP-47",
                      "JP-27",
                      "JP-41",
                      "JP-11",
                      "JP-25",
                      "JP-32",
                      "JP-22",
                      "JP-09",
                      "JP-36",
                      "JP-13",
                      "JP-31",
                      "JP-16",
                      "JP-30",
                      "JP-06",
                      "JP-35",
                      "JP-19",
                      "JHR",
                      "KDH",
                      "KTN",
                      "KUL",
                      "LBN",
                      "MLK",
                      "NSN",
                      "PHG",
                      "PNG",
                      "PRK",
                      "PLS",
                      "PJY",
                      "SBH",
                      "SWK",
                      "SGR",
                      "TRG",
                      "AGU",
                      "BCN",
                      "BCS",
                      "CAM",
                      "CHP",
                      "CHH",
                      "CMX",
                      "COA",
                      "COL",
                      "DUR",
                      "GUA",
                      "GRO",
                      "HID",
                      "JAL",
                      "MIC",
                      "MOR",
                      "MEX",
                      "NAY",
                      "NLE",
                      "OAX",
                      "PUE",
                      "QUE",
                      "ROO",
                      "SLP",
                      "SIN",
                      "SON",
                      "TAB",
                      "TAM",
                      "TLA",
                      "VER",
                      "YUC",
                      "ZAC",
                      "AUK",
                      "BOP",
                      "CAN",
                      "CIT",
                      "GIS",
                      "HKB",
                      "MWT",
                      "MBH",
                      "NSN",
                      "NTL",
                      "OTA",
                      "STL",
                      "TKI",
                      "TAS",
                      "WKO",
                      "WGN",
                      "WTC",
                      "JK",
                      "BA",
                      "GB",
                      "IS",
                      "KP",
                      "PB",
                      "SD",
                      "AMA",
                      "ANC",
                      "APU",
                      "ARE",
                      "AYA",
                      "CAJ",
                      "CAL",
                      "CUS",
                      "HUV",
                      "HUC",
                      "ICA",
                      "JUN",
                      "LAL",
                      "LAM",
                      "LIM",
                      "LOR",
                      "MDD",
                      "MOQ",
                      "PAS",
                      "PIU",
                      "PUN",
                      "SAM",
                      "TAC",
                      "TUM",
                      "UCA",
                      "PH-ABR",
                      "PH-AGN",
                      "PH-AGS",
                      "PH-AKL",
                      "PH-ALB",
                      "PH-ANT",
                      "PH-APA",
                      "PH-AUR",
                      "PH-BAS",
                      "PH-BAN",
                      "PH-BTN",
                      "PH-BTG",
                      "PH-BEN",
                      "PH-BIL",
                      "PH-BOH",
                      "PH-BUK",
                      "PH-BUL",
                      "PH-CAG",
                      "PH-CAN",
                      "PH-CAS",
                      "PH-CAM",
                      "PH-CAP",
                      "PH-CAT",
                      "PH-CAV",
                      "PH-CEB",
                      "PH-NCO",
                      "PH-DAO",
                      "PH-DAV",
                      "PH-DAS",
                      "PH-EAS",
                      "PH-GUI",
                      "PH-IFU",
                      "PH-ILN",
                      "PH-ILS",
                      "PH-ILI",
                      "PH-ISA",
                      "PH-KAL",
                      "PH-LUN",
                      "PH-LAG",
                      "PH-LAN",
                      "PH-LAS",
                      "PH-LEY",
                      "PH-MAG",
                      "PH-MAD",
                      "PH-MAS",
                      "PH-00",
                      "PH-MSC",
                      "PH-MSR",
                      "PH-MOU",
                      "PH-NEC",
                      "PH-NER",
                      "PH-NSA",
                      "PH-NUE",
                      "PH-NUV",
                      "PH-MDC",
                      "PH-MDR",
                      "PH-PLW",
                      "PH-PAM",
                      "PH-PAN",
                      "PH-QUE",
                      "PH-QUI",
                      "PH-RIZ",
                      "PH-ROM",
                      "PH-WSA",
                      "PH-SAR",
                      "PH-SIG",
                      "PH-SOR",
                      "PH-SCO",
                      "PH-SLE",
                      "PH-SUK",
                      "PH-SLU",
                      "PH-SUN",
                      "PH-SUR",
                      "PH-TAR",
                      "PH-TAW",
                      "PH-ZMB",
                      "PH-ZAN",
                      "PH-ZAS",
                      "PH-ZSI",
                      "PT-20",
                      "PT-01",
                      "PT-02",
                      "PT-03",
                      "PT-04",
                      "PT-05",
                      "PT-06",
                      "PT-07",
                      "PT-08",
                      "PT-09",
                      "PT-10",
                      "PT-11",
                      "PT-30",
                      "PT-12",
                      "PT-13",
                      "PT-14",
                      "PT-15",
                      "PT-16",
                      "PT-17",
                      "PT-18",
                      "AB",
                      "AR",
                      "AG",
                      "BC",
                      "BH",
                      "BN",
                      "BT",
                      "BR",
                      "BV",
                      "B",
                      "BZ",
                      "CL",
                      "CS",
                      "CJ",
                      "CT",
                      "CV",
                      "DB",
                      "DJ",
                      "GL",
                      "GR",
                      "GJ",
                      "HR",
                      "HD",
                      "IL",
                      "IS",
                      "IF",
                      "MM",
                      "MH",
                      "MS",
                      "NT",
                      "OT",
                      "PH",
                      "SJ",
                      "SM",
                      "SB",
                      "SV",
                      "TR",
                      "TM",
                      "TL",
                      "VL",
                      "VS",
                      "VN",
                      "KR-26",
                      "KR-43",
                      "KR-44",
                      "KR-27",
                      "KR-30",
                      "KR-42",
                      "KR-29",
                      "KR-47",
                      "KR-41",
                      "KR-48",
                      "KR-28",
                      "KR-49",
                      "KR-45",
                      "KR-46",
                      "KR-50",
                      "KR-11",
                      "KR-31",
                      "C",
                      "VI",
                      "AB",
                      "A",
                      "AL",
                      "O",
                      "AV",
                      "BA",
                      "PM",
                      "B",
                      "BU",
                      "CC",
                      "CA",
                      "S",
                      "CS",
                      "CE",
                      "CR",
                      "CO",
                      "CU",
                      "GI",
                      "GR",
                      "GU",
                      "SS",
                      "H",
                      "HU",
                      "J",
                      "LO",
                      "GC",
                      "LE",
                      "L",
                      "LU",
                      "M",
                      "MA",
                      "ML",
                      "MU",
                      "NA",
                      "OR",
                      "P",
                      "PO",
                      "SA",
                      "TF",
                      "SG",
                      "SE",
                      "SO",
                      "T",
                      "TE",
                      "TO",
                      "V",
                      "VA",
                      "BI",
                      "ZA",
                      "Z",
                      "AZ",
                      "AJ",
                      "DU",
                      "FU",
                      "RK",
                      "SH",
                      "UQ",
                      "BFP",
                      "ENG",
                      "NIR",
                      "SCT",
                      "WLS",
                      "AR",
                      "CA",
                      "CL",
                      "CO",
                      "DU",
                      "FS",
                      "FD",
                      "LA",
                      "MA",
                      "MO",
                      "PA",
                      "RN",
                      "RV",
                      "RO",
                      "SA",
                      "SJ",
                      "SO",
                      "TA",
                      "TT"
                    ],
                    "example": "VA"
                  },
                  "city": {
                    "type": "string",
                    "description": "City name",
                    "example": "Tokyo"
                  },
                  "street1": {
                    "type": "string",
                    "description": "Street address line 1",
                    "example": "Street 1"
                  },
                  "street2": {
                    "type": "string",
                    "description": "Street address line 2",
                    "example": "Street 2"
                  },
                  "zip": {
                    "type": "string",
                    "description": "Zip code",
                    "example": "674561"
                  },
                  "phone": {
                    "type": "string",
                    "description": "Business Phone Number",
                    "example": "+1-214-559-6993"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email",
                    "example": "john@deo.com"
                  }
                },
                "required": [
                  "name",
                  "country",
                  "city",
                  "street1",
                  "zip"
                ],
                "title": "StoreShippingOriginDto"
              }
            ]
          },
          "storeOrderNotification": {
            "description": "Store order notification email",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Store order notification enabled",
                    "example": true
                  },
                  "subject": {
                    "type": "string",
                    "description": "Store order email subject",
                    "example": "Your order is placed !"
                  },
                  "emailTemplateId": {
                    "type": "string",
                    "description": "Email Template Id",
                    "example": "6788d542f0462ffd6bc29bb9"
                  },
                  "defaultEmailTemplateId": {
                    "type": "string",
                    "description": "Default Email Template Id",
                    "example": "6788d542f0462ffd6bc29bb9"
                  }
                },
                "required": [
                  "enabled",
                  "subject",
                  "emailTemplateId",
                  "defaultEmailTemplateId"
                ],
                "title": "StoreOrderNotificationDto"
              }
            ]
          },
          "storeOrderFulfillmentNotification": {
            "description": "Store order fulfillment notification email",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "description": "Store order fulfillment notification enabled",
                    "example": true
                  },
                  "subject": {
                    "type": "string",
                    "description": "Store order fulfillment email subject",
                    "example": "Order fulfilled"
                  },
                  "emailTemplateId": {
                    "type": "string",
                    "description": "Email Template Id",
                    "example": "6788d542f0462ffd6bc29bb9"
                  },
                  "defaultEmailTemplateId": {
                    "type": "string",
                    "description": "Default Email Template Id",
                    "example": "6788d542f0462ffd6bc29bb9"
                  }
                },
                "required": [
                  "enabled",
                  "subject",
                  "emailTemplateId",
                  "defaultEmailTemplateId"
                ],
                "title": "StoreOrderFulfillmentNotificationDto"
              }
            ]
          }
        },
        "required": [
          "altId",
          "altType",
          "shippingOrigin"
        ],
        "title": "CreateStoreSettingDto"
      },
      "CreateStoreSettingResponseDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean",
            "description": "Status of api action",
            "example": true
          },
          "message": {
            "type": "string",
            "description": "Success message",
            "example": "Successfully created"
          },
          "data": {
            "description": "Shipping carrier data",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "altId": {
                    "type": "string",
                    "description": "Location Id or Agency Id",
                    "example": "6578278e879ad2646715ba9c"
                  },
                  "altType": {
                    "type": "string",
                    "enum": [
                      "location"
                    ]
                  },
                  "shippingOrigin": {
                    "description": "Shipping origin address",
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Name of the store / company",
                            "example": "ABC Store"
                          },
                          "country": {
                            "type": "number",
                            "description": "Country code",
                            "enum": [
                              [
                                "US",
                                "CA",
                                "AF",
                                "AX",
                                "AL",
                                "DZ",
                                "AS",
                                "AD",
                                "AO",
                                "AI",
                                "AQ",
                                "AG",
                                "AR",
                                "AM",
                                "AW",
                                "AU",
                                "AT",
                                "AZ",
                                "BS",
                                "BH",
                                "BD",
                                "BB",
                                "BY",
                                "BE",
                                "BZ",
                                "BJ",
                                "BM",
                                "BT",
                                "BO",
                                "BA",
                                "BW",
                                "BV",
                                "BR",
                                "IO",
                                "BN",
                                "BG",
                                "BF",
                                "BI",
                                "KH",
                                "CM",
                                "CV",
                                "KY",
                                "CF",
                                "TD",
                                "CL",
                                "CN",
                                "CX",
                                "CC",
                                "CO",
                                "KM",
                                "CG",
                                "CD",
                                "CK",
                                "CR",
                                "CI",
                                "HR",
                                "CU",
                                "CY",
                                "CZ",
                                "DK",
                                "DJ",
                                "DM",
                                "DO",
                                "EC",
                                "EG",
                                "SV",
                                "GQ",
                                "ER",
                                "EE",
                                "ET",
                                "FK",
                                "FO",
                                "FJ",
                                "FI",
                                "FR",
                                "GF",
                                "PF",
                                "TF",
                                "GA",
                                "GM",
                                "GE",
                                "DE",
                                "GH",
                                "GI",
                                "GR",
                                "GL",
                                "GD",
                                "GP",
                                "GU",
                                "GT",
                                "GG",
                                "GN",
                                "GW",
                                "GY",
                                "HT",
                                "HM",
                                "VA",
                                "HN",
                                "HK",
                                "HU",
                                "IS",
                                "IN",
                                "ID",
                                "IR",
                                "IQ",
                                "IE",
                                "IM",
                                "IL",
                                "IT",
                                "JM",
                                "JP",
                                "JE",
                                "JO",
                                "KZ",
                                "KE",
                                "KI",
                                "KP",
                                "XK",
                                "KW",
                                "KG",
                                "LA",
                                "LV",
                                "LB",
                                "LS",
                                "LR",
                                "LY",
                                "LI",
                                "LT",
                                "LU",
                                "MO",
                                "MK",
                                "MG",
                                "MW",
                                "MY",
                                "MV",
                                "ML",
                                "MT",
                                "MH",
                                "MQ",
                                "MR",
                                "MU",
                                "YT",
                                "MX",
                                "FM",
                                "MD",
                                "MC",
                                "MN",
                                "ME",
                                "MS",
                                "MA",
                                "MZ",
                                "MM",
                                "NA",
                                "NR",
                                "NP",
                                "NL",
                                "AN",
                                "NC",
                                "NZ",
                                "NI",
                                "NE",
                                "NG",
                                "NU",
                                "NF",
                                "MP",
                                "NO",
                                "OM",
                                "PK",
                                "PW",
                                "PS",
                                "PA",
                                "PG",
                                "PY",
                                "PE",
                                "PH",
                                "PN",
                                "PL",
                                "PT",
                                "PR",
                                "QA",
                                "RE",
                                "RO",
                                "RU",
                                "RW",
                                "SH",
                                "KN",
                                "LC",
                                "MF",
                                "PM",
                                "VC",
                                "WS",
                                "SM",
                                "ST",
                                "SA",
                                "SN",
                                "RS",
                                "SC",
                                "SL",
                                "SG",
                                "SX",
                                "SK",
                                "SI",
                                "SB",
                                "SO",
                                "ZA",
                                "GS",
                                "KR",
                                "ES",
                                "LK",
                                "SD",
                                "SR",
                                "SJ",
                                "SZ",
                                "SE",
                                "CH",
                                "SY",
                                "TW",
                                "TJ",
                                "TZ",
                                "TH",
                                "TL",
                                "TG",
                                "TK",
                                "TO",
                                "TT",
                                "TN",
                                "TR",
                                "TM",
                                "TC",
                                "TV",
                                "UG",
                                "UA",
                                "AE",
                                "GB",
                                "UM",
                                "UY",
                                "UZ",
                                "VU",
                                "VE",
                                "VN",
                                "VG",
                                "VI",
                                "WF",
                                "EH",
                                "YE",
                                "ZM",
                                "ZW"
                              ]
                            ],
                            "example": "US"
                          },
                          "state": {
                            "type": "string",
                            "description": "State code",
                            "enum": [
                              "AL",
                              "AK",
                              "AS",
                              "AZ",
                              "AR",
                              "AA",
                              "AE",
                              "AP",
                              "CA",
                              "CO",
                              "CT",
                              "DE",
                              "DC",
                              "FM",
                              "FL",
                              "GA",
                              "GU",
                              "HI",
                              "ID",
                              "IL",
                              "IN",
                              "IA",
                              "KS",
                              "KY",
                              "LA",
                              "ME",
                              "MH",
                              "MD",
                              "MA",
                              "MI",
                              "MN",
                              "MS",
                              "MO",
                              "MT",
                              "NE",
                              "NV",
                              "NH",
                              "NJ",
                              "NM",
                              "NY",
                              "NC",
                              "ND",
                              "MP",
                              "OH",
                              "OK",
                              "OR",
                              "PW",
                              "PA",
                              "PR",
                              "RI",
                              "SC",
                              "SD",
                              "TN",
                              "TX",
                              "UT",
                              "VT",
                              "VI",
                              "VA",
                              "WA",
                              "WV",
                              "WI",
                              "WY",
                              "AB",
                              "BC",
                              "MB",
                              "NB",
                              "NL",
                              "NT",
                              "NS",
                              "NU",
                              "ON",
                              "PE",
                              "QC",
                              "SK",
                              "YT",
                              "BA",
                              "CT",
                              "CC",
                              "CH",
                              "CB",
                              "CN",
                              "ER",
                              "FO",
                              "JY",
                              "LP",
                              "LR",
                              "MZ",
                              "MN",
                              "NQ",
                              "RN",
                              "SA",
                              "SJ",
                              "SL",
                              "SC",
                              "SF",
                              "SE",
                              "TF",
                              "TU",
                              "ACT",
                              "NSW",
                              "NT",
                              "QLD",
                              "SA",
                              "TAS",
                              "VIC",
                              "WA",
                              "AC",
                              "AL",
                              "AM",
                              "AP",
                              "BA",
                              "CE",
                              "DF",
                              "ES",
                              "GO",
                              "MA",
                              "MG",
                              "MS",
                              "MT",
                              "PA",
                              "PB",
                              "PE",
                              "PI",
                              "PR",
                              "RJ",
                              "RN",
                              "RO",
                              "RR",
                              "RS",
                              "SC",
                              "SE",
                              "SP",
                              "TO",
                              "AI",
                              "AN",
                              "AP",
                              "AT",
                              "BI",
                              "CO",
                              "AR",
                              "LI",
                              "LL",
                              "LR",
                              "MA",
                              "ML",
                              "RM",
                              "TA",
                              "VS",
                              "NB",
                              "AMA",
                              "ANT",
                              "ARA",
                              "ATL",
                              "BOL",
                              "BOY",
                              "CAL",
                              "CAQ",
                              "CAS",
                              "CAU",
                              "CES",
                              "CHO",
                              "CUN",
                              "COR",
                              "GUA",
                              "GUV",
                              "HUI",
                              "LAG",
                              "MAG",
                              "MET",
                              "NAR",
                              "NSA",
                              "PUT",
                              "QUI",
                              "RIS",
                              "SAP",
                              "SAN",
                              "SUC",
                              "TOL",
                              "VAC",
                              "VAU",
                              "VID",
                              "CR-A",
                              "CR-C",
                              "CR-G",
                              "CR-H",
                              "CR-L",
                              "CR-P",
                              "CR-SJ",
                              "GT-16",
                              "GT-15",
                              "GT-04",
                              "GT-20",
                              "GT-02",
                              "GT-05",
                              "GT-01",
                              "GT-13",
                              "GT-18",
                              "GT-21",
                              "GT-22",
                              "GT-17",
                              "GT-09",
                              "GT-14",
                              "GT-11",
                              "GT-03",
                              "GT-12",
                              "GT-06",
                              "GT-07",
                              "GT-10",
                              "GT-08",
                              "GT-19",
                              "HK",
                              "KL",
                              "NT",
                              "AN",
                              "AP",
                              "AR",
                              "AS",
                              "BR",
                              "CH",
                              "CG",
                              "DN",
                              "DD",
                              "DL",
                              "GA",
                              "GJ",
                              "HR",
                              "HP",
                              "JK",
                              "JH",
                              "KA",
                              "KL",
                              "LA",
                              "LD",
                              "MP",
                              "MH",
                              "MN",
                              "ML",
                              "MZ",
                              "NL",
                              "OR",
                              "PY",
                              "PB",
                              "RJ",
                              "SK",
                              "TN",
                              "TS",
                              "TR",
                              "UP",
                              "UK",
                              "WB",
                              "CW",
                              "CN",
                              "CE",
                              "CO",
                              "DL",
                              "D",
                              "G",
                              "KY",
                              "KE",
                              "KK",
                              "LS",
                              "LM",
                              "LK",
                              "LD",
                              "LH",
                              "MO",
                              "MH",
                              "MN",
                              "OY",
                              "RN",
                              "SO",
                              "TA",
                              "WD",
                              "WH",
                              "WX",
                              "WW",
                              "AG",
                              "AL",
                              "AN",
                              "AO",
                              "AR",
                              "AP",
                              "AT",
                              "AV",
                              "BA",
                              "BT",
                              "BL",
                              "BN",
                              "BG",
                              "BI",
                              "BO",
                              "BZ",
                              "BS",
                              "BR",
                              "CA",
                              "CL",
                              "CB",
                              "CI",
                              "CE",
                              "CT",
                              "CZ",
                              "CH",
                              "CO",
                              "CS",
                              "CR",
                              "KR",
                              "CN",
                              "EN",
                              "FM",
                              "FE",
                              "FI",
                              "FG",
                              "FC",
                              "FR",
                              "GE",
                              "GO",
                              "GR",
                              "IM",
                              "IS",
                              "AQ",
                              "SP",
                              "LT",
                              "LE",
                              "LC",
                              "LI",
                              "LO",
                              "LU",
                              "MC",
                              "MN",
                              "MS",
                              "MT",
                              "VS",
                              "ME",
                              "MI",
                              "MO",
                              "MB",
                              "NA",
                              "NO",
                              "NU",
                              "OG",
                              "OT",
                              "OR",
                              "PD",
                              "PA",
                              "PR",
                              "PV",
                              "PG",
                              "PU",
                              "PE",
                              "PC",
                              "PI",
                              "PT",
                              "PN",
                              "PZ",
                              "PO",
                              "RG",
                              "RA",
                              "RC",
                              "RE",
                              "RI",
                              "RN",
                              "RM",
                              "RO",
                              "SA",
                              "SS",
                              "SV",
                              "SI",
                              "SR",
                              "SO",
                              "TA",
                              "TE",
                              "TR",
                              "TO",
                              "TP",
                              "TN",
                              "TV",
                              "TS",
                              "UD",
                              "VA",
                              "VE",
                              "VB",
                              "VC",
                              "VR",
                              "VV",
                              "VI",
                              "VT",
                              "JP-23",
                              "JP-05",
                              "JP-02",
                              "JP-12",
                              "JP-38",
                              "JP-18",
                              "JP-40",
                              "JP-07",
                              "JP-21",
                              "JP-10",
                              "JP-34",
                              "JP-01",
                              "JP-28",
                              "JP-08",
                              "JP-17",
                              "JP-03",
                              "JP-37",
                              "JP-46",
                              "JP-14",
                              "JP-39",
                              "JP-43",
                              "JP-26",
                              "JP-24",
                              "JP-04",
                              "JP-45",
                              "JP-20",
                              "JP-42",
                              "JP-29",
                              "JP-15",
                              "JP-44",
                              "JP-33",
                              "JP-47",
                              "JP-27",
                              "JP-41",
                              "JP-11",
                              "JP-25",
                              "JP-32",
                              "JP-22",
                              "JP-09",
                              "JP-36",
                              "JP-13",
                              "JP-31",
                              "JP-16",
                              "JP-30",
                              "JP-06",
                              "JP-35",
                              "JP-19",
                              "JHR",
                              "KDH",
                              "KTN",
                              "KUL",
                              "LBN",
                              "MLK",
                              "NSN",
                              "PHG",
                              "PNG",
                              "PRK",
                              "PLS",
                              "PJY",
                              "SBH",
                              "SWK",
                              "SGR",
                              "TRG",
                              "AGU",
                              "BCN",
                              "BCS",
                              "CAM",
                              "CHP",
                              "CHH",
                              "CMX",
                              "COA",
                              "COL",
                              "DUR",
                              "GUA",
                              "GRO",
                              "HID",
                              "JAL",
                              "MIC",
                              "MOR",
                              "MEX",
                              "NAY",
                              "NLE",
                              "OAX",
                              "PUE",
                              "QUE",
                              "ROO",
                              "SLP",
                              "SIN",
                              "SON",
                              "TAB",
                              "TAM",
                              "TLA",
                              "VER",
                              "YUC",
                              "ZAC",
                              "AUK",
                              "BOP",
                              "CAN",
                              "CIT",
                              "GIS",
                              "HKB",
                              "MWT",
                              "MBH",
                              "NSN",
                              "NTL",
                              "OTA",
                              "STL",
                              "TKI",
                              "TAS",
                              "WKO",
                              "WGN",
                              "WTC",
                              "JK",
                              "BA",
                              "GB",
                              "IS",
                              "KP",
                              "PB",
                              "SD",
                              "AMA",
                              "ANC",
                              "APU",
                              "ARE",
                              "AYA",
                              "CAJ",
                              "CAL",
                              "CUS",
                              "HUV",
                              "HUC",
                              "ICA",
                              "JUN",
                              "LAL",
                              "LAM",
                              "LIM",
                              "LOR",
                              "MDD",
                              "MOQ",
                              "PAS",
                              "PIU",
                              "PUN",
                              "SAM",
                              "TAC",
                              "TUM",
                              "UCA",
                              "PH-ABR",
                              "PH-AGN",
                              "PH-AGS",
                              "PH-AKL",
                              "PH-ALB",
                              "PH-ANT",
                              "PH-APA",
                              "PH-AUR",
                              "PH-BAS",
                              "PH-BAN",
                              "PH-BTN",
                              "PH-BTG",
                              "PH-BEN",
                              "PH-BIL",
                              "PH-BOH",
                              "PH-BUK",
                              "PH-BUL",
                              "PH-CAG",
                              "PH-CAN",
                              "PH-CAS",
                              "PH-CAM",
                              "PH-CAP",
                              "PH-CAT",
                              "PH-CAV",
                              "PH-CEB",
                              "PH-NCO",
                              "PH-DAO",
                              "PH-DAV",
                              "PH-DAS",
                              "PH-EAS",
                              "PH-GUI",
                              "PH-IFU",
                              "PH-ILN",
                              "PH-ILS",
                              "PH-ILI",
                              "PH-ISA",
                              "PH-KAL",
                              "PH-LUN",
                              "PH-LAG",
                              "PH-LAN",
                              "PH-LAS",
                              "PH-LEY",
                              "PH-MAG",
                              "PH-MAD",
                              "PH-MAS",
                              "PH-00",
                              "PH-MSC",
                              "PH-MSR",
                              "PH-MOU",
                              "PH-NEC",
                              "PH-NER",
                              "PH-NSA",
                              "PH-NUE",
                              "PH-NUV",
                              "PH-MDC",
                              "PH-MDR",
                              "PH-PLW",
                              "PH-PAM",
                              "PH-PAN",
                              "PH-QUE",
                              "PH-QUI",
                              "PH-RIZ",
                              "PH-ROM",
                              "PH-WSA",
                              "PH-SAR",
                              "PH-SIG",
                              "PH-SOR",
                              "PH-SCO",
                              "PH-SLE",
                              "PH-SUK",
                              "PH-SLU",
                              "PH-SUN",
                              "PH-SUR",
                              "PH-TAR",
                              "PH-TAW",
                              "PH-ZMB",
                              "PH-ZAN",
                              "PH-ZAS",
                              "PH-ZSI",
                              "PT-20",
                              "PT-01",
                              "PT-02",
                              "PT-03",
                              "PT-04",
                              "PT-05",
                              "PT-06",
                              "PT-07",
                              "PT-08",
                              "PT-09",
                              "PT-10",
                              "PT-11",
                              "PT-30",
                              "PT-12",
                              "PT-13",
                              "PT-14",
                              "PT-15",
                              "PT-16",
                              "PT-17",
                              "PT-18",
                              "AB",
                              "AR",
                              "AG",
                              "BC",
                              "BH",
                              "BN",
                              "BT",
                              "BR",
                              "BV",
                              "B",
                              "BZ",
                              "CL",
                              "CS",
                              "CJ",
                              "CT",
                              "CV",
                              "DB",
                              "DJ",
                              "GL",
                              "GR",
                              "GJ",
                              "HR",
                              "HD",
                              "IL",
                              "IS",
                              "IF",
                              "MM",
                              "MH",
                              "MS",
                              "NT",
                              "OT",
                              "PH",
                              "SJ",
                              "SM",
                              "SB",
                              "SV",
                              "TR",
                              "TM",
                              "TL",
                              "VL",
                              "VS",
                              "VN",
                              "KR-26",
                              "KR-43",
                              "KR-44",
                              "KR-27",
                              "KR-30",
                              "KR-42",
                              "KR-29",
                              "KR-47",
                              "KR-41",
                              "KR-48",
                              "KR-28",
                              "KR-49",
                              "KR-45",
                              "KR-46",
                              "KR-50",
                              "KR-11",
                              "KR-31",
                              "C",
                              "VI",
                              "AB",
                              "A",
                              "AL",
                              "O",
                              "AV",
                              "BA",
                              "PM",
                              "B",
                              "BU",
                              "CC",
                              "CA",
                              "S",
                              "CS",
                              "CE",
                              "CR",
                              "CO",
                              "CU",
                              "GI",
                              "GR",
                              "GU",
                              "SS",
                              "H",
                              "HU",
                              "J",
                              "LO",
                              "GC",
                              "LE",
                              "L",
                              "LU",
                              "M",
                              "MA",
                              "ML",
                              "MU",
                              "NA",
                              "OR",
                              "P",
                              "PO",
                              "SA",
                              "TF",
                              "SG",
                              "SE",
                              "SO",
                              "T",
                              "TE",
                              "TO",
                              "V",
                              "VA",
                              "BI",
                              "ZA",
                              "Z",
                              "AZ",
                              "AJ",
                              "DU",
                              "FU",
                              "RK",
                              "SH",
                              "UQ",
                              "BFP",
                              "ENG",
                              "NIR",
                              "SCT",
                              "WLS",
                              "AR",
                              "CA",
                              "CL",
                              "CO",
                              "DU",
                              "FS",
                              "FD",
                              "LA",
                              "MA",
                              "MO",
                              "PA",
                              "RN",
                              "RV",
                              "RO",
                              "SA",
                              "SJ",
                              "SO",
                              "TA",
                              "TT"
                            ],
                            "example": "VA"
                          },
                          "city": {
                            "type": "string",
                            "description": "City name",
                            "example": "Tokyo"
                          },
                          "street1": {
                            "type": "string",
                            "description": "Street address line 1",
                            "example": "Street 1"
                          },
                          "street2": {
                            "type": "string",
                            "description": "Street address line 2",
                            "example": "Street 2"
                          },
                          "zip": {
                            "type": "string",
                            "description": "Zip code",
                            "example": "674561"
                          },
                          "phone": {
                            "type": "string",
                            "description": "Business Phone Number",
                            "example": "+1-214-559-6993"
                          },
                          "email": {
                            "type": "string",
                            "description": "Email",
                            "example": "john@deo.com"
                          }
                        },
                        "required": [
                          "name",
                          "country",
                          "city",
                          "street1",
                          "zip"
                        ],
                        "title": "StoreShippingOriginDto"
                      }
                    ]
                  },
                  "storeOrderNotification": {
                    "description": "Store order notification email",
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Store order notification enabled",
                            "example": true
                          },
                          "subject": {
                            "type": "string",
                            "description": "Store order email subject",
                            "example": "Your order is placed !"
                          },
                          "emailTemplateId": {
                            "type": "string",
                            "description": "Email Template Id",
                            "example": "6788d542f0462ffd6bc29bb9"
                          },
                          "defaultEmailTemplateId": {
                            "type": "string",
                            "description": "Default Email Template Id",
                            "example": "6788d542f0462ffd6bc29bb9"
                          }
                        },
                        "required": [
                          "enabled",
                          "subject",
                          "emailTemplateId",
                          "defaultEmailTemplateId"
                        ],
                        "title": "StoreOrderNotificationDto"
                      }
                    ]
                  },
                  "storeOrderFulfillmentNotification": {
                    "description": "Store order fulfillment notification email",
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "description": "Store order fulfillment notification enabled",
                            "example": true
                          },
                          "subject": {
                            "type": "string",
                            "description": "Store order fulfillment email subject",
                            "example": "Order fulfilled"
                          },
                          "emailTemplateId": {
                            "type": "string",
                            "description": "Email Template Id",
                            "example": "6788d542f0462ffd6bc29bb9"
                          },
                          "defaultEmailTemplateId": {
                            "type": "string",
                            "description": "Default Email Template Id",
                            "example": "6788d542f0462ffd6bc29bb9"
                          }
                        },
                        "required": [
                          "enabled",
                          "subject",
                          "emailTemplateId",
                          "defaultEmailTemplateId"
                        ],
                        "title": "StoreOrderFulfillmentNotificationDto"
                      }
                    ]
                  },
                  "_id": {
                    "type": "string",
                    "description": "The unique identifier for the settings.",
                    "example": "655b33a82209e60b6adb87a5"
                  },
                  "createdAt": {
                    "type": "string",
                    "description": "created at",
                    "example": "2023-12-12T09:27:42.355Z"
                  },
                  "updatedAt": {
                    "type": "string",
                    "description": "updated at",
                    "example": "2023-12-12T09:27:42.355Z"
                  }
                },
                "required": [
                  "altId",
                  "altType",
                  "shippingOrigin",
                  "_id",
                  "createdAt",
                  "updatedAt"
                ],
                "title": "StoreSettingSchema"
              }
            ]
          }
        },
        "required": [
          "status",
          "data"
        ],
        "title": "CreateStoreSettingResponseDto"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X POST 'https://services.leadconnectorhq.com/store/store-setting' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "altId": "6578278e879ad2646715ba9c",
  "shippingOrigin": {
    "name": "ABC Store",
    "country": "US",
    "state": "VA",
    "city": "Tokyo",
    "street1": "Street 1",
    "street2": "Street 2",
    "zip": "674561",
    "phone": "+1-214-559-6993",
    "email": "john@deo.com"
  },
  "storeOrderNotification": {
    "enabled": true,
    "subject": "Your order is placed !",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  },
  "storeOrderFulfillmentNotification": {
    "enabled": true,
    "subject": "Order fulfilled",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  }
}'
```

**Node.js**

```javascript
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "altId": "6578278e879ad2646715ba9c",
      "shippingOrigin": {
        "name": "ABC Store",
        "country": "US",
        "state": "VA",
        "city": "Tokyo",
        "street1": "Street 1",
        "street2": "Street 2",
        "zip": "674561",
        "phone": "+1-214-559-6993",
        "email": "john@deo.com"
      },
      "storeOrderNotification": {
        "enabled": true,
        "subject": "Your order is placed !",
        "emailTemplateId": "6788d542f0462ffd6bc29bb9",
        "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
      },
      "storeOrderFulfillmentNotification": {
        "enabled": true,
        "subject": "Order fulfilled",
        "emailTemplateId": "6788d542f0462ffd6bc29bb9",
        "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
      }
  })
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/store/store-setting', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/store/store-setting"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

payload = {
    "altId": "6578278e879ad2646715ba9c",
    "shippingOrigin": {
        "name": "ABC Store",
        "country": "US",
        "state": "VA",
        "city": "Tokyo",
        "street1": "Street 1",
        "street2": "Street 2",
        "zip": "674561",
        "phone": "+1-214-559-6993",
        "email": "john@deo.com"
    },
    "storeOrderNotification": {
        "enabled": true,
        "subject": "Your order is placed !",
        "emailTemplateId": "6788d542f0462ffd6bc29bb9",
        "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
    },
    "storeOrderFulfillmentNotification": {
        "enabled": true,
        "subject": "Order fulfilled",
        "emailTemplateId": "6788d542f0462ffd6bc29bb9",
        "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
    }
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/store/store-setting',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => '{
  "altId": "6578278e879ad2646715ba9c",
  "shippingOrigin": {
    "name": "ABC Store",
    "country": "US",
    "state": "VA",
    "city": "Tokyo",
    "street1": "Street 1",
    "street2": "Street 2",
    "zip": "674561",
    "phone": "+1-214-559-6993",
    "email": "john@deo.com"
  },
  "storeOrderNotification": {
    "enabled": true,
    "subject": "Your order is placed !",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  },
  "storeOrderFulfillmentNotification": {
    "enabled": true,
    "subject": "Order fulfilled",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  }
}',
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .post("https://services.leadconnectorhq.com/store/store-setting")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .header("Content-Type", "application/json")
  .body("{\"altId\":\"6578278e879ad2646715ba9c\",\"shippingOrigin\":{\"name\":\"ABC Store\",\"country\":\"US\",\"state\":\"VA\",\"city\":\"Tokyo\",\"street1\":\"Street 1\",\"street2\":\"Street 2\",\"zip\":\"674561\",\"phone\":\"+1-214-559-6993\",\"email\":\"john@deo.com\"},\"storeOrderNotification\":{\"enabled\":true,\"subject\":\"Your order is placed !\",\"emailTemplateId\":\"6788d542f0462ffd6bc29bb9\",\"defaultEmailTemplateId\":\"6788d542f0462ffd6bc29bb9\"},\"storeOrderFulfillmentNotification\":{\"enabled\":true,\"subject\":\"Order fulfilled\",\"emailTemplateId\":\"6788d542f0462ffd6bc29bb9\",\"defaultEmailTemplateId\":\"6788d542f0462ffd6bc29bb9\"}}")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
  "strings"
)

func main() {
  url := "https://services.leadconnectorhq.com/store/store-setting"
  payload := strings.NewReader(`{
  "altId": "6578278e879ad2646715ba9c",
  "shippingOrigin": {
    "name": "ABC Store",
    "country": "US",
    "state": "VA",
    "city": "Tokyo",
    "street1": "Street 1",
    "street2": "Street 2",
    "zip": "674561",
    "phone": "+1-214-559-6993",
    "email": "john@deo.com"
  },
  "storeOrderNotification": {
    "enabled": true,
    "subject": "Your order is placed !",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  },
  "storeOrderFulfillmentNotification": {
    "enabled": true,
    "subject": "Order fulfilled",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  }
}`)
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/store/store-setting")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"
request["Content-Type"] = "application/json"
request.body = '{
  "altId": "6578278e879ad2646715ba9c",
  "shippingOrigin": {
    "name": "ABC Store",
    "country": "US",
    "state": "VA",
    "city": "Tokyo",
    "street1": "Street 1",
    "street2": "Street 2",
    "zip": "674561",
    "phone": "+1-214-559-6993",
    "email": "john@deo.com"
  },
  "storeOrderNotification": {
    "enabled": true,
    "subject": "Your order is placed !",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  },
  "storeOrderFulfillmentNotification": {
    "enabled": true,
    "subject": "Order fulfilled",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  }
}'

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$body = '{
  "altId": "6578278e879ad2646715ba9c",
  "shippingOrigin": {
    "name": "ABC Store",
    "country": "US",
    "state": "VA",
    "city": "Tokyo",
    "street1": "Street 1",
    "street2": "Street 2",
    "zip": "674561",
    "phone": "+1-214-559-6993",
    "email": "john@deo.com"
  },
  "storeOrderNotification": {
    "enabled": true,
    "subject": "Your order is placed !",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  },
  "storeOrderFulfillmentNotification": {
    "enabled": true,
    "subject": "Order fulfilled",
    "emailTemplateId": "6788d542f0462ffd6bc29bb9",
    "defaultEmailTemplateId": "6788d542f0462ffd6bc29bb9"
  }
}'

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/store/store-setting' -Method 'POST' -Headers $headers -Body $body -ContentType 'application/json'
$response | ConvertTo-Json
```
