Skip to main content
POST
/
cache
Clear redis cache
curl --request POST \
  --url http://staging.qshop.ng/apiv2/cache/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": "shop",
  "props": {
    "shop": {
      "__v": 83,
      "_id": "61a956d91a113f7e13c45c15",
      "area": "62f2e2efa65b7319b3b4715f",
      "bio": "We love football",
      "call": true,
      "city": "62d46bb079344c34996b2c47",
      "country": "628c8d3c21ce8313e6293c8e",
      "created": "2021-12-02T23:29:29.317Z",
      "currencies": [
        "629dd54ac046650e6cb78b74",
        "629dd54ac046650e6cb78b75",
        "630bfb78e50744001d860921"
      ],
      "customerNotificationConfig": {
        "_id": "63ef5d3cc8d82a2da6d83db0",
        "email": true,
        "whatsApp": true
      },
      "description": "<div>Hey there brother</div>",
      "domainActive": false,
      "domainCreated": "2023-01-12T12:00:54.442Z",
      "domainExpires": "2023-02-25T10:23:50.199Z",
      "domainName": "staar.pre",
      "domainPeriod": 1,
      "domainPurchaseOnQshop": true,
      "domainValidated": false,
      "email": "[email protected]",
      "expandPolicy": false,
      "firstLaunch": "2021-12-03T07:54:38.595Z",
      "flutterwaveAcctInfo": {
        "account_bank": "044",
        "account_id": 1845025,
        "account_number": "0697325039",
        "bank_name": "ACCESS BANK NIGERIA",
        "business_name": "Egoli",
        "country": "NG",
        "created_at": "2022-10-07T10:57:11.000Z",
        "full_name": "Forrest Green",
        "id": 18000,
        "meta": null,
        "split_ratio": 1,
        "split_type": "percentage",
        "split_value": 0.04,
        "subaccount_id": "RS_0EB1BBE6A3054B1626CA9BECE5994BD3"
      },
      "hideLogo": false,
      "instaAuth": "IGQVJXUXB0SWVPeWNoTk1MbFNKWkhpaXlfMnM3blljcU9RaHU4LUNlSWh6RDg0bVNsYlE0TUtjQXc4VDNLSm1hcFljanV5VGs2WlBTbVhZASXRCc3V4WDNia1V5QkM0TFBJUDhOVC1R",
      "instaAuthDateExpires": "2022-06-20T12:57:31.973Z",
      "instagram": "newtonlovestocode",
      "inventoryConfig": {
        "_id": "63d3308668c893478d07c1bd",
        "displayOptionKey": "always",
        "displayOptionKeyId": "624d9757733a4a29e8ec0d81",
        "enableProductPageStockCount": false,
        "isLowStockEnabled": true,
        "isOutOfStockEnabled": true,
        "lowStockThreshold": 50,
        "outOfStockThreshold": 9,
        "storefrontDisplaySoldOut": false
      },
      "launched": true,
      "logo_uuid": "c912279d-1e23-4a55-a939-26e4fa734c68",
      "mig_updated": true,
      "modified": "2022-04-12T14:11:01.079Z",
      "name": "Egoli",
      "owner": "61a956551a113f7e13c45c10",
      "paused": false,
      "paymentError": [
        {
          "data": {
            "data": null,
            "msg": "Error!",
            "success": false
          },
          "date": "2022-02-23T09:52:35.952Z",
          "platform": "flutterwave"
        }
      ],
      "paymentMethods": [
        "616c5714bc454798c50d7add",
        "5ee8ada78d362db318828297",
        "62253a53eb629b0f831614d1",
        "5ee79950eea46308e8f84868",
        "625c396a7a8687194e375d07"
      ],
      "paystackAcctNo": "ACCT_ew3ivl3oa56j1np",
      "pickupLocation": "5 Eastpark avenue, Mowe",
      "products": 80,
      "referralCode": "61a961291a113f7e13c45c27",
      "returnPolicy": "Exchange again and again",
      "shippingPolicy": "<div>Pick up update again</div>",
      "shippingRates": [
        {
          "_id": "5ee6a1a5eea46308e8f84843",
          "countryCode": "NG",
          "enableShipping": true,
          "name": "Abia",
          "rate": 2000
        },
        {
          "_id": "5ee6a281eea46308e8f84844",
          "countryCode": "NG",
          "enableShipping": true,
          "name": "Adamawa",
          "rate": null
        },
        {
          "_id": "5ee6a281eea46308e8f84845",
          "countryCode": "NG",
          "enableShipping": true,
          "name": "Akwa Ibom",
          "rate": null
        }
      ],
      "shopCategory": "61a9303ef2a5bc507fc0b1f7",
      "shopPreview": "2022-06-28T12:53:02.499Z",
      "shop_url": "codely",
      "slug": "egoli-3",
      "slugLastUpdated": "2022-10-30T13:17:19.421Z",
      "socials": [
        {
          "_id": "63239fbfc563fc9332fb932e",
          "auth": "IGQVJYSnlndjdFVjlPTy1Kelptb055UTduNnJUTjB6SDhtMTF3RFFZAQUpKMjZABcVluUV9sc2dXbTR2Vk9vb2x0ZAnhlMlEtTVBqa19KLTZAsZA0FhSF8xczk2UkNlRzctSlduU0pTM0JR",
          "authExpires": "2023-04-21T13:19:01.540Z",
          "id": "6894675363891920",
          "name": "Instagram",
          "slug": "instagram",
          "url": "https://instagram.com/newtonlovestocode",
          "username": "newtonlovestocode"
        },
        {
          "_id": "6323b21c8f5489dedb1ca6f0",
          "auth": null,
          "authExpires": null,
          "id": "+234 903 436 2570",
          "name": "Whatsapp",
          "slug": "whatsapp",
          "url": "https://wa.me/2349034362570",
          "username": null
        }
      ],
      "state": "62c80815c9d738e14b8988e5",
      "status": "active",
      "subscription": {
        "__v": 0,
        "_id": "640614021e9d0f5cc82ee44a",
        "amount": 0,
        "billingCycle": "free",
        "billingNotice": "2023-03-06T16:25:38.044Z",
        "currency": "630bfb78e50744001d860921",
        "description": "Auto downgrade due to subscription expiration",
        "email": "[email protected]",
        "expires": "2123-03-06T16:25:38.044Z",
        "paymentDate": "2023-03-06T16:25:38.044Z",
        "paymentErrors": [],
        "paymentPlatform": null,
        "paymentReference": null,
        "paymentSnapshot": {
          "amount": 0
        },
        "paymentStatus": "61b9d41f1cdf3b37551276e8",
        "plan": "62f4fe1ccef5cde11f8f9914",
        "planCurrency": "60aa6cd79aed9f2aa1b677db",
        "recurringPayment": false,
        "referralLink": null,
        "shop": "61a956d91a113f7e13c45c15",
        "transactionId": null
      },
      "telephone": "+2349034362570",
      "testShop": false,
      "thirtyDayReward": true,
      "whatsApp": true,
      "wizard_steps": {
        "1": "done",
        "2": "done",
        "3": "done",
        "4": "done"
      }
    },
    "subscription": {
      "__v": 0,
      "_id": "640616130c0680cb9c85563b",
      "amount": 0,
      "billingCycle": "free",
      "billingNotice": "2023-03-06T16:34:27.615Z",
      "currency": "630bfb78e50744001d860921",
      "description": "Auto downgrade due to subscription expiration",
      "email": "[email protected]",
      "expires": "2123-03-06T16:34:27.615Z",
      "paymentDate": "2023-03-06T16:34:27.615Z",
      "paymentErrors": [],
      "paymentPlatform": null,
      "paymentReference": null,
      "paymentSnapshot": {
        "amount": 0
      },
      "paymentStatus": "61b9d41f1cdf3b37551276e8",
      "plan": "62f4fe1ccef5cde11f8f9914",
      "planCurrency": "60aa6cd79aed9f2aa1b677db",
      "recurringPayment": false,
      "referralLink": null,
      "shop": "61a956d91a113f7e13c45c15",
      "transactionId": null
    }
  }
}
'

Body

application/json
event
string
Example:

"shop"

props
object

Response

200 - undefined