> ## 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 new daily spending limit

> Sets a new daily spending limit for the authenticated user's Safe account.

The signature should be generated by signing the EIP-712 typed data obtained from
the `/api/v1/accounts/daily-limit/transaction-data` endpoint.
If using a smart wallet, the smartWalletAddress is required for ERC1271 signatures.

The limit update is processed through a delay relay mechanism that executes after 3 minutes.

**Note:** The newLimit must be an integer value between 1 and 8000.




## OpenAPI

````yaml https://api.gnosispay.com/api-docs/spec.json put /api/v1/accounts/daily-limit
openapi: 3.0.0
info:
  title: GnosisPay API
  version: 1.0.0
  description: OpenAPI documentation for GnosisPay
servers:
  - url: https://api.gnosispay.com
security: []
tags:
  - name: Account Management
    description: Information about your Account
  - name: Authentication
    description: Authenticate to our API using SIWE
  - name: Card Management
    description: Manage all your Cards
  - name: IBAN
    description: Integrate with Monerium to issue IBANs
  - name: KYC
    description: KYC using Sumsub SDK
  - name: Physical Card Order
    description: Order a Physical Card and manage the process
  - name: Rewards
    description: Cashback Rewards
  - name: Safe Management
    description: Manage your Safe
  - name: Transactions
    description: Manage Card Transactions
  - name: User
    description: Manage User Information
  - name: Webhooks
    description: Manage Webhooks
paths:
  /api/v1/accounts/daily-limit:
    put:
      tags:
        - Account Management
      summary: Set new daily spending limit
      description: >
        Sets a new daily spending limit for the authenticated user's Safe
        account.


        The signature should be generated by signing the EIP-712 typed data
        obtained from

        the `/api/v1/accounts/daily-limit/transaction-data` endpoint.

        If using a smart wallet, the smartWalletAddress is required for ERC1271
        signatures.


        The limit update is processed through a delay relay mechanism that
        executes after 3 minutes.


        **Note:** The newLimit must be an integer value between 1 and 8000.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - newLimit
                - signature
                - message
              properties:
                newLimit:
                  type: integer
                  minimum: 1
                  maximum: 8000
                  description: The new daily spending limit to set (must be an integer).
                  example: 2500
                signature:
                  type: string
                  description: The EIP-712 signature authorizing this limit change.
                  example: 0x1234567890abcdef...
                message:
                  type: object
                  required:
                    - salt
                    - data
                  description: >-
                    The message object containing transaction data and salt from
                    the EIP-712 typed data.
                  properties:
                    salt:
                      type: string
                      description: The salt value used in the EIP-712 typed data.
                      example: >-
                        0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
                    data:
                      type: string
                      description: >-
                        The encoded transaction data from the typed data
                        message.
                      example: >-
                        0xa8ec43eefe687fc128d1915040376d20ccb1bf40d838ddd82bf9b0ba3da683cc2a2516230000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000069d17119dc5a800000000000000000000000000000000000000000000000000000000000000015180000000000000000000000000000000000000000000000000000000006866fd60
                smartWalletAddress:
                  type: string
                  description: >-
                    Optional. If using a smart account, the address of the smart
                    wallet to use for the limit change.
                  example: '0x1234567890abcdef1234567890abcdef12345678'
      responses:
        '200':
          description: Successfully submitted the daily limit update request.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    description: The created delayed transaction details.
        '400':
          description: Bad request - invalid signature.
        '401':
          description: Unauthorized - invalid or missing authentication token.
        '404':
          description: Safe account or token not found for the user.
        '422':
          description: Unprocessable Entity - validation errors in request body.
        '500':
          description: Internal server error.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````