Shieldz Invoices API

One payment for an amount, or for line_items priced from your catalog. The buyer pays at pay_url.

GitHub OpenAPI

Operations 3

POST /invoices Create an invoice #
GET /invoices List invoices (newest first) #
GET /invoices/{id} Retrieve an invoice by its public id #

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/shieldz-cash:shieldz-cash-invoices-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

shieldz-cash-invoices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shieldz Invoices API
  version: 1.0.0
  description: 'Non-custodial crypto payments. Create invoices, send buyers to a hosted checkout, and reconcile via signed webhooks. Funds settle straight to the merchant''s own wallet, Shieldz only ever holds a public key. Sell from a catalog like Stripe: products with immutable prices, payment links (/l/{id}) and a buy button, so a buyer''s browser never sets the price.'
  contact:
    name: Shieldz
    url: https://shieldz.cash
    email: support@shieldz.cash
  license:
    name: Proprietary
servers:
- url: https://shieldz.cash/api/v1
security:
- bearerAuth: []
tags:
- name: Invoices
  description: One payment for an amount, or for line_items priced from your catalog. The buyer pays at pay_url.
paths:
  /invoices:
    post:
      operationId: createInvoice
      tags:
      - Invoices
      summary: Create an invoice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceCreate'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invoice'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
    get:
      operationId: listInvoices
      tags:
      - Invoices
      summary: List invoices (newest first)
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      - name: starting_after
        in: query
        schema:
          type: string
        description: 'Cursor: a public invoice id from a previous page.'
      - name: status
        in: query
        schema:
          $ref: '#/components/schemas/InvoiceStatus'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Invoice'
                  has_more:
                    type: boolean
  /invoices/{id}:
    get:
      operationId: getInvoice
      tags:
      - Invoices
      summary: Retrieve an invoice by its public id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Invoice'
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    InvoiceCreate:
      type: object
      description: Send amount_usd_cents, or line_items and the total is computed from them.
      properties:
        amount_usd_cents:
          type: integer
          minimum: 100
          maximum: 10000000
          description: Amount in USD cents. Omit when sending line_items.
        line_items:
          type: array
          maxItems: 20
          items:
            type: object
            properties:
              price:
                type: string
                description: A price ID (price_…) from your catalog.
              price_data:
                type: object
                required:
                - name
                - unit_amount_usd_cents
                properties:
                  name:
                    type: string
                  unit_amount_usd_cents:
                    type: integer
                    minimum: 0
                description: An inline price, for items not in your catalog.
              quantity:
                type: integer
                minimum: 1
                maximum: 999
                default: 1
              amount_usd_cents:
                type: integer
                description: Only for a price where the customer chooses the amount.
        client_reference_id:
          type: string
          maxLength: 200
          description: Your order or cart id, echoed on the invoice and webhooks.
        return_url:
          type: string
          format: uri
          description: Public https URL the paid checkout returns the buyer to. success_url is accepted as an alias.
        memo:
          type: string
        customer_email:
          type: string
          format: email
        expires_in_seconds:
          type: integer
          minimum: 300
          maximum: 86400
          default: 3600
        idempotency_key:
          type: string
          description: Replaying the same key returns the original invoice.
        metadata:
          type: object
          additionalProperties: true
          description: Arbitrary JSON, echoed back on webhooks.
        settlement:
          $ref: '#/components/schemas/Settlement'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            param:
              type: string
    InvoiceStatus:
      type: string
      enum:
      - pending
      - paid
      - expired
      - failed
    Invoice:
      type: object
      properties:
        id:
          type: string
        object:
          const: invoice
        amount_usd_cents:
          type: integer
        memo:
          type:
          - string
          - 'null'
        settlement:
          $ref: '#/components/schemas/Settlement'
        status:
          $ref: '#/components/schemas/InvoiceStatus'
        pay_url:
          type: string
          format: uri
        expires_at:
          type: integer
          description: Unix milliseconds.
        paid_at:
          type:
          - integer
          - 'null'
        mode:
          type: string
          enum:
          - live
          - test
        metadata: {}
        line_items:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/LineItem'
        payment_link:
          type:
          - string
          - 'null'
          description: The payment link this invoice came from.
        shipping:
          type:
          - object
          - 'null'
          description: Shipping address from the payment link page. Only returned to the shop (its API key or dashboard).
          properties:
            name:
              type: string
            line1:
              type: string
            line2:
              type: string
            city:
              type: string
            state:
              type: string
            postal_code:
              type: string
            country:
              type: string
        client_reference_id:
          type:
          - string
          - 'null'
    LineItem:
      type: object
      properties:
        price:
          type:
          - string
          - 'null'
          description: The catalog price (price_…); null for inline price_data.
        product:
          type:
          - string
          - 'null'
          description: The catalog product (prod_…); null for inline price_data.
        name:
          type: string
          description: Product name at the time of purchase.
        quantity:
          type: integer
        unit_amount_usd_cents:
          type: integer
          description: Price per unit charged, in USD cents.
        amount_usd_cents:
          type: integer
          description: unit_amount_usd_cents × quantity.
    Settlement:
      type: object
      properties:
        chain:
          type: string
          example: BASE
        asset:
          type: string
          example: USDC
        address:
          type: string
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key: sk_live_… or sk_test_…'