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

> ## Agent Instructions
> The CoinStack API base URL is https://coinstack.net/api/v1. Authenticate with an API key sent as 'Authorization: Bearer sk_...' from a server, never from a browser. Every response is a JSON object with 'success' and 'response'. Amounts are strings; token amounts on quotes and payments are in the token's smallest unit. Fulfil an order when its checkout status is 'completed', not when the customer returns to success_url. Verify the CoinStack-Signature header on every webhook using the raw request body. The OpenAPI file is at https://docs.coinstack.net/openapi.json.

# Refresh a quote

> Returns a quote with an amount that is guaranteed again. If the quote has not reached `expires_at` it is returned unchanged. If it has, the amount is recalculated at the current price and `expires_at` moves forward. The deposit address stays the same.

Requires an API key with write access.



## OpenAPI

````yaml /openapi.json post /checkouts/{checkout_id}/quotes/{quote_id}/refresh
openapi: 3.1.0
info:
  title: CoinStack API
  version: 1.0.0
  description: >-
    Create checkouts, read payments and manage webhooks. Authenticate with an
    API key sent as a Bearer token. Every response is a JSON object with
    `success` and `response`.
servers:
  - url: https://coinstack.net/api/v1
security:
  - bearerAuth: []
tags:
  - name: Checkouts
    description: Requests for one payment.
  - name: Quotes
    description: >-
      Deposit addresses and amounts for showing payment details in your own
      interface.
  - name: Payments
    description: Transfers customers have sent.
  - name: Tokens
    description: The tokens and networks customers can pay with.
  - name: Webhooks
    description: URLs that receive events.
  - name: Events
    description: Changes to checkouts and payments, and their deliveries.
  - name: Webhook events
    description: Requests CoinStack sends to your webhooks.
paths:
  /checkouts/{checkout_id}/quotes/{quote_id}/refresh:
    post:
      tags:
        - Quotes
      summary: Refresh a quote
      description: >-
        Returns a quote with an amount that is guaranteed again. If the quote
        has not reached `expires_at` it is returned unchanged. If it has, the
        amount is recalculated at the current price and `expires_at` moves
        forward. The deposit address stays the same.


        Requires an API key with write access.
      operationId: refreshQuote
      parameters:
        - name: checkout_id
          in: path
          required: true
          description: The checkout ID.
          schema:
            type: string
        - name: quote_id
          in: path
          required: true
          description: The quote ID.
          schema:
            type: string
      responses:
        '200':
          description: The quote.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - response
                properties:
                  success:
                    type: boolean
                    description: Always `true` for a successful request.
                  response:
                    type: object
                    required:
                      - quote
                    properties:
                      quote:
                        $ref: '#/components/schemas/Quote'
              example:
                success: true
                response:
                  quote:
                    checkout_id: 8f3b2c1e-5d47-4a9b-b6e0-2c7f1a9d4e53
                    quote_id: >-
                      0x5c1d9a7e3b6f48021e9d7c4a5b3f6e8d1a2c4b6e8f0a1c3e5d7f9b2a4c6e8d0f
                    network: base
                    token: USDC
                    address: '0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1'
                    settlement: base
                    recipient: '0x91C4e7B2a6D83f05E2b7A9c4D6f8E1a3B5c7D9F0'
                    amount: '25000000'
                    received: '0'
                    expected: '24.77643200'
                    rate: '1.00000000'
                    cost: '0.02356800'
                    created_at: '2026-12-02T16:21:03.220145Z'
                    updated_at: '2026-12-02T16:21:03.220145Z'
                    expires_at: '2026-12-02T17:21:02.981377Z'
                    remaining: '25000000'
                    uri: >-
                      ethereum:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913@8453/transfer?address=0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1&uint256=25000000
        '400':
          description: The quote cannot be refreshed. The message says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_token:
                  summary: Invalid token
                  value:
                    success: false
                    response: Invalid token
                invalid_checkout:
                  summary: Invalid checkout
                  value:
                    success: false
                    response: Invalid checkout
        '401':
          description: The API key is missing, wrong or deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_authentication:
                  summary: Invalid authentication
                  value:
                    success: false
                    response: Invalid authentication
        '403':
          description: >-
            The API key is read only. This endpoint needs a key with write
            access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_permissions:
                  summary: Invalid permissions
                  value:
                    success: false
                    response: Invalid permissions
        '404':
          description: The checkout or the quote was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_checkout:
                  summary: Invalid checkout
                  value:
                    success: false
                    response: Invalid checkout
                invalid_quote:
                  summary: Invalid quote
                  value:
                    success: false
                    response: Invalid quote
