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

# Récupérer les paramètres de livraison



## OpenAPI

````yaml /fr/api-reference/location-management-v1.json get /v1/locations/{location_id}/delivery_settings
openapi: 3.0.0
info:
  title: API de gestion des établissements Chataigne
  description: Créez, mettez à jour et configurez les établissements Chataigne.
  version: '2026-05-01'
  contact: {}
servers:
  - url: https://server.chataigne.ai
security: []
tags: []
paths:
  /v1/locations/{location_id}/delivery_settings:
    get:
      tags:
        - Paramètres des établissements
      summary: Récupérer les paramètres de livraison
      operationId: LocationSettingsV1Controller_getDeliverySettings
      parameters:
        - name: location_id
          in: path
          required: true
          schema:
            type: string
          example: loc_023d6847de544fdb9a5510db
      responses:
        '200':
          description: Paramètres de livraison.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeliverySettings'
        '401':
          description: Authentification requise.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            L’identité à l’origine de la requête n’est pas autorisée à effectuer
            cette opération.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: La ressource n’existe pas.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - organization-api-key: []
components:
  schemas:
    DeliverySettings:
      type: object
      properties:
        object:
          type: string
          enum:
            - delivery_settings
        location_id:
          type: string
        delivery_enabled:
          type: boolean
        pickup_enabled:
          type: boolean
        provider:
          type: string
          enum:
            - handledByStore
            - uberDirect
            - chaskis
          nullable: true
          description: >-
            Prestataire de livraison configurable depuis l’API publique, ou null
            lorsque la livraison est gérée en dehors de cette API.
        fee_strategy:
          type: string
          enum:
            - postalCode
            - deliveryZone
            - percentage
            - customerPaysAll
            - restaurantPaysAll
            - smart
            - distanceRange
          description: >-
            `postalCode` uses the matching `postal_codes` entry; `deliveryZone`
            uses the matching polygon in `delivery_zones`; `percentage` charges
            the customer the `fee_percentage` share of the provider fee;
            `customerPaysAll` passes the full provider fee to the customer;
            `restaurantPaysAll` displays no delivery fee to the customer;
            `smart` calculates a distance-based customer fee using the smart
            pricing configuration; `distanceRange` uses the first matching
            bracket in `distance_ranges`.
        postal_codes:
          type: array
          items:
            $ref: '#/components/schemas/DeliveryPostalCode'
        delivery_zones:
          type: array
          items:
            $ref: '#/components/schemas/DeliveryZone'
        fee_percentage:
          type: number
          nullable: true
        smart_parameters:
          allOf:
            - $ref: '#/components/schemas/SmartParameters'
          nullable: true
        distance_ranges:
          type: array
          items:
            $ref: '#/components/schemas/DistanceRange'
        max_delivery_radius_in_km:
          type: number
          nullable: true
        max_delivery_fee:
          allOf:
            - $ref: '#/components/schemas/Money'
          nullable: true
        min_order_amount:
          type: number
          nullable: true
        max_order_amount:
          type: number
          minimum: 0
          nullable: true
          description: >-
            Sous-total maximal explicite d’une commande en livraison. Null
            supprime le plafond de l’établissement ; les limites propres au
            prestataire peuvent toujours s’appliquer.
        collection_max_order_amount:
          type: number
          minimum: 0
          nullable: true
          description: >-
            Sous-total maximal d’une commande à emporter ; null désactive le
            plafond du retrait.
        max_items_number:
          type: number
          nullable: true
        delivery_verification_mode:
          type: string
          enum:
            - picture
            - pincode
          nullable: true
        uber_direct_pickup_notes_enabled:
          type: boolean
        uber_direct_pickup_notes:
          type: string
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - authorization_error
                - not_found_error
                - conflict_error
                - rate_limit_error
                - idempotency_error
                - api_error
            code:
              type: string
              example: resource_missing
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
              example: req_8f2c…
            details:
              type: object
              additionalProperties: true
    DeliveryPostalCode:
      type: object
      required:
        - postal_code
        - minimum_order_amount
        - delivery_fee
      properties:
        postal_code:
          type: integer
          example: 1204
        minimum_order_amount:
          type: number
          minimum: 0
          example: 25
        delivery_fee:
          $ref: '#/components/schemas/Money'
    DeliveryZone:
      type: object
      required:
        - id
        - name
        - polygon
        - minimum_order_amount
        - delivery_fee
      properties:
        id:
          type: string
          example: zone-centre
        name:
          type: string
          example: Centre-ville
        polygon:
          type: array
          items:
            $ref: '#/components/schemas/GeoPoint'
        minimum_order_amount:
          type: number
          minimum: 0
          example: 25
        delivery_fee:
          $ref: '#/components/schemas/Money'
    SmartParameters:
      type: object
      required:
        - menu_uplift
        - uber_commission
        - target_lift
        - coverage_fraction
      properties:
        menu_uplift:
          type: number
          minimum: 0
          maximum: 1
          example: 0.15
        uber_commission:
          type: number
          minimum: 0
          maximum: 1
          example: 0.3
        target_lift:
          type: number
          minimum: 0
          maximum: 1
          example: 0.03
        coverage_fraction:
          type: number
          minimum: 0
          maximum: 1
          example: 0.8
    DistanceRange:
      type: object
      required:
        - up_to_km
        - displayed_fee
      properties:
        up_to_km:
          type: number
          minimum: 0
          example: 2
        displayed_fee:
          type: number
          minimum: 0
          example: 3.5
        minimum_order_amount:
          type: number
          minimum: 0
          example: 20
    Money:
      type: object
      properties:
        amount:
          type: number
        currency:
          type: string
    GeoPoint:
      type: object
      properties:
        latitude:
          type: number
          example: 46.20439
        longitude:
          type: number
          example: 6.14316
  securitySchemes:
    organization-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Clé API d’établissement ou d’organisation.

````