> ## 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.

# Send a test event

> Sends a sample `checkout.completed` event to a webhook once and reports how your server answered. The sample checkout is for 10 US dollars and has the reference `test`. It is not saved and does not appear in your events.

Requires an API key with write access.



## OpenAPI

````yaml /openapi.json post /webhooks/{webhook_id}/test
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:
  /webhooks/{webhook_id}/test:
    post:
      tags:
        - Webhooks
      summary: Send a test event
      description: >-
        Sends a sample `checkout.completed` event to a webhook once and reports
        how your server answered. The sample checkout is for 10 US dollars and
        has the reference `test`. It is not saved and does not appear in your
        events.


        Requires an API key with write access.
      operationId: testWebhook
      parameters:
        - name: webhook_id
          in: path
          required: true
          description: The webhook ID.
          schema:
            type: string
      responses:
        '200':
          description: How your server answered.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - response
                properties:
                  success:
                    type: boolean
                    description: Always `true` for a successful request.
                  response:
                    type: object
                    required:
                      - code
                      - delivered
                    properties:
                      code:
                        type: integer
                        description: >-
                          The HTTP status your server returned. `0` if it could
                          not be reached or did not answer within 10 seconds.
                      delivered:
                        type: boolean
                        description: '`true` if your server returned a 2xx status.'
              example:
                success: true
                response:
                  code: 200
                  delivered: true
        '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: No webhook with this ID belongs to your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_webhook:
                  summary: Invalid webhook
                  value:
                    success: false
                    response: Invalid webhook
components:
  schemas:
    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.