{
  "opencollection": "1.0.0",
  "info": {
    "name": "Tesser Accounts Payments API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get payments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/payments",
            "params": [
              {
                "name": "start_date",
                "value": "",
                "type": "query",
                "description": "Start date for filtering payments (ISO 8601 format)"
              },
              {
                "name": "end_date",
                "value": "",
                "type": "query",
                "description": "End date for filtering payments (ISO 8601 format)"
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Payment direction filter: 'outbound' for outgoing payments, 'inbound' for incoming payments"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination (1-based)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items per page (default: 20)"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve all payments for the authenticated user's organization."
        },
        {
          "info": {
            "name": "Create payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/payments",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a payment. Returns the created payment details."
        },
        {
          "info": {
            "name": "[INTERNAL] Get payments for UI table",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/payments/internal",
            "params": [
              {
                "name": "start_date",
                "value": "",
                "type": "query",
                "description": "Start date for filtering payments (ISO 8601 format)"
              },
              {
                "name": "end_date",
                "value": "",
                "type": "query",
                "description": "End date for filtering payments (ISO 8601 format)"
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Payment direction filter: 'outbound' for outgoing payments, 'inbound' for incoming payments"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Payment status for filtering payments"
              },
              {
                "name": "payment_type",
                "value": "",
                "type": "query",
                "description": "Payment type filter: 'deposit', 'withdrawal', or 'transfer'"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination (1-based)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items per page (default: 20)"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve payments optimized for table display. Returns only fields needed for the payments table UI."
        },
        {
          "info": {
            "name": "[INTERNAL] Get single payment for UI",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/payments/internal/:paymentId",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment to retrieve"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a single payment with full details including steps and entity data for UI display."
        },
        {
          "info": {
            "name": "Simulate an inbound payment with a chosen risk status (staging)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/payments/simulate-inbound",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Sends a real on-chain test-USDC transfer from the platform faucet into a managed wallet and forces the risk-screening verdict to mocked_risk_status. Only available in staging. Returns 201 with the screened payment, or 202 with the tx hash if it is still being detected/screened."
        },
        {
          "info": {
            "name": "Get payment by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/payments/:paymentId",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment to retrieve"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a specific payment by ID."
        },
        {
          "info": {
            "name": "Update payment",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/v1/payments/:paymentId",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update a payment with accounts."
        },
        {
          "info": {
            "name": "Submit risk review",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/payments/:paymentId/review",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment to review"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Manually review and approve or reject a payment requiring risk review."
        },
        {
          "info": {
            "name": "Sign payment step",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/payments/:paymentId/steps/:stepId/sign",
            "params": [
              {
                "name": "paymentId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment"
              },
              {
                "name": "stepId",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the payment step to sign"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Submit a signature for a self-custodial payment step. Webhook updates will be sent as the signature is validated and submitted onchain."
        }
      ]
    }
  ],
  "bundled": true
}