Polygon ID Payment API

The Payment API from Polygon ID — 6 operation(s) for payment.

Operations 11

GET /v2/identities/{identifier}/payment-request Get Payment Requests #
POST /v2/identities/{identifier}/payment-request Create Payment Request #
GET /v2/identities/{identifier}/payment-request/{id} Get Payment Request #
DELETE /v2/identities/{identifier}/payment-request/{id} Delete Payment Request #
GET /v2/payment/settings Payments Configuration #
GET /v2/identities/{identifier}/payment/options Get Payment Options #
POST /v2/identities/{identifier}/payment/options Create Payment Option #
GET /v2/identities/{identifier}/payment/options/{id} Get Payment Option #
DELETE /v2/identities/{identifier}/payment/options/{id} Delete Payment Option #
PATCH /v2/identities/{identifier}/payment/options/{id} Update Payment Option #
POST /v2/identities/{identifier}/payment/verify/{nonce} Verify Payment #

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/polygon-id-payment-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

polygon-id-payment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Privado ID - Issuer Agent Payment API
  description: "The Issuer Node Core API is ideal for users who need multiple identities and for integrator profiles, who want to \ncreate solutions based on Privado ID functionalities and might be interested in having access to low level \ninformation such as Merkle Trees.\nThe Issuer Node API provide the following functionalities:\n* Create and retrieve Identities\n* Create a Verifiable Credential (VC)\n* Retrieve a Verifiable Credential or a list of Verifiable Credentials\n* Generate JSON to create a QR Code and use that to accept credentials in a wallet\n* Revoke a Verifiable Credential\n* Check revocation status of a Verifiable Credential\n* Retrieve the Revocation Status of a Verifiable Credential\n* Call Agent Endpoint using the Wallet App\n* Handle connections.\n"
  version: '1'
servers:
- url: https://issuer-node-core-api-testing.privado.id
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Payment
paths:
  /v2/identities/{identifier}/payment-request:
    get:
      summary: Get Payment Requests
      operationId: GetPaymentRequests
      description: Get payment requests for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - name: userDID
        in: query
        description: Filter by user DID
        required: false
        schema:
          type: string
      - name: schemaID
        in: query
        description: Filter by schema ID (schemas UUID)
        required: false
        schema:
          type: string
          x-go-type: uuid.UUID
          x-go-type-import:
            name: uuid
            path: github.com/google/uuid
      - name: nonce
        in: query
        description: Filter by nonce
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Payment Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPaymentRequestsResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Create Payment Request
      operationId: CreatePaymentRequest
      description: Create a payment request for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaymentRequest'
      responses:
        '201':
          description: Payment Request Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePaymentRequestResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
  /v2/identities/{identifier}/payment-request/{id}:
    get:
      summary: Get Payment Request
      operationId: GetPaymentRequest
      description: Get a specific payment request for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Retrieve a payment request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePaymentRequestResponse'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: Delete Payment Request
      operationId: DeletePaymentRequest
      description: Remove a specific payment request for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Payment request deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericMessage'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
  /v2/payment/settings:
    get:
      summary: Payments Configuration
      operationId: GetPaymentSettings
      description: Returns the server payments configuration
      tags:
      - Payment
      security:
      - basicAuth: []
      responses:
        '200':
          description: Payment settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentsConfiguration'
  /v2/identities/{identifier}/payment/options:
    get:
      summary: Get Payment Options
      operationId: GetPaymentOptions
      description: Get the payment options for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      responses:
        '200':
          description: Payment options
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentOptionsPaginated'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
    post:
      summary: Create Payment Option
      operationId: CreatePaymentOption
      description: Create a payment option for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentOptionRequest'
      responses:
        '201':
          description: Payment Option Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UUIDResponse'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
  /v2/identities/{identifier}/payment/options/{id}:
    get:
      summary: Get Payment Option
      operationId: GetPaymentOption
      description: Get a specific payment option for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Payment option
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentOption'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
    delete:
      summary: Delete Payment Option
      operationId: DeletePaymentOption
      description: Remove a specific payment option for the provided identity.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Payment option deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericMessage'
        '400':
          $ref: '#/components/responses/400'
        '500':
          $ref: '#/components/responses/500'
    patch:
      summary: Update Payment Option
      operationId: UpdatePaymentOption
      description: Update payment option for the provided identity.
      security:
      - basicAuth: []
      tags:
      - Payment
      parameters:
      - $ref: '#/components/parameters/pathIdentifier'
      - $ref: '#/components/parameters/id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePaymentOptionRequest'
      responses:
        '200':
          description: Schema information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericMessage'
        '400':
          $ref: '#/components/responses/400'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
  /v2/identities/{identifier}/payment/verify/{nonce}:
    post:
      summary: Verify Payment
      operationId: VerifyPayment
      description: Verify a payment by nonce.
      tags:
      - Payment
      security:
      - basicAuth: []
      parameters:
      - name: identifier
        schema:
          type: string
        required: true
        in: path
      - name: nonce
        schema:
          type: string
        in: path
        required: true
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentVerifyRequest'
      responses:
        '200':
          description: Payment verified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentStatus'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '500':
          $ref: '#/components/responses/500'
