> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gnosispay.com/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 account.
`currency` must match the account native currency (`nativeCurrency` from
`GET /user/account`), and `amount` is in minor units of that currency.
USD, EUR, and GBP use 2 decimal places, so 1000000 is 10,000.00. The
response returns the new limit immediately with `syncStatus: pending`
and transitions to `synced` once the change has been applied. Once
synced, this is a cumulative spending limit, not a per-transaction cap:
an authorization that meets or exceeds the limit can be approved, after
which subsequent eligible authorizations are declined.



## OpenAPI

````yaml https://core.prod.gnosispay.com/user-api/openapi.json put /user/account/limit
openapi: 3.1.0
info:
  title: User Service
  version: 0.0.0
servers:
  - url: https://core.prod.gnosispay.com/user-api
    description: Production
    variables: {}
  - url: https://core.sandbox.gnosispay.in/user-api
    description: Sandbox
    variables: {}
security: []
tags:
  - name: Auth
  - name: User
  - name: Terms
  - name: Source of Funds
  - name: Phone
  - name: User Account
  - name: Cards
  - name: User Movements
  - name: KYC
  - name: PCI
  - name: 3DS
  - name: Health
paths:
  /user/account/limit:
    put:
      tags:
        - User Account
      summary: Set Account Daily Spending Limit
      description: |-
        Sets the daily spending limit for the authenticated user account.
        `currency` must match the account native currency (`nativeCurrency` from
        `GET /user/account`), and `amount` is in minor units of that currency.
        USD, EUR, and GBP use 2 decimal places, so 1000000 is 10,000.00. The
        response returns the new limit immediately with `syncStatus: pending`
        and transitions to `synced` once the change has been applied. Once
        synced, this is a cumulative spending limit, not a per-transaction cap:
        an authorization that meets or exceeds the limit can be approved, after
        which subsequent eligible authorizations are declined.
      operationId: User_setUserAccountLimit
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetAccountLimitRequest'
            examples:
              example0:
                description: 10,000.00 EUR
                value:
                  amount: 1000000
                  currency: EUR
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountLimit'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetUserAccountLimitBadRequestBody'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '502':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetUserAccountLimitBadGateway'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    SetAccountLimitRequest:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          format: int64
          minimum: 1
          description: |-
            Daily spending limit in minor units of `currency`.
            USD, EUR, and GBP use 2 decimal places, so 1000000 is 10,000.00.
          examples:
            - 1000000
        currency:
          type: string
          description: |-
            ISO-4217 currency code. Must match the account native currency
            (`nativeCurrency` from `GET /user/account`).
          examples:
            - EUR
      examples:
        - amount: 1000000
          currency: EUR
    AccountLimit:
      type: object
      required:
        - amount
        - currency
        - decimals
        - syncStatus
        - updatedAt
        - spentToday
        - remaining
      properties:
        amount:
          type: integer
          format: int64
          description: >-
            Daily limit in minor units of `currency`. Divide by 10^`decimals` to
            get

            the major-unit value. USD, EUR, and GBP use 2 decimal places.
        currency:
          type: string
          description: >-
            ISO-4217 currency code — the account native currency
            (`nativeCurrency`

            from `GET /user/account`).
        decimals:
          type: integer
          format: int32
          description: >-
            Number of decimal places for this currency (2 for USD, EUR, and
            GBP).
        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, `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
          format: int64
          description: |-
            Amount spent today against this limit, in minor units of `currency`.
            Resets at the start of each calendar day.
        remaining:
          type: integer
          format: int64
          description: >-
            Remaining headroom today, in minor units of `currency`. Equals
            max(0,

            amount - spentToday).
    SetUserAccountLimitBadRequestBody:
      type: object
      oneOf:
        - $ref: '#/components/schemas/SetUserAccountLimitValidationError'
        - $ref: '#/components/schemas/SetUserAccountLimitBusinessError'
      discriminator:
        propertyName: kind
        mapping:
          validation: '#/components/schemas/SetUserAccountLimitValidationError'
          business: '#/components/schemas/SetUserAccountLimitBusinessError'
      description: |-
        Discriminated 400 body for setting account limits. Both variants include
        `kind` so clients can branch on validation vs business failures.
    Unauthorized:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    NotFound:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    SetUserAccountLimitBadGateway:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    SetUserAccountLimitValidationError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - validation
        success:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/ValidationErrorDetail'
      description: Validation failure when the account limit request cannot be decoded.
    SetUserAccountLimitBusinessError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - business
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      description: Business failure when the requested account limit is not accepted.
    ValidationErrorDetail:
      type: object
      required:
        - name
        - message
      properties:
        name:
          type: string
          enum:
            - ValidationError
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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