Skip to main content
PATCH
/
{shopId}
/
update
Update shop new
curl --request PATCH \
  --url http://staging.qshop.ng/apiv2/{shopId}/update \
  --header 'Content-Type: application/json' \
  --data '
{
  "bio": "we love pets",
  "call": true,
  "country": "6267e00ce8e5c54b0b68cb05",
  "customerNotificationConfig": {
    "email": true,
    "whatsApp": true
  },
  "email": "[email protected]",
  "hideLogo": false,
  "logo_uuid": "a5dcf65b-7eb6-46ac-a1e1-62b695b2618d",
  "name": "Pet store",
  "questions": {
    "question_1": false,
    "question_2": true,
    "question_3": false,
    "question_4": "facebook",
    "question_5": "dunno"
  },
  "shopCategory": "5f3c62287fe78f559ccf7797",
  "shop_url": "louisa-s-test-shop",
  "telephone": "+2348137064736",
  "testShop": true,
  "theme": "TRENDY",
  "whatsApp": true
}
'
{
  "data": {
    "__v": 119,
    "_id": "5f439e2e64d89817e562a811",
    "bankDetails": [
      {
        "account_name": "OGECHI LOUISA OKWUONE",
        "account_no": "2189963543",
        "bank_code": "057",
        "bank_name": "Zenith bank PLC",
        "country": {
          "__v": 0,
          "_id": "6177fd783afe26373671e408",
          "code": "NG",
          "name": "Nigeria"
        },
        "paymentMethods": [
          "5ee79956eea46308e8f84869",
          "5ee79950eea46308e8f84868"
        ]
      }
    ],
    "billingNotice": "2020-11-14T06:00:00.016Z",
    "bio": "we love pets",
    "call": true,
    "country": "6267e00ce8e5c54b0b68cb05",
    "created": "2020-08-24T11:02:06.364Z",
    "currencies": [
      "625ff4b1313314d5008106ac"
    ],
    "customerNotificationConfig": {
      "email": true,
      "whatsApp": true
    },
    "domainActive": true,
    "domainCreated": "2022-03-19T19:33:35.852Z",
    "domainExpires": "2031-03-19T19:33:35.852Z",
    "domainName": "louisanm.com",
    "domainPeriod": 9,
    "domainSubscription": "62362ffb8504f19b4e7ed63c",
    "domainValidated": true,
    "email": "[email protected]",
    "firstLaunch": "2021-01-08T00:59:32.314Z",
    "googleId": "UA-183941820-1",
    "hideLogo": false,
    "identifiers": [
      {
        "identifier": "qshop-test",
        "isEnabled": true,
        "name": "ebanqo"
      },
      {
        "identifier": "qshop-test",
        "isEnabled": false,
        "name": "stripe"
      }
    ],
    "instaAuth": "IGQVJXaVB0QWd3dHMxSUZAIOUV3dVg3SmxJdk9uRjdHRWFmc19tY2tzc0prSkNTREgyRU40X0EzZAGdLWmpGRHdEbDN3c0I1QU9xcGJnVlBLS2F0alV2T2p0UWRDWmpmVUJ0NmtVSmJR",
    "instaAuthDateExpires": "2022-07-08T14:58:02.942Z",
    "instagram": "louie_baybie",
    "inventoryConfig": {
      "displayOptionKeyId": "6c6f775f696e5f73746f636b",
      "enableProductPageStockCount": false,
      "isLowStockEnabled": false,
      "isOutOfStockEnabled": false
    },
    "locations": [
      {
        "address": "Block 1 Opebi street",
        "country": "Nigeria",
        "state": "Delta"
      },
      {
        "address": "Block 1B Toyin street",
        "country": "Nigeria",
        "state": "Lagos"
      }
    ],
    "logo": null,
    "logo_url": "b821e296-03d4-42f7-a748-9acb1d57a636",
    "logo_uuid": "a5dcf65b-7eb6-46ac-a1e1-62b695b2618d",
    "modified": "2022-05-19T13:03:59.277Z",
    "name": "Pet store",
    "owner": {
      "__v": 3,
      "_id": "5f439e0a64d89817e562a810",
      "access_code": null,
      "address": {
        "city": "Abak",
        "country": "Nigeria",
        "line_1": "Cadogan Estate",
        "line_2": "lekki",
        "state": "Akwa Ibom",
        "zip_code": "100218"
      },
      "email": "[email protected]",
      "full_name": "Louisa girlie3",
      "last_access": "2022-06-20T12:13:59.613Z",
      "orders": [],
      "pass": "$2b$10$dmOPpIxa7dlfCYCbiMYWiueO2JWfQ9VcqynlIYfTlRu5RWCD9hDre",
      "profiles": [],
      "referred_by": "5f3c62f4bc19938f1ad2e215",
      "reg_date": "2020-08-24T11:01:30.132Z",
      "reset_pass": false,
      "roles": [
        "5e7e89bf872c2c0f8c1c3fb4"
      ],
      "shopCount": 1,
      "social": [],
      "telephone": "+2348137064736",
      "username": "[email protected]",
      "whatsapp": "+2348137064736"
    },
    "paymentError": [],
    "paymentMethods": [
      "5ee79950eea46308e8f84868",
      "5ee79956eea46308e8f84869",
      "5ee8ada78d362db318828297"
    ],
    "pickupLocation": "123 Adeola Street, Lagos state",
    "productWeightConfig": {
      "unit": "kg"
    },
    "products": 17,
    "questions": {
      "question_1": false,
      "question_2": true,
      "question_3": false,
      "question_4": "facebook",
      "question_5": "dunno"
    },
    "referralCode": "618118c6a30c111bd506d988",
    "registrar": "Namecheap",
    "returnPolicy": "nil",
    "shippingPolicy": "nil",
    "shippingRates": [
      {
        "_id": "5ee6a1a5eea46308e8f84843",
        "countryCode": "NG",
        "disableShipping": false,
        "enableShipping": true,
        "name": "Abia",
        "rate": 1000
      },
      {
        "_id": "5ee6a281eea46308e8f8485a",
        "confirmRate": false,
        "countryCode": "NG",
        "disableShipping": false,
        "enableShipping": true,
        "name": "Kwara",
        "rate": 1000
      },
      {
        "_id": "5ee6a281eea46308e8f8485b",
        "areas": [
          {
            "id": "ik4211677",
            "name": "ikeja",
            "rate": 2000
          }
        ],
        "confirmRate": false,
        "countryCode": "NG",
        "disableShipping": false,
        "enableShipping": true,
        "name": "Lagos",
        "rate": "1000"
      }
    ],
    "shopCategory": "5f3c62287fe78f559ccf7797",
    "shopPreview": "2022-06-14T10:10:54.460Z",
    "shop_url": "louisa-s-test-shop",
    "slug": "louisa-s-test-shop-0002",
    "status": "active",
    "subscription": "62321ff885227991e4331623",
    "telephone": "+2348137064736",
    "testShop": true,
    "theme": "TRENDY",
    "trialEnd": "2020-11-11T08:27:58.372Z",
    "trialPeriod": 8,
    "trialStart": "2020-11-03T08:27:58.372Z",
    "whatsApp": true,
    "wizard_steps": {
      "7": "done",
      "8": "done",
      "9": "done"
    }
  },
  "message": "Shop updated successfully",
  "status": 200,
  "success": true
}

Path Parameters

shopId
string
required
Example:

"5f439e2e64d89817e562a811"

Body

application/json
bio
string
Example:

"we love pets"

call
boolean
Example:

true

country
string
Example:

"6267e00ce8e5c54b0b68cb05"

customerNotificationConfig
object
email
string
Example:

false

logo_uuid
string
Example:

"a5dcf65b-7eb6-46ac-a1e1-62b695b2618d"

name
string
Example:

"Pet store"

questions
object
shopCategory
string
Example:

"5f3c62287fe78f559ccf7797"

shop_url
string
Example:

"louisa-s-test-shop"

telephone
string
Example:

"+2348137064736"

testShop
boolean
Example:

true

theme
string
Example:

"TRENDY"

whatsApp
boolean
Example:

true

Response

200 - application/json

200

data
object
message
string
Example:

"Shop updated successfully"

status
number
Example:

200

success
boolean
Example:

true