components:
  schemas:
    Quote:
      type: object
      description: >-
        A deposit address and an amount for paying a checkout with one token on
        one network.
      required:
        - checkout_id
        - quote_id
        - network
        - token
        - address
        - settlement
        - recipient
        - amount
        - received
        - expected
        - rate
        - cost
        - created_at
        - updated_at
        - expires_at
        - remaining
        - uri
      properties:
        checkout_id:
          type: string
          format: uuid
          description: The checkout this quote belongs to.
        quote_id:
          type: string
          description: The quote ID.
        network:
          type: string
          description: The network the customer pays on.
          example: base
        token:
          type: string
          description: The token the customer pays with.
          example: USDC
        address:
          type: string
          description: >-
            The deposit address the customer sends the payment to. It belongs to
            this quote only.
        settlement:
          type: string
          description: The network your USDC is settled on.
          example: base
        recipient:
          type: string
          description: The address that receives your USDC.
        amount:
          type: string
          description: >-
            The full amount to pay with this token, in the token's smallest
            unit. Divide by 10 to the power of the token's `decimals` for the
            display amount.
          example: '25000000'
        received:
          type: string
          description: >-
            What completed payments on this quote have added up to so far, in
            the token's smallest unit.
        expected:
          type: string
          description: >-
            The USDC expected to reach your wallet if `amount` is paid in full.
            A decimal number sent as a string.
        rate:
          type: string
          description: >-
            The US dollar price of one token used for this quote. `1` for
            stablecoins. A decimal number sent as a string.
        cost:
          type: string
          description: >-
            The estimated network cost of moving this payment to your wallet, in
            US dollars. A decimal number sent as a string.
        created_at:
          type: string
          format: date-time
          description: When the quote was created. Time in RFC 3339 format, in UTC.
        updated_at:
          type: string
          format: date-time
          description: When the quote last changed. Time in RFC 3339 format, in UTC.
        expires_at:
          type: string
          format: date-time
          description: >-
            When the quoted amount stops being guaranteed. Time in RFC 3339
            format, in UTC.
        remaining:
          type: string
          description: >-
            What is still left to pay, in the token's smallest unit. Show this
            amount to the customer.
          example: '25000000'
        uri:
          type: string
          description: >-
            A payment link for wallets and QR codes, with the address and
            remaining amount filled in. On TRON this is the plain address.
      example:
        checkout_id: 8f3b2c1e-5d47-4a9b-b6e0-2c7f1a9d4e53
        quote_id: '0x5c1d9a7e3b6f48021e9d7c4a5b3f6e8d1a2c4b6e8f0a1c3e5d7f9b2a4c6e8d0f'
        network: base
        token: USDC
        address: '0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1'
        settlement: base
        recipient: '0x91C4e7B2a6D83f05E2b7A9c4D6f8E1a3B5c7D9F0'
        amount: '25000000'
        received: '0'
        expected: '24.77643200'
        rate: '1.00000000'
        cost: '0.02356800'
        created_at: '2026-12-02T16:21:03.220145Z'
        updated_at: '2026-12-02T16:21:03.220145Z'
        expires_at: '2026-12-02T17:21:02.981377Z'
        remaining: '25000000'
        uri: >-
          ethereum:0x833589fcd6edb6e08f4c7c32d4f71b54bda02913@8453/transfer?address=0x7a3e9c5d1b4f8026e9a1c3d5b7f9e2a4c6d8b0f1&uint256=25000000
    Error:
      type: object
      required:
        - success
        - response
      properties:
        success:
          type: boolean
          description: Always `false` for an error.
        response:
          type: string
          description: What went wrong, for example `Invalid amount`.
      example:
        success: false
        response: Invalid amount
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key, which starts with `sk_`. Create one in the dashboard under
        Developers.

````

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