> ## Documentation Index
> Fetch the complete documentation index at: https://developers.qshop.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Update pickup location



## OpenAPI

````yaml patch /{shopId}/locations/update
openapi: 3.0.3
info:
  title: API V2
  version: 1.0.0
  contact: {}
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: null
security: []
tags:
  - name: Analytics
  - name: Authentication
  - name: Storefront
  - name: Roles
  - name: Banks
  - name: Products
  - name: Shops
  - name: Roles1
  - name: Bank accounts
  - name: Users
  - name: Payment methods
  - name: Integrations
  - name: Subscriptions
  - name: Currency
  - name: Shipping zones
  - name: Shipping rates
  - name: Policies
  - name: Contact us
  - name: Locations
  - name: Reviews
  - name: Referral
  - name: Stripe
  - name: Campaigns
  - name: Credits
  - name: Product Tags
  - name: Product Attributes
  - name: Product Categories
  - name: Orders
  - name: Discount
  - name: Shipping
  - name: Redeem digital assets
  - name: Coupons
  - name: Currencies
  - name: Shop categories
  - name: Locations1
  - name: Features
  - name: Subscription plan
  - name: Recurring subscription plan
  - name: Shop payments
  - name: QDiscounts
  - name: Order status
  - name: Announcements
  - name: Wishlist
  - name: Transaction status
  - name: Templates
  - name: Config
  - name: Cart management
  - name: Users1
  - name: Profile
  - name: Domains
  - name: Transactions
  - name: Subscriptions1
  - name: Subscription statuses
  - name: Security
  - name: Payments
  - name: Payment methods1
  - name: Payment platforms
  - name: Public
  - name: social
  - name: Shipping1
  - name: Orders1
  - name: Integrations1
  - name: Webhook
  - name: ShopTags
  - name: Themes
