⚑Get Payments

View Payments with the Swapped Pay Dashboard, or retrieve Payments Data via API

View Payments via Dashboard

The payments dashboard contains all pending, current, and settled transaction data. From this view, you can review all payment-related details and also process refunds.

Note: To refund a payment, you must have the same crypto the customer used to pay for the order in your Merchant Balance.

This means if you don't have the crypto to refund a processed payment, you'll need to swap another asset into the refund cryptocurrency before initiating a refund.

Get Payments via API

You can access the same data available on the dashboard directly via an API. This is useful for merchants who want to update their own source of truth and easily combine it with payment integration data.

Get merchant orders

get

Get merchant orders

Authorizations
Query parameters
pageinteger Β· min: 1OptionalDefault: 1
limitinteger Β· min: 1 Β· max: 100OptionalDefault: 20
searchIdstringOptional
startDateintegerOptional
endDateintegerOptional
Responses
200

Successful

*/*
get
GET /v1/merchants/orders HTTP/1.1
Host: pay-api.swapped.com
X-API-Key: YOUR_API_KEY
Accept: */*
200

Successful

{
  "data": {
    "orders": [
      {
        "id": "text",
        "link": "text",
        "externalId": "text",
        "userId": "text",
        "merchantId": "text",
        "initType": "STANDARD",
        "quoteId": "text",
        "depositAddressId": "text",
        "createdAt": "text",
        "status": "PENDING_USER_CREATION",
        "purchaseId": "text",
        "purchase": {
          "id": "text",
          "name": "text",
          "description": "text",
          "imageUrl": "text",
          "price": "text",
          "currency": {
            "name": "text",
            "officialId": "text",
            "type": "FIAT",
            "symbol": "text",
            "precision": 1,
            "flows": [
              "PAYMENT"
            ],
            "blockchainId": "text",
            "isStablecoin": true,
            "decimals": 1,
            "isNative": true,
            "id": "text"
          },
          "rateMerchantOverOrder": "text"
        },
        "payments": [
          {
            "id": "text",
            "orderId": "text",
            "receivedAmount": "text",
            "receivedCurrency": {
              "name": "text",
              "officialId": "text",
              "type": "FIAT",
              "symbol": "text",
              "precision": 1,
              "flows": [
                "PAYMENT"
              ],
              "blockchainId": "text",
              "isStablecoin": true,
              "decimals": 1,
              "isNative": true,
              "id": "text"
            },
            "txHash": "text",
            "confirmedAt": "text",
            "status": "text",
            "createdAt": "text"
          }
        ],
        "updates": [
          {
            "id": "text",
            "message": "text",
            "entityType": "text",
            "authorId": "text",
            "metadata": {},
            "timestamp": "text"
          }
        ],
        "metadata": {
          "externalId": "text",
          "userId": "text",
          "userName": "text",
          "userCountry": "text",
          "userEmail": "text",
          "redirectUrl": "text"
        }
      }
    ],
    "pagination": {
      "currentPage": 1,
      "totalPages": 1,
      "totalItems": 1,
      "itemsPerPage": 1
    }
  },
  "message": "text",
  "success": true
}

Last updated