> ## Documentation Index
> Fetch the complete documentation index at: https://gnosispay-feat-v2-auth-module.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Account Daily Spending Limit

> Sets the daily spending limit for the authenticated user's account. `amount` is in the currency's smallest unit — for USD that means cents, so to set a $10.00 limit send `1000`, and the maximum allowed value `1000000` corresponds to $10,000.00. Must be in (0, 1,000,000]. Only USD is currently accepted. The response returns the new limit immediately with `syncStatus: pending` and transitions to `synced` once the change has been applied downstream.



## OpenAPI

````yaml https://gp-auth-module.prod.gnosispay.com/openapi.json put /user/account/limit
openapi: 3.0.0
info:
  version: 1.0.0
  title: SIWE Authentication API
  description: Sign In With Ethereum authentication service
servers:
  - url: https://gp-auth-module.prod.gnosispay.com
    description: API server
security: []
paths:
  /user/account/limit:
    put:
      tags:
        - User
      summary: Set Account Daily Spending Limit
      description: >-
        Sets the daily spending limit for the authenticated user's account.
        `amount` is in the currency's smallest unit — for USD that means cents,
        so to set a $10.00 limit send `1000`, and the maximum allowed value
        `1000000` corresponds to $10,000.00. Must be in (0, 1,000,000]. Only USD
        is currently accepted. The response returns the new limit immediately
        with `syncStatus: pending` and transitions to `synced` once the change
        has been applied downstream.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetAccountLimitRequest'
      responses:
        '200':
          description: Account limit updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountLimit'
        '400':
          description: Bad Request - unsupported currency or invalid amount
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationOrError'
        '401':
          description: Unauthorized - Invalid JWT
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: User or account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Bad Gateway - failed to update limit in Core API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - Bearer: []
components:
  schemas:
    SetAccountLimitRequest:
      type: object
      properties:
        amount:
          type: integer
          minimum: 1
          maximum: 1000000
          description: >-
            Daily limit in the currency's smallest unit (e.g. cents for USD).
            For USD: send 1000 to set a $10.00 limit, send 1000000 to set the
            $10,000.00 cap. Must be in (0, 1,000,000].
        currency:
          type: string
          description: >-
            ISO-4217 currency code. Only `USD` is currently accepted; other
            values return 400.
      required:
        - amount
        - currency
    AccountLimit:
      type: object
      properties:
        amount:
          type: integer
          description: >-
            Daily limit in the currency's smallest unit (e.g. cents for USD).
            Divide by 10^decimals to get the major-unit value. For USD
            (decimals=2): amount=1000 means $10.00, amount=1000000 means
            $10,000.00.
        currency:
          type: string
          description: ISO-4217 currency code, e.g. USD.
        decimals:
          type: integer
          description: Number of decimal places for this currency (e.g. 2 for USD).
        syncStatus:
          type: string
          enum:
            - pending
            - synced
            - failed
          description: >-
            Replication state of the limit. 'pending' immediately after an
            update, 'synced' once the change has been applied downstream,
            'failed' if the change could not be applied after retries.
        updatedAt:
          type: string
          format: date-time
          description: Last time this limit was modified.
        spentToday:
          type: integer
          description: >-
            Amount spent today against this limit, in the currency's smallest
            unit (e.g. cents for USD). Resets at the start of each calendar day.
        remaining:
          type: integer
          description: >-
            Remaining headroom today, in the currency's smallest unit. Equals
            `max(0, amount - spentToday)`.
      required:
        - amount
        - currency
        - decimals
        - syncStatus
        - updatedAt
        - spentToday
        - remaining
    ValidationOrError:
      anyOf:
        - $ref: '#/components/schemas/ValidationError'
        - $ref: '#/components/schemas/Error'
    Error:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      required:
        - success
        - error
    ValidationError:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            name:
              type: string
              enum:
                - ValidationError
            message:
              type: string
          required:
            - name
            - message
      required:
        - success
        - error

````