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

# Payment event

> Sent when a payment is detected, completed or returned to the sender. `data.payment` is the payment as it was when the event happened.



## OpenAPI

````yaml /openapi.json webhook paymentEvent
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: {}
components:
  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.