components:
  responses:
    '500':
      description: Internal Server  error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '409':
      description: Conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '404':
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GenericErrorMessage'
  schemas:
    GetPaymentRequestsResponse:
      type: array
      items:
        $ref: '#/components/schemas/CreatePaymentRequestResponse'
    PaymentRequestInfo:
      type: object
      x-go-type: protocol.PaymentRequestInfo
      x-go-type-import:
        name: protocol
        path: github.com/iden3/iden3comm/v2/protocol
    UUIDResponse:
      type: object
      required:
      - id
      properties:
        id:
          type: string
          x-omitempty: false
          example: c79c9c04-8c98-40f2-a7a0-5eeabf08d836
    GenericErrorMessage:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          example: Something happen
    PaginatedMetadata:
      type: object
      required:
      - total
      - page
      - max_results
      properties:
        total:
          type: integer
          format: uint
          example: 1
        page:
          type: integer
          format: uint
          example: 1
        max_results:
          type: integer
          format: uint
          example: 50
    CreatePaymentRequestResponse:
      type: object
      required:
      - id
      - issuerDID
      - userDID
      - paymentOptionID
      - payments
      - createdAt
      - modifiedAt
      - status
      properties:
        id:
          type: string
          format: uuid
        issuerDID:
          type: string
        userDID:
          type: string
        paymentOptionID:
          type: string
          format: uuid
        payments:
          type: array
          items:
            $ref: '#/components/schemas/PaymentRequestInfo'
        createdAt:
          type: string
          format: date-time
        modifiedAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
          - not-verified
          - success
          - failed
          - pending
          - canceled
        paidNonce:
          type: string
        schemaID:
          type: string
          format: uuid
    PaymentVerifyRequest:
      type: object
      properties:
        txHash:
          type: string
          example: 0x8f271174b45ba7892d83...
          description: If txHash not provided then only verification on the Payment contract will be performed by nonce and issuer DID.
        userDID:
          type: string
          example: did:iden3:polygon:amoy:2qVSDLNYs2s5HDMTyb4Su67ZvrZ...
          description: If a User DID is provided, the payment will be verified for the specified User DID.
    PaymentOptions:
      type: array
      items:
        $ref: '#/components/schemas/PaymentOption'
    PaymentStatus:
      type: object
      required:
      - status
      - requestId
      properties:
        status:
          type: string
          enum:
          - success
          - failed
          - pending
          - canceled
        requestId:
          type: string
    PaymentsConfiguration:
      type: object
      x-go-type: payments.Config
      x-go-type-import:
        name: payments
        path: github.com/polygonid/sh-id-platform/internal/payments
    GenericMessage:
      type: object
      required:
      - message
      properties:
        message:
          type: string
    PaymentOptionsPaginated:
      type: object
      required:
      - items
      - meta
      properties:
        items:
          $ref: '#/components/schemas/PaymentOptions'
        meta:
          $ref: '#/components/schemas/PaginatedMetadata'
    PaymentOption:
      type: object
      required:
      - id
      - issuerDID
      - name
      - description
      - paymentOptions
      - modifiedAt
      - createdAt
      properties:
        id:
          type: string
          x-go-type: uuid.UUID
          x-go-type-import:
            name: uuid
            path: github.com/google/uuid
        issuerDID:
          type: string
        name:
          type: string
        description:
          type: string
        paymentOptions:
          $ref: '#/components/schemas/PaymentOptionConfig'
        modifiedAt:
          $ref: '#/components/schemas/TimeUTC'
        createdAt:
          $ref: '#/components/schemas/TimeUTC'
    PaymentOptionConfig:
      type: array
      items:
        $ref: '#/components/schemas/PaymentOptionConfigItem'
    PaymentOptionRequest:
      type: object
      required:
      - name
      - description
      - paymentOptions
      properties:
        name:
          type: string
        description:
          type: string
        paymentOptions:
          $ref: '#/components/schemas/PaymentOptionConfig'
    TimeUTC:
      type: string
      x-go-type: timeapi.Time
      x-go-type-import:
        name: timeapi
        path: github.com/polygonid/sh-id-platform/internal/timeapi
      example: '2023-10-26T10:59:08Z'
      x-omitempty: false
    UpdatePaymentOptionRequest:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        paymentOptions:
          $ref: '#/components/schemas/PaymentOptionConfig'
    CreatePaymentRequest:
      type: object
      required:
      - optionID
      - schemaID
      - description
      - userDID
      properties:
        optionID:
          type: string
          x-go-type: uuid.UUID
          x-go-type-import:
            name: uuid
            path: github.com/google/uuid
        schemaID:
          type: string
          x-go-type: uuid.UUID
          x-go-type-import:
            name: uuid
            path: github.com/google/uuid
        description:
          type: string
          example: Payment for AML
        userDID:
          type: string
          example: <user did>
    PaymentOptionConfigItem:
      type: object
      required:
      - paymentOptionID
      - amount
      - recipient
      - signingKeyID
      properties:
        paymentOptionID:
          type: integer
        amount:
          type: string
        recipient:
          type: string
        signingKeyID:
          type: string
          description: base64 encoded keyID
        expiration:
          type: string
          format: date-time
          example: 2025-04-17 11:40:43.681857-03:00
          x-omitempty: true
          description: Expiration date for the payment option, if not set the 1 hour from the creation date will be used
  parameters:
    pathIdentifier:
      name: identifier
      in: path
      required: true
      description: Issuer identifier
      schema:
        type: string
    id:
      name: id
      in: path
      required: true
      description: 'UUID parameter, e.g: 8edd8112-c415-11ed-b036-debe37e1cbd6

        '
      schema:
        type: string
        x-go-type: uuid.UUID
        x-go-type-import:
          name: uuid
          path: github.com/google/uuid
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic