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

# Obtenir l'offre eSIM

> Returns the eSIM setup fee and the data tiers you can order for an account you provisioned, priced on the subscription you pay for that account: its currency, its billing interval and your partner discount. Amounts are in the smallest currency unit (e.g. cents). Requires the `PARTNER` scope.

<Note>
  **Scope requis :** `PARTNER`
</Note>

Renvoie les frais de mise en service d'une eSIM et les paliers de données que vous pouvez commander pour l'un de vos comptes. Appelez-le avant [Commander une eSIM](/fr/v2/api-reference/partner/order-esim) pour afficher ou vérifier le prix.

* Les prix suivent l'abonnement que vous payez pour ce compte : sa devise, sa périodicité de facturation et votre remise partenaire. Deux comptes sur des périodicités différentes ont des offres différentes.
* Les montants sont exprimés dans la plus petite unité de la devise (centimes pour l'EUR).
* Les montants de l'exemple de réponse sont fictifs : les prix réels sont ceux que cet endpoint renvoie pour le compte.
* `setup_price_cents` correspond à des frais uniques par eSIM. Ils sont débités avec la première période du palier.
* `tiers[].price_cents` est le prix du palier par période de facturation (`interval`). Passez un `tiers[].code` comme `tier` à la commande.
* `tiers[].data_mb` est la quantité de données mobiles incluse dans le palier, en Mo (1 Go = 1024 Mo).
* Vous ne pouvez consulter l'offre que des comptes créés par votre propre clé API. Tout autre id échoue avec `PARTNER_ACCOUNT_NOT_FOUND`.
* Si les eSIM ne peuvent pas être commandées pour ce compte pour le moment, la requête échoue avec `ESIM_UNAVAILABLE`.


## OpenAPI

````yaml GET /v2/api/partner/accounts/{account_id}/esims/offer
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
  - name: Notes
    description: >-
      Internal team notes on conversations and CRM people, with @mention
      support. Notes are never visible to the contact.
  - name: Threads
    description: >-
      Team discussion threads attached to a conversation item (call, SMS, or
      conversation note). One thread per item.
  - name: AI Receptionist
    description: >-
      Read and write the AI receptionist configuration of a phone line: business
      details, voice, prompt, capabilities, business hours, transfer rules,
      scheduling calendars and knowledge sources.
paths:
  /v2/api/partner/accounts/{account_id}/esims/offer:
    get:
      tags:
        - Partner
      summary: Get eSIM offer
      description: >-
        Returns the eSIM setup fee and the data tiers you can order for an
        account you provisioned, priced on the subscription you pay for that
        account: its currency, its billing interval and your partner discount.
        Amounts are in the smallest currency unit (e.g. cents). Requires the
        `PARTNER` scope.
      operationId: getPartnerEsimOffer
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
          description: The account id returned by Create account (`usr-*`).
      responses:
        '200':
          description: eSIM offer for the account
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      currency:
                        type: string
                        description: Currency of the subscription you pay for the account.
                        example: eur
                      interval:
                        type: string
                        enum:
                          - MONTHLY
                          - YEARLY
                        description: >-
                          Billing interval of the tiers, the same as the
                          account's subscription.
                        example: MONTHLY
                      setup_price_cents:
                        type: integer
                        format: int64
                        description: >-
                          One-off setup fee per eSIM, charged with the first
                          tier period.
                        example: 1234
                      tiers:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: Pass it as `tier` when you order.
                              example: ESIM_20GB
                            data_mb:
                              type: integer
                              format: int64
                              description: >-
                                Mobile data included in the tier, in MB (1 GB =
                                1024 MB).
                              example: 20480
                            price_cents:
                              type: integer
                              format: int64
                              description: Price of the tier per billing interval.
                              example: 3456
              example:
                data:
                  currency: eur
                  interval: MONTHLY
                  setup_price_cents: 1234
                  tiers:
                    - code: ESIM_5GB
                      data_mb: 5120
                      price_cents: 2345
                    - code: ESIM_20GB
                      data_mb: 20480
                      price_cents: 3456
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '403':
          description: The API key lacks the PARTNER scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
        '404':
          description: >-
            No account with this id was provisioned by your API key
            (PARTNER_ACCOUNT_NOT_FOUND).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
        '429':
          $ref: '#/components/responses/ApiRateLimited'
        '500':
          description: >-
            eSIMs cannot be ordered for this account right now
            (ESIM_UNAVAILABLE).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
      security:
        - ApiKeyAuth: []
components:
  responses:
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.