paths:
  /{shopId}/locations/update:
    patch:
      tags:
        - Shops
      summary: Update Pickup location
      description: Update Pickup location
      operationId: updatePickupLocation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                locations:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                        example: Block 1 Opebi street
                      country:
                        type: string
                        example: Nigeria
                      state:
                        type: string
                        example: Delta
                  example:
                    - address: Block 1 Opebi street
                      country: Nigeria
                      state: Delta
                    - address: Block 1B Toyin street
                      country: Nigeria
                      state: Lagos
            example:
              locations:
                - address: Block 1 Opebi street
                  country: Nigeria
                  state: Delta
                - address: Block 1B Toyin street
                  country: Nigeria
                  state: Lagos
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      __v:
                        type: number
                        example: 120
                      _id:
                        type: string
                        example: 5f439e2e64d89817e562a811
                      bankDetails:
                        type: array
                        items:
                          type: object
                          properties:
                            account_name:
                              type: string
                              example: OGECHI LOUISA OKWUONE
                            account_no:
                              type: string
                              example: '2189963543'
                            bank_code:
                              type: string
                              example: '057'
                            bank_name:
                              type: string
                              example: Zenith bank PLC
                            country:
                              type: object
                              properties:
                                __v:
                                  type: number
                                  example: 0
                                _id:
                                  type: string
                                  example: 6177fd783afe26373671e408
                                code:
                                  type: string
                                  example: NG
                                name:
                                  type: string
                                  example: Nigeria
                            paymentMethods:
                              type: array
                              items:
                                type: string
                                example: 5ee79956eea46308e8f84869
                              example:
                                - 5ee79956eea46308e8f84869
                                - 5ee79950eea46308e8f84868
                        example:
                          - 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:
                        type: string
                        example: '2020-11-14T06:00:00.016Z'
                      bio:
                        type: string
                        example: we love pets
                      call:
                        type: boolean
                        example: true
                      country:
                        type: string
                        example: 6267e00ce8e5c54b0b68cb05
                      created:
                        type: string
                        example: '2020-08-24T11:02:06.364Z'
                      currencies:
                        type: array
                        items:
                          type: string
                          example: 625ff4b1313314d5008106ac
                        example:
                          - 625ff4b1313314d5008106ac
                      customerNotificationConfig:
                        type: object
                        properties:
                          email:
                            type: boolean
                            example: true
                          whatsApp:
                            type: boolean
                            example: true
                      domainActive:
                        type: boolean
                        example: true
                      domainCreated:
                        type: string
                        example: '2022-03-19T19:33:35.852Z'
                      domainExpires:
                        type: string
                        example: '2031-03-19T19:33:35.852Z'
                      domainName:
                        type: string
                        example: louisanm.com
                      domainPeriod:
                        type: number
                        example: 9
                      domainSubscription:
                        type: string
                        example: 62362ffb8504f19b4e7ed63c
                      domainValidated:
                        type: boolean
                        example: true
                      email:
                        type: string
                        example: treasurefun@yahoo.com
                      firstLaunch:
                        type: string
                        example: '2021-01-08T00:59:32.314Z'
                      googleId:
                        type: string
                        example: UA-183941820-1
                      hideLogo:
                        type: boolean
                        example: false
                      identifiers:
                        type: array
                        items:
                          type: object
                          properties:
                            identifier:
                              type: string
                              example: qshop-test
                            isEnabled:
                              type: boolean
                              example: true
                            name:
                              type: string
                              example: ebanqo
                        example:
                          - identifier: qshop-test
                            isEnabled: true
                            name: ebanqo
                          - identifier: qshop-test
                            isEnabled: false
                            name: stripe
                      instaAuth:
                        type: string
                        example: >-
                          IGQVJXaVB0QWd3dHMxSUZAIOUV3dVg3SmxJdk9uRjdHRWFmc19tY2tzc0prSkNTREgyRU40X0EzZAGdLWmpGRHdEbDN3c0I1QU9xcGJnVlBLS2F0alV2T2p0UWRDWmpmVUJ0NmtVSmJR
                      instaAuthDateExpires:
                        type: string
                        example: '2022-07-08T14:58:02.942Z'
                      instagram:
                        type: string
                        example: louie_baybie
                      inventoryConfig:
                        type: object
                        properties:
                          displayOptionKeyId:
                            type: string
                            example: 6c6f775f696e5f73746f636b
                          enableProductPageStockCount:
                            type: boolean
                            example: false
                          isLowStockEnabled:
                            type: boolean
                            example: false
                          isOutOfStockEnabled:
                            type: boolean
                            example: false
                      locations:
                        type: array
                        items:
                          type: object
                          properties:
                            _id:
                              type: string
                              example: 62b0a1bb670481a7384807fa
                            address:
                              type: string
                              example: Block 1 Opebi street
                            country:
                              type: string
                              example: Nigeria
                            state:
                              type: string
                              example: Delta
                        example:
                          - _id: 62b0a1bb670481a7384807fa
                            address: Block 1 Opebi street
                            country: Nigeria
                            state: Delta
                          - _id: 62b0a1bb670481a7384807fb
                            address: Block 1B Toyin street
                            country: Nigeria
                            state: Lagos
                      logo:
                        nullable: true
                        example: null
                      logo_url:
                        type: string
                        example: b821e296-03d4-42f7-a748-9acb1d57a636
                      logo_uuid:
                        type: string
                        example: a5dcf65b-7eb6-46ac-a1e1-62b695b2618d
                      modified:
                        type: string
                        example: '2022-05-19T13:03:59.277Z'
                      name:
                        type: string
                        example: Pet store
                      owner:
                        type: object
                        properties:
                          __v:
                            type: number
                            example: 3
                          _id:
                            type: string
                            example: 5f439e0a64d89817e562a810
                          access_code:
                            nullable: true
                            example: null
                          address:
                            type: object
                            properties:
                              city:
                                type: string
                                example: Abak
                              country:
                                type: string
                                example: Nigeria
                              line_1:
                                type: string
                                example: Cadogan Estate
                              line_2:
                                type: string
                                example: lekki
                              state:
                                type: string
                                example: Akwa Ibom
                              zip_code:
                                type: string
                                example: '100218'
                          email:
                            type: string
                            example: treasurefun@yahoo.com
                          full_name:
                            type: string
                            example: Louisa girlie3
                          last_access:
                            type: string
                            example: '2022-06-20T12:13:59.613Z'
                          orders:
                            type: array
                            items: {}
                            example: []
                          pass:
                            type: string
                            example: >-
                              $2b$10$dmOPpIxa7dlfCYCbiMYWiueO2JWfQ9VcqynlIYfTlRu5RWCD9hDre
                          profiles:
                            type: array
                            items: {}
                            example: []
                          referred_by:
                            type: string
                            example: 5f3c62f4bc19938f1ad2e215
                          reg_date:
                            type: string
                            example: '2020-08-24T11:01:30.132Z'
                          reset_pass:
                            type: boolean
                            example: false
                          roles:
                            type: array
                            items:
                              type: string
                              example: 5e7e89bf872c2c0f8c1c3fb4
                            example:
                              - 5e7e89bf872c2c0f8c1c3fb4
                          shopCount:
                            type: number
                            example: 1
                          social:
                            type: array
                            items: {}
                            example: []
                          telephone:
                            type: string
                            example: '+2348137064736'
                          username:
                            type: string
                            example: treasurefun@yahoo.com
                          whatsapp:
                            type: string
                            example: '+2348137064736'
                      paymentError:
                        type: array
                        items: {}
                        example: []
                      paymentMethods:
                        type: array
                        items:
                          type: string
                          example: 5ee79950eea46308e8f84868
                        example:
                          - 5ee79950eea46308e8f84868
                          - 5ee79956eea46308e8f84869
                          - 5ee8ada78d362db318828297
                      pickupLocation:
                        type: string
                        example: 123 Adeola Street, Lagos state
                      productWeightConfig:
                        type: object
                        properties:
                          unit:
                            type: string
                            example: kg
                      products:
                        type: number
                        example: 17
                      questions:
                        type: object
                        properties:
                          question_1:
                            type: boolean
                            example: false
                          question_2:
                            type: boolean
                            example: true
                          question_3:
                            type: boolean
                            example: false
                          question_4:
                            type: string
                            example: facebook
                          question_5:
                            type: string
                            example: dunno
                      referralCode:
                        type: string
                        example: 618118c6a30c111bd506d988
                      registrar:
                        type: string
                        example: Namecheap
                      returnPolicy:
                        type: string
                        example: nil
                      shippingPolicy:
                        type: string
                        example: nil
                      shippingRates:
                        type: array
                        items:
                          type: object
                          properties:
                            _id:
                              type: string
                              example: 5ee6a1a5eea46308e8f84843
                            areas:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: ik4211677
                                  name:
                                    type: string
                                    example: ikeja
                                  rate:
                                    type: number
                                    example: 2000
                              example:
                                - id: ik4211677
                                  name: ikeja
                                  rate: 2000
                            confirmRate:
                              type: boolean
                              example: false
                            countryCode:
                              type: string
                              example: NG
                            disableShipping:
                              type: boolean
                              example: false
                            enableShipping:
                              type: boolean
                              example: true
                            name:
                              type: string
                              example: Abia
                            rate:
                              example: 1000
                              anyOf:
                                - type: number
                                  example: 1000
                                - type: string
                                  example: '1000'
                        example:
                          - _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:
                        type: string
                        example: 5f3c62287fe78f559ccf7797
                      shopPreview:
                        type: string
                        example: '2022-06-14T10:10:54.460Z'
                      shop_url:
                        type: string
                        example: louisa-s-test-shop
                      slug:
                        type: string
                        example: louisa-s-test-shop-0002
                      status:
                        type: string
                        example: active
                      subscription:
                        type: string
                        example: 62321ff885227991e4331623
                      telephone:
                        type: string
                        example: '+2348137064736'
                      testShop:
                        type: boolean
                        example: true
                      theme:
                        type: string
                        example: TRENDY
                      trialEnd:
                        type: string
                        example: '2020-11-11T08:27:58.372Z'
                      trialPeriod:
                        type: number
                        example: 8
                      trialStart:
                        type: string
                        example: '2020-11-03T08:27:58.372Z'
                      whatsApp:
                        type: boolean
                        example: true
                      wizard_steps:
                        type: object
                        properties:
                          '7':
                            type: string
                            example: done
                          '8':
                            type: string
                            example: done
                          '9':
                            type: string
                            example: done
                  message:
                    type: string
                    example: Shop pickup locations updated successfully
                  status:
                    type: number
                    example: 200
                  success:
                    type: boolean
                    example: true
              examples:
                '200':
                  value:
                    data:
                      __v: 120
                      _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: treasurefun@yahoo.com
                      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:
                        - _id: 62b0a1bb670481a7384807fa
                          address: Block 1 Opebi street
                          country: Nigeria
                          state: Delta
                        - _id: 62b0a1bb670481a7384807fb
                          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: treasurefun@yahoo.com
                        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: treasurefun@yahoo.com
                        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 pickup locations updated successfully
                    status: 200
                    success: true

````