> ## 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.

# Create Delivery Rate

> **Host**: http://qshop.ng



## OpenAPI

````yaml post /shops/{shopId}/delivery/rates
openapi: 3.1.0
info:
  title: OpenAPI Specification
  version: 1.0.0
  description: >-
    QShop storefront API.  This API is used to build a storefront for a QShop
    store
  contact:
    name: QShop
    url: https://qshop.ng
    email: hello@qshop.ng
servers:
  - url: http://staging.qshop.ng/apiv2
    description: Staging server
  - url: http://qshop.ng/api
    description: Production server
security: []
paths:
  /shops/{shopId}/delivery/rates:
    post:
      tags:
        - Shops
        - Delivery Rates
      summary: Create Delivery Rate
      description: '**Host**: http://qshop.ng'
      parameters:
        - name: shopId
          in: path
          required: true
          schema:
            type: string
        - name: cart
          in: query
          required: false
          schema:
            type: string
        - name: type
          in: query
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                line_1:
                  type: string
                line_2:
                  type: string
                stateData:
                  type: string
                countryData:
                  type: string
                cityData:
                  type: string
                area:
                  type: string
                geoLocation:
                  type: object
                  properties:
                    fullAddress:
                      type: string
                    zipCode:
                      type: string
                    coordinates:
                      type: object
                      properties:
                        lng:
                          type: number
                        lat:
                          type: number
                      required:
                        - lng
                        - lat
                    points:
                      type: object
                      properties:
                        type:
                          type: string
                        coordinates:
                          type: array
                          items:
                            type: number
                        _id:
                          type: string
                      required:
                        - type
                        - coordinates
                        - _id
                    addressProximity:
                      type: string
                    geoNames:
                      type: array
                      items:
                        type: object
                        properties:
                          lng:
                            type: string
                          geonameId:
                            type: integer
                          name:
                            type: string
                          fclName:
                            type: string
                          toponymName:
                            type: string
                          fcodeName:
                            type: string
                          adminName1:
                            type: string
                          lat:
                            type: string
                          fcl:
                            type: string
                          fcode:
                            type: string
                          population:
                            type: integer
                          adminCode1:
                            type: string
                          countryId:
                            type: string
                          countryCode:
                            type: string
                          countryName:
                            type: string
                          adminCodes1:
                            type: object
                            properties:
                              ISO3166_2:
                                type: string
                            required:
                              - ISO3166_2
                        required:
                          - lng
                          - geonameId
                          - name
                          - fclName
                          - toponymName
                          - fcodeName
                          - adminName1
                          - lat
                          - fcl
                          - fcode
                          - population
                    google:
                      type: object
                      properties:
                        address_components:
                          type: array
                          items:
                            type: object
                            properties:
                              long_name:
                                type: string
                              short_name:
                                type: string
                              types:
                                type: array
                                items:
                                  type: string
                            required:
                              - long_name
                              - short_name
                              - types
                        adr_address:
                          type: string
                        formatted_address:
                          type: string
                        geometry:
                          type: object
                          properties:
                            location:
                              type: object
                              properties:
                                lat:
                                  type: number
                                lng:
                                  type: number
                              required:
                                - lat
                                - lng
                            viewport:
                              type: object
                              properties:
                                south:
                                  type: number
                                west:
                                  type: number
                                north:
                                  type: number
                                east:
                                  type: number
                              required:
                                - south
                                - west
                                - north
                                - east
                          required:
                            - location
                            - viewport
                        name:
                          type: string
                        types:
                          type: array
                          items:
                            type: string
                        utc_offset:
                          type: integer
                        html_attributions:
                          type: array
                        utc_offset_minutes:
                          type: integer
                      required:
                        - address_components
                        - adr_address
                        - formatted_address
                        - geometry
                        - name
                        - types
                        - utc_offset
                        - html_attributions
                        - utc_offset_minutes
                    _id:
                      type: string
                  required:
                    - fullAddress
                    - zipCode
                    - coordinates
                    - points
                    - addressProximity
                    - geoNames
                    - google
                    - _id
                isDefault:
                  type: boolean
                _id:
                  type: string
                id:
                  type: string
                fullName:
                  type: string
                contact:
                  type: object
                  properties:
                    telephone:
                      type: string
                    email:
                      type: string
                  required:
                    - telephone
                    - email
              required:
                - address
                - line_1
                - line_2
                - stateData
                - countryData
                - cityData
                - area
                - geoLocation
                - isDefault
                - _id
                - id
                - fullName
                - contact
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      recommended:
                        type: object
                        properties:
                          id:
                            type: string
                          _id:
                            type: string
                          name:
                            type: string
                          media:
                            type: string
                          rateType:
                            type: string
                          amount:
                            type: number
                          serviceType:
                            type: string
                          currency:
                            type: string
                          estimatedDeliveryETA:
                            type: string
                          estimatedPickupETA:
                            type: string
                          estimatedDeliveryETADateTime:
                            type: string
                          estimatedPickupETADateTime:
                            type: string
                          description:
                            type: string
                          courier:
                            type: string
                          provider:
                            type: string
                          type:
                            type: string
                          platform:
                            type: string
                          ratings:
                            type: number
                          meta:
                            type: object
                            properties:
                              courier_id:
                                type: string
                              courier_name:
                                type: string
                              courier_image:
                                type: string
                              service_code:
                                type: string
                              insurance:
                                type: object
                                properties:
                                  code:
                                    type: string
                                  fee:
                                    type: integer
                                required:
                                  - code
                                  - fee
                              discount:
                                type: object
                                properties:
                                  percentage:
                                    type: integer
                                  symbol:
                                    type: string
                                  discounted:
                                    type: integer
                                required:
                                  - percentage
                                  - symbol
                                  - discounted
                              service_type:
                                type: string
                              waybill:
                                type: boolean
                              is_cod_available:
                                type: boolean
                              tracking_level:
                                type: integer
                              ratings:
                                type: number
                              votes:
                                type: integer
                              connected_account:
                                type: boolean
                              rate_card_amount:
                                type: number
                              pickup_eta:
                                type: string
                              pickup_eta_time:
                                type: string
                              dropoff_station:
                                type: 'null'
                              pickup_station:
                                type: 'null'
                              delivery_eta:
                                type: string
                              delivery_eta_time:
                                type: string
                              info:
                                type: array
                                items:
                                  type: string
                              currency:
                                type: string
                              vat:
                                type: integer
                              total:
                                type: number
                              tracking:
                                type: object
                                properties:
                                  bars:
                                    type: integer
                                  label:
                                    type: string
                                required:
                                  - bars
                                  - label
                              token:
                                type: string
                            required:
                              - courier_id
                              - courier_name
                              - courier_image
                              - service_code
                              - insurance
                              - discount
                              - service_type
                              - waybill
                              - is_cod_available
                              - tracking_level
                              - ratings
                              - votes
                              - connected_account
                              - rate_card_amount
                              - pickup_eta
                              - pickup_eta_time
                              - dropoff_station
                              - pickup_station
                              - delivery_eta
                              - delivery_eta_time
                              - info
                              - currency
                              - vat
                              - total
                              - tracking
                              - token
                          preferenceStatus:
                            type: string
                          actualAmount:
                            type: number
                          markup:
                            type: integer
                          markupMeta:
                            type: 'null'
                        required:
                          - id
                          - _id
                          - name
                          - media
                          - rateType
                          - amount
                          - serviceType
                          - currency
                          - estimatedDeliveryETA
                          - estimatedPickupETA
                          - estimatedDeliveryETADateTime
                          - estimatedPickupETADateTime
                          - description
                          - courier
                          - provider
                          - type
                          - platform
                          - ratings
                          - meta
                          - preferenceStatus
                          - actualAmount
                          - markup
                          - markupMeta
                      providers:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            _id:
                              type: string
                            name:
                              type: string
                            media:
                              type: string
                            rateType:
                              type: string
                            amount:
                              type: number
                            serviceType:
                              type: string
                            currency:
                              type: string
                            estimatedDeliveryETA:
                              type: string
                            estimatedPickupETA:
                              type: string
                            estimatedDeliveryETADateTime:
                              type: string
                            estimatedPickupETADateTime:
                              type: string
                            description:
                              type: string
                            courier:
                              type: string
                            provider:
                              type: string
                            type:
                              type: string
                            platform:
                              type: string
                            ratings:
                              type: number
                            meta:
                              type: object
                              properties:
                                courier_id:
                                  type: string
                                courier_name:
                                  type: string
                                courier_image:
                                  type: string
                                service_code:
                                  type: string
                                insurance:
                                  type: object
                                  properties:
                                    code:
                                      type: string
                                    fee:
                                      type: integer
                                  required:
                                    - code
                                    - fee
                                discount:
                                  type: object
                                  properties:
                                    percentage:
                                      type: integer
                                    symbol:
                                      type: string
                                    discounted:
                                      type: integer
                                  required:
                                    - percentage
                                    - symbol
                                    - discounted
                                service_type:
                                  type: string
                                waybill:
                                  type: boolean
                                is_cod_available:
                                  type: boolean
                                tracking_level:
                                  type: integer
                                ratings:
                                  type: number
                                votes:
                                  type: integer
                                connected_account:
                                  type: boolean
                                rate_card_amount:
                                  type: number
                                pickup_eta:
                                  type: string
                                pickup_eta_time:
                                  type: string
                                dropoff_station:
                                  type: 'null'
                                pickup_station:
                                  type: 'null'
                                delivery_eta:
                                  type: string
                                delivery_eta_time:
                                  type: string
                                info:
                                  type: array
                                  items:
                                    type: string
                                currency:
                                  type: string
                                vat:
                                  type: integer
                                total:
                                  type: number
                                tracking:
                                  type: object
                                  properties:
                                    bars:
                                      type: integer
                                    label:
                                      type: string
                                  required:
                                    - bars
                                    - label
                                token:
                                  type: string
                              required:
                                - courier_id
                                - courier_name
                                - courier_image
                                - service_code
                                - insurance
                                - discount
                                - service_type
                                - waybill
                                - is_cod_available
                                - tracking_level
                                - ratings
                                - votes
                                - connected_account
                                - rate_card_amount
                                - pickup_eta
                                - pickup_eta_time
                                - dropoff_station
                                - pickup_station
                                - delivery_eta
                                - delivery_eta_time
                                - info
                                - currency
                                - vat
                                - total
                                - tracking
                                - token
                            preferenceStatus:
                              type: string
                            actualAmount:
                              type: number
                            markup:
                              type: integer
                            markupMeta:
                              type: 'null'
                          required:
                            - id
                            - _id
                            - name
                            - media
                            - rateType
                            - amount
                            - serviceType
                            - currency
                            - estimatedDeliveryETA
                            - estimatedPickupETA
                            - estimatedDeliveryETADateTime
                            - estimatedPickupETADateTime
                            - description
                            - courier
                            - provider
                            - type
                            - platform
                            - ratings
                            - meta
                            - preferenceStatus
                            - actualAmount
                            - markup
                            - markupMeta
                    required:
                      - recommended
                      - providers
                  success:
                    type: boolean
                required:
                  - msg
                  - data
                  - success
          description: ''

````