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

# centres

> ### GET /utils/centres

This endpoint retrieves a list of centres.

#### Request

No request body is required for this request.

#### Response

The response will be a JSON object with the following schema:

``` json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "boolean"
    },
    "message": {
      "type": "string"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "centre_name": {
            "type": "string"
          },
          "centre_code": {
            "type": "string"
          },
          "centre_location": {
            "type": "object",
            "properties": {
              "city": {
                "type": "string"
              },
              "ward": {
                "type": "string"
              },
              "local": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "region": {
                "type": "object",
                "properties": {
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  }
                }
              },
              "country": {
                "type": "string"
              },
              "state_code": {
                "type": "string"
              },
              "postal_code": {
                "type": "string"
              },
              "country_code": {
                "type": "string"
              },
              "neighborhood": {
                "type": "string"
              },
              "formattedAddress": {
                "type": "string"
              }
            }
          },
          "status": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      }
    }
  }
}

 ```



## OpenAPI

````yaml get /utils/centres
openapi: 3.0.3
info:
  title: Introduction to the Mervii Open API
  description: >-
    # Introduction to the Mervii Open API


    The Mervii Open API offers secure, scalable, and seamless integration with
    our cutting-edge logistics, delivery, and payment systems. Designed with
    both developers and enterprises in mind, this API enables you to embed
    Mervii’s advanced capabilities directly into your applications. Whether you
    aim to implement real-time tracking, streamline complex logistics
    operations, or integrate secure payment processing, our comprehensive suite
    of endpoints provides the flexibility and performance necessary to support
    your digital transformation initiatives.


    This documentation serves as your detailed guide for integration, featuring
    in-depth technical explanations, practical code examples, and industry best
    practices to ensure a smooth and efficient implementation. Key features
    include:


    - **Robust Logistics Management:** Handle intricate logistics processes—from
    parcel tracking to fleet management—with ease.
        
    - **Real-time Delivery Services:** Incorporate dynamic delivery options that
    offer instant tracking and status updates.
        
    - **Secure Payment Processing:** Enable swift and secure transactions across
    a variety of payment methods.
        

    _Please note:_ The Mervii Open API is currently in public beta. For
    expedited access or further technical support, kindly contact us at
    [partners@mervii.com](https://null) or
    [developers@mervii.com](https://null).


    Explore our documentation to unlock the full potential of Mervii’s
    innovative solutions and elevate your application’s capabilities.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mervii.com/beta
security: []
tags:
  - name: prices
    description: >-
      ## Prices


      These endpoints gives the partners access to check the price quoation for
      the delivery before make a delivery request.


      > **Recommendation**  

      _We strongly encourage our partners to get the price to determine the
      total amount of money Mervii will charge for each delivery request._
  - name: parcels
    description: >-
      # Parcel


      These service contain two segment


      - CitySwift (Intral city)
          
      - FlexFlow (Inter city or inter state)
          
      # CitySwift (Intral city)

      > CitySwift is an instant delivery within a city; We aim to fulfill this
      request with an hour.

      ##### Suitable For

      - Food delivery

      - Grocesery store 

      - Resturant 

      - Supper-market 

      - and order need to fulfill instantly within a city.


      # FlexFlow (Inter city or inter state)

      > FlexFlow (Inter city or inter state) is a schedule delivery within a
      city, inter-state or inter city with a flexible flexibility, FlexFlow
      comes with a variant flexibility; Offering Pickup and Drop-off center or
      Hub, Home delivery and Home pickup (ends-ends services).

      ##### Suitable For

      - Inter-state delivery

      - Hub pickup and drop-off 

      - Home delivery and Home pickup
  - name: CitySwift (Intral city)
    description: >-
      # Intral-city

      This endpoint allow partners to request for delivery fulfilment within
      cities. This type of request are expected to be fulfiled within short
      period of time i.e. *Same day delivery*.


      This type of request suitable for resturances and gloceries partners.


      > ## Good to Know

      > This request only available with cities, i.e. partners can only make
      request for the address with cities for pickup and delivery.


      - e.g sender and receiver address are within a city.
  - name: FlexFlow
    description: >-
      # Logistics services

      These endpoint in the segment contains different instruction to fulfil a
      logistics request.


      - **Door to Door** : This types of request gives us instruction to handle
      you logistics end - end i.e. *Home delivery*. Our delivery personnel come
      to pickup at a specified place  and delivered to the receivers specified
      place using Latitude and longitude.



      - **Centre to Centre** : This types of request gives us instruction to our
      personnel to pickup your item at our specified centre and deliver it to
      our specified centre.  

      > ## Note

      > Sender are expected to take the items to our centre and receiver need to
      come to our centre to pick-up the items.




      - ** Centre to Door** : This types of request gives us instruction to our
      personnel to pickup your items at our specified centre and the deliver it
      to the receivers specified address i.e *Home delivery*

      > ## Note

      > Sender are expected to take the items to our centre.




      - ** Door to Centre** : This types of request gives us instruction to our
      personnel to pickup your items at sender specified address i.e. *Home
      pickup* and the deliver it to the receivers specified centre.

      > ## Note

      > Receiver need to come to our specified pickup centre to pick-up the
      items.
       
  - name: Utils
    description: >-
      # Utils endpoints

      These endpoint return mervii utils data and variable specified by Mervii
      to ensure request integrities.

      - States and codes

      - Pickup and drop-off centres

      - Weight variables and codes
paths:
  /utils/centres:
    get:
      tags:
        - Utils
      summary: centres
      description: |-
        ### GET /utils/centres

        This endpoint retrieves a list of centres.oolean"
      operationId: centres
      responses:
        '200':
          description: success
          headers:
            Cache-Control:
              schema:
                type: string
                example: no-cache, private
            Connection:
              schema:
                type: string
                example: close
            Date:
              schema:
                type: string
                example: Tue, 08 Oct 2024 19:33:31 GMT
            Host:
              schema:
                type: string
                example: api.localhost:8000
            Vary:
              schema:
                type: string
                example: Origin
            X-Powered-By:
              schema:
                type: string
                example: PHP/8.3.11
            X-RateLimit-Limit:
              schema:
                type: string
                example: '60'
            X-RateLimit-Remaining:
              schema:
                type: string
                example: '58'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        centre_code:
                          type: string
                          example: ibadan-sango
                        centre_location:
                          type: object
                          properties:
                            city:
                              type: string
                              example: Ojodu Berger
                            country:
                              type: string
                              example: Nigeria
                            country_code:
                              type: string
                              example: NG
                            formattedAddress:
                              type: string
                              example: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                            lat:
                              type: number
                              example: 6.6395189
                            lng:
                              type: number
                              example: 3.3710171
                            local:
                              type: string
                              example: Kosofe
                            neighborhood:
                              type: string
                              example: Olowora
                            place_id:
                              type: string
                              example: >-
                                EkBBZGVuaWppIEFkZWxlIEJyaWRnZSwgTGFnb3MgSXNsYW5kLCBMYWdvcyAxMDIyNzMsIExhZ29zLCBOaWdlcmlhIi4qLAoUChIJTw4WaWuLOxARPDHb6eb35wISFAoSCcGAguYqizsQEcvZw2ejh57c
                            postal_code:
                              type: string
                              example: '105102'
                            region:
                              type: object
                              properties:
                                latitude:
                                  type: number
                                  example: 6.6395189
                                latitudeDelta:
                                  type: number
                                  example: 0.0049
                                longitude:
                                  type: number
                                  example: 3.3710171
                                longitudeDelta:
                                  type: number
                                  example: 0.0022642180094786728
                            state:
                              type: string
                              example: Lagos
                            state_code:
                              type: string
                              example: YO
                            street_address:
                              type: string
                              example: Adeniji Adele Bridge
                            ward:
                              type: string
                              example: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name:
                          type: string
                          example: Sango Ibadan
                        label:
                          type: string
                          example: Sango Ibadan
                        status:
                          type: string
                          example: Active
                        value:
                          type: string
                          example: ibadan-sango
                    example:
                      - centre_code: ibadan-sango
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 6.6395189
                            longitude: 3.3710171
                          state: Lagos
                          state_code: YO
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Sango Ibadan
                        label: Sango Ibadan
                        status: Active
                        value: ibadan-sango
                      - centre_code: ibadan-agodi-gate
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          lat: 6.6395189
                          lng: 3.3710171
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 6.6395189
                            longitude: 3.4710171
                          state: Lagos
                          state_code: YO
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Agodi Gate Ibadan
                        label: Agodi Gate Ibadan
                        status: Active
                        value: ibadan-agodi-gate
                      - centre_code: lagos-ojodu-berger
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          lat: 6.6395189
                          lng: 3.3710171
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 7.6395189
                            longitude: 4.4710171
                          state: Lagos
                          state_code: LA
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Ojodu Berger Lagos
                        label: Ojodu Berger Lagos
                        status: Active
                        value: lagos-ojodu-berger
                      - centre_code: lagos-adeniji-adele
                        centre_location:
                          city: Lagos
                          country: Nigeria
                          country_code: NG
                          formattedAddress: >-
                            Adeniji Adele Bridge, Lagos Island, Lagos 102273,
                            Lagos, Nigeria
                          local: Lagos Island
                          neighborhood: Lagos Island
                          place_id: >-
                            EkBBZGVuaWppIEFkZWxlIEJyaWRnZSwgTGFnb3MgSXNsYW5kLCBMYWdvcyAxMDIyNzMsIExhZ29zLCBOaWdlcmlhIi4qLAoUChIJTw4WaWuLOxARPDHb6eb35wISFAoSCcGAguYqizsQEcvZw2ejh57c
                          postal_code: '102273'
                          region:
                            latitude: 6.4612672
                            latitudeDelta: 0.0049
                            longitude: 3.3961466
                            longitudeDelta: 0.0022642180094786728
                          state: Lagos
                          state_code: LA
                          street_address: Adeniji Adele Bridge
                        centre_name: Adeniji Adele Lagos
                        label: Adeniji Adele Lagos
                        status: Active
                        value: lagos-adeniji-adele
                  message:
                    type: string
                    example: Centres successfully fetched!
                  status:
                    type: boolean
                    example: true
              examples:
                success:
                  value:
                    data:
                      - centre_code: ibadan-sango
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 6.6395189
                            longitude: 3.3710171
                          state: Lagos
                          state_code: YO
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Sango Ibadan
                        label: Sango Ibadan
                        status: Active
                        value: ibadan-sango
                      - centre_code: ibadan-agodi-gate
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          lat: 6.6395189
                          lng: 3.3710171
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 6.6395189
                            longitude: 3.4710171
                          state: Lagos
                          state_code: YO
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Agodi Gate Ibadan
                        label: Agodi Gate Ibadan
                        status: Active
                        value: ibadan-agodi-gate
                      - centre_code: lagos-ojodu-berger
                        centre_location:
                          city: Ojodu Berger
                          country: Nigeria
                          country_code: NG
                          formattedAddress: Olowora, Ojodu Berger 105102, Lagos, Nigeria
                          lat: 6.6395189
                          lng: 3.3710171
                          local: Kosofe
                          neighborhood: Olowora
                          postal_code: '105102'
                          region:
                            latitude: 7.6395189
                            longitude: 4.4710171
                          state: Lagos
                          state_code: LA
                          ward: Isheri-Olowo-Ira/Shangisha/Magodo Phase I & II
                        centre_name: Ojodu Berger Lagos
                        label: Ojodu Berger Lagos
                        status: Active
                        value: lagos-ojodu-berger
                      - centre_code: lagos-adeniji-adele
                        centre_location:
                          city: Lagos
                          country: Nigeria
                          country_code: NG
                          formattedAddress: >-
                            Adeniji Adele Bridge, Lagos Island, Lagos 102273,
                            Lagos, Nigeria
                          local: Lagos Island
                          neighborhood: Lagos Island
                          place_id: >-
                            EkBBZGVuaWppIEFkZWxlIEJyaWRnZSwgTGFnb3MgSXNsYW5kLCBMYWdvcyAxMDIyNzMsIExhZ29zLCBOaWdlcmlhIi4qLAoUChIJTw4WaWuLOxARPDHb6eb35wISFAoSCcGAguYqizsQEcvZw2ejh57c
                          postal_code: '102273'
                          region:
                            latitude: 6.4612672
                            latitudeDelta: 0.0049
                            longitude: 3.3961466
                            longitudeDelta: 0.0022642180094786728
                          state: Lagos
                          state_code: LA
                          street_address: Adeniji Adele Bridge
                        centre_name: Adeniji Adele Lagos
                        label: Adeniji Adele Lagos
                        status: Active
                        value: lagos-adeniji-adele
                    message: Centres successfully fetched!
                    status: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````