Shieldz Payment links API

A hosted order page at /l/plink_… for one or more prices, and the target of the widget's buy button. These are catalog links tied to your shop and API key. They have no test mode: a link takes real payments whichever key made it. The keyless POST /api/v1/links on /agent is a different, simpler thing: a one-off link to a wallet address, with no account.

GitHub OpenAPI

Operations 4

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-payment-links-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-payment-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shieldz Payment links 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: Payment Links
  description: 'A hosted order page at /l/plink_… for one or more prices, and the target of the widget''s buy button. These are catalog links tied to your shop and API key. They have no test mode: a link takes real payments whichever key made it. The keyless POST /api/v1/links on /agent is a different, simpler thing: a one-off link to a wallet address, with no account.'
paths:
  /payment_links:
    post:
      operationId: createPaymentLink
      tags:
      - Payment Links
      summary: 'Create a payment link: a hosted page at /l/{id} and the target of the widget''s…'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentLinkCreate'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentLink'
        '400':
          $ref: '#/components/responses/Error'
    get:
      operationId: listPaymentLinks
      tags:
      - Payment Links
      summary: List payment links with their paid count and total (up to 500, active first)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PaymentLink'
  /payment_links/{id}:
    get:
      operationId: getPaymentLink
      tags:
      - Payment Links
      summary: Retrieve a payment link
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentLink'
        '404':
          $ref: '#/components/responses/Error'
    post:
      operationId: updatePaymentLink
      tags:
      - Payment Links
      summary: 'Update a payment link (its URL stays the same); active: false turns it off'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PaymentLinkCreate'
              properties:
                active:
                  type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentLink'
webhooks:
  invoice.paid:
    post:
      summary: Sent when an invoice is paid.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEvent'
      responses:
        '200':
          description: Acknowledged
      tags:
      - Payment Links
  invoice.failed:
    post:
      summary: Sent when a payment fails or is refunded
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookEvent'
      responses:
        '200':
          description: Acknowledged
      tags:
      - Payment Links
components:
  schemas:
    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
    WebhookEvent:
      type: object
      properties:
        type:
          type: string
          example: invoice.paid
        created:
          type: integer
        data:
          type: object
          properties:
            invoice:
              $ref: '#/components/schemas/Invoice'
    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.
    PaymentLink:
      type: object
      properties:
        id:
          type: string
          example: plink_7Gd1KsP0aZ4Hn8Wq
        object:
          const: payment_link
        url:
          type: string
          format: uri
          description: 'The hosted page (/l/plink_…). Share it, or put the ID on a buy button: <button data-shieldz-link="plink_…">.'
        active:
          type: boolean
          description: false once turned off; the page then says the item isn't available.
        line_items:
          type: array
          items:
            type: object
            properties:
              price:
                oneOf:
                - $ref: '#/components/schemas/Price'
                - type: 'null'
              product:
                type:
                - object
                - 'null'
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  image_url:
                    type:
                    - string
                    - 'null'
                  active:
                    type: boolean
              quantity:
                type: integer
              adjustable_quantity:
                type: object
                properties:
                  enabled:
                    type: boolean
                  minimum:
                    type: integer
                  maximum:
                    type: integer
        collect_email:
          type: boolean
        collect_shipping_address:
          type: boolean
        custom_fields:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              label:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                    - custom
                  custom:
                    type: string
              type:
                type: string
                enum:
                - text
              optional:
                type: boolean
        after_completion:
          type: object
          description: '{ type: "redirect", redirect: { url } } or { type: "hosted_confirmation", hosted_confirmation: { custom_message } }.'
        paid_count:
          type: integer
          description: Invoices from this link that were paid.
        paid_usd_cents:
          type: integer
          description: Their total, in USD cents.
        created_at:
          type: integer
          description: Unix milliseconds.
        updated_at:
          type: integer
          description: Unix milliseconds.
    PaymentLinkCreate:
      type: object
      required:
      - line_items
      properties:
        line_items:
          type: array
          maxItems: 20
          items:
            type: object
            description: Send price or product. Each price can appear once.
            properties:
              price:
                type: string
                description: An active price (price_…) of this shop.
              product:
                type: string
                description: Shorthand for the product's default price. The link keeps that price ID.
              quantity:
                type: integer
                minimum: 1
                maximum: 999
                default: 1
                description: Starting quantity. Must be 1 for a customer-chosen price.
              adjustable_quantity:
                type: object
                description: Let the buyer change the quantity with a − / + stepper. Not allowed with a customer-chosen price.
                properties:
                  enabled:
                    type: boolean
                    description: true shows the stepper.
                  minimum:
                    type: integer
                    minimum: 0
                    default: 1
                    description: Lowest quantity the buyer can pick.
                  maximum:
                    type: integer
                    maximum: 999
                    default: 99
                    description: Highest quantity the buyer can pick.
        idempotency_key:
          type: string
          maxLength: 256
          description: 'Retrying with the same key returns the first object (200, idempotent_replay: true) instead of creating another. The SDKs add one for you.'
        collect_email:
          type: boolean
          default: false
          description: Ask the buyer for an email before payment.
        collect_shipping_address:
          type: boolean
          default: false
          description: Ask for a shipping address. It's on the invoice as shipping, for your API key and webhooks only.
        custom_fields:
          type: array
          maxItems: 3
          description: 'Text questions for the buyer, like a username on your site. Answers are on the invoice as metadata.custom_fields: [{ key, label, value }]. Prefill one with ?cf_<key>=… on the link URL.'
          items:
            type: object
            required:
            - key
            - label
            properties:
              key:
                type: string
                pattern: ^[A-Za-z0-9_]{1,40}$
              label:
                description: 'The question, up to 50 characters: a string or { type: "custom", custom }.'
                oneOf:
                - type: string
                  maxLength: 50
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                      - custom
                    custom:
                      type: string
                      maxLength: 50
              type:
                type: string
                enum:
                - text
                default: text
              optional:
                type: boolean
                default: false
        after_completion:
          type: object
          description: What the buyer sees after paying. Defaults to the hosted confirmation.
          properties:
            type:
              type: string
              enum:
              - hosted_confirmation
              - redirect
            hosted_confirmation:
              type: object
              properties:
                custom_message:
                  type: string
                  maxLength: 500
                  description: A thank-you note on the confirmation page.
            redirect:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                  description: A public https URL to send the buyer to.
      example:
        line_items:
        - product: prod_3hQ8ZpW2Nc6Ty0Lk
          quantity: 1
          adjustable_quantity:
            enabled: true
            minimum: 1
            maximum: 5
        collect_shipping_address: true
        after_completion:
          type: hosted_confirmation
          hosted_confirmation:
            custom_message: Thanks! We ship within 2 days.
    Price:
      type: object
      properties:
        id:
          type: string
          example: price_9fK2LmQx7Rt4Vb1N
        object:
          const: price
        product:
          type: string
          description: The product (prod_…) this price belongs to.
        active:
          type: boolean
          description: false once archived. An archived price can't be added to new carts or links.
        unit_amount_usd_cents:
          type:
          - integer
          - 'null'
          description: Fixed price per unit in USD cents; null when the customer chooses the amount.
        custom_unit_amount:
          type:
          - object
          - 'null'
          description: The range the customer chooses from; null for a fixed price.
          properties:
            minimum_usd_cents:
              type:
              - integer
              - 'null'
            maximum_usd_cents:
              type:
              - integer
              - 'null'
            preset_usd_cents:
              type:
              - integer
              - 'null'
        created_at:
          type: integer
          description: Unix milliseconds.
    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_…'