BTCPay Server Payment Requests API

Payment Requests operations

GitHub OpenAPI
Business capability
Payment Initiation Management BC-1340.10

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/stores/{storeId}/payment-requests List a store's payment requests · Get payment requests #
Ask an LLM
“Which payment requests have I created in a store?”
“Can I see all pending payment requests for one store?”
Tell an agent
List payment requests for store {storeId}.
Show every payment request in store {storeId}.
POST /api/v1/stores/{storeId}/payment-requests Create a new payment request in a store · Create a new payment request #
Ask an LLM
“How do I create a payment request for a customer in BTCPay?”
“Can I let customers partially pay a new payment request?”
Tell an agent
Create a payment request in store {storeId} for {amount} {currency} titled {title}.
In store {storeId}, create a new payment request for {amount} with reference {reference_id}.
GET /api/v1/payment-requests/{paymentRequestId} Get a payment request · Get payment request #
Ask an LLM
“What amount and status does a payment request have?”
“Can I look up one payment request by its ID?”
Tell an agent
Get payment request {paymentRequestId}.
Show the details of payment request {paymentRequestId}.
DELETE /api/v1/payment-requests/{paymentRequestId} Archive a payment request · Archive payment request #
Ask an LLM
“How do I remove a payment request?”
“Can I archive a payment request so it's no longer shown?”
Tell an agent destructive · confirm first
Archive payment request {paymentRequestId}.
Remove payment request {paymentRequestId}.
PUT /api/v1/payment-requests/{paymentRequestId} Update a payment request · Update payment request #
Ask an LLM
“Can I change the amount or expiry of a payment request?”
“How do I edit a payment request I already created?”
Tell an agent
Set payment request {paymentRequestId} to {amount} {currency}.
Change the expiry of payment request {paymentRequestId} to {expiryDate}.
POST /api/v1/payment-requests/{paymentRequestId}/pay Create an invoice for a payment request · Create a new invoice for the payment request #
Ask an LLM
“How do I create an invoice for a payment request?”
“Can I reuse an existing pending invoice for a payment request?”
Tell an agent
Create an invoice for payment request {paymentRequestId}.
Pay {amount} on payment request {paymentRequestId} with allowPendingInvoiceReuse {allowPendingInvoiceReuse}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/btcpay:btcpay-payment-requests-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

btcpay-payment-requests-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BTCPay Greenfield Payment Requests API
  version: v1
  description: '# Introduction


    The BTCPay Server Greenfield API is a REST API. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.


    # Authentication


    You can authenticate either via Basic Auth or an API key. It''s recommended to use an API key for better security. You can create an API key in the BTCPay Server UI under `Account` -> `Manage Account` -> `API keys`. You can restrict the API key for one or multiple stores and for specific permissions. For testing purposes, you can give it the ''Unrestricted access'' permission. On production you should limit the permissions to the actual endpoints you use, you can see the required permission on the API docs at the top of each endpoint under `AUTHORIZATIONS`.


    If you want to simplify the process of creating API keys for your users, you can use the Authorization endpoint to predefine permissions and redirect your users to the BTCPay Server Authorization UI. You can find more information about this on the API Authorization Flow docs page.


    # Usage examples


    Use **Basic Auth** to read store information with cURL:

    ```bash

    BTCPAY_INSTANCE="https://mainnet.demo.btcpayserver.org"

    USER="MyTestUser@gmail.com"

    PASSWORD="notverysecurepassword"

    PERMISSION="btcpay.store.canmodifystoresettings"

    BODY="$(echo "{}" | jq --arg "a" "$PERMISSION" ''. + {permissions:[$a]}'')"


    API_KEY="$(curl -s \

    -H "Content-Type: application/json" \

    --user "$USER:$PASSWORD" \

    -X POST \

    -d "$BODY" \

    "$BTCPAY_INSTANCE/api/v1/api-keys" | jq -r .apiKey)"

    ```


    Use an **API key** to read store information with cURL:

    ```bash

    STORE_ID="yourStoreId"


    curl -s \

    -H "Content-Type: application/json" \

    -H "Authorization: token $API_KEY" \

    -X GET \

    "$BTCPAY_INSTANCE/api/v1/stores/$STORE_ID"

    ```


    You can find more examples on our docs for different programming languages:

    - cURL

    - Javascript/Node.Js

    - PHP'
  contact:
    name: BTCPay Server
    url: https://btcpayserver.org
  license:
    name: MIT
    url: https://github.com/btcpayserver/btcpayserver/blob/master/LICENSE
servers:
- url: /
  description: BTCPay Server Greenfield API
security:
- API_Key: []
  Basic: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/btcpay/openapi/btcpay-payment-requests-api-openapi.yml