Skip to content

Browsing the Payments

Retrieve payment records from the In Process protocol. Supports filtering by artist and collector addresses.

Endpoint

GET https://inprocess.fun/api/payments

Parameters

NameTypeRequiredDefaultDescription
artiststringNoFilter by artist address (payments for tokens created by this artist)
collectorstringNoFilter by collector address (payments where this address is the buyer)

If no parameters are provided, returns the latest payment records. If collector is provided, payments are filtered so the purchaser is the provided address. If artist is provided, filters where the token creator is the provided address.

Request Examples

cURL
curl -X GET "https://inprocess.fun/api/payments?artist=0x29b6674c1562e31EdFd9709D9576e8E5F1e68d01&collector=0x4b4324bcC6dB9380ABBbbD20B24A16C11FB5B38A"

Response Format

The API returns JSON responses. Here's an example success response:

{
  "status": "success",
  "payments": [
    {
      "id": "bceddfb3-28f2-49f3-8669-73a813a06b90",
      "token": {
        "id": "5fc69bea-1a8a-47f0-8652-8bf041c16a06",
        "address": "0x06a701Ae65582B92Af48cDff45a8B20DcA3714cA",
        "tokenId": "0",
        "uri": "ar://1wMmKuaz-VdxmruOQJuYS-3nfU3zlNKmPNpc79Ou-qM",
        "defaultAdmin": "0x29b6674c1562e31EdFd9709D9576e8E5F1e68d01",
        "chainId": 8453,
        "createdAt": "2025-06-07T20:41:35+00:00",
        "hidden": false
      },
      "buyer": {
        "address": "0x29b6674c1562e31EdFd9709D9576e8E5F1e68d01",
        "username": "digital_artist_1",
        "bio": "Digital artist exploring the intersection of technology and creativity",
        "instagram_username": "@digital_artist_1",
        "twitter_username": "@digital_artist_1",
        "telegram_username": "@digital_artist_1"
      },
      "amount": "0.1",
      "hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "block": "12345678"
    },
    {
      "id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
      "token": {
        "id": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6",
        "address": "0x317e6E49970b95DD1bF2E7877110f3278CB8f1EA",
        "tokenId": "1",
        "uri": "ar://T5bcXlR7waq_aexj0Sp7SXR5uvwg3qAlMuai9oh6w-U",
        "defaultAdmin": "0x4b4324bcC6dB9380ABBbbD20B24A16C11FB5B38A",
        "chainId": 8453,
        "createdAt": "2025-06-07T17:13:07+00:00",
        "hidden": false
      },
      "buyer": {
        "address": "0x4b4324bcC6dB9380ABBbbD20B24A16C11FB5B38A",
        "username": "crypto_collector",
        "bio": "Passionate collector of digital art and NFTs",
        "instagram_username": "@crypto_collector",
        "twitter_username": "@crypto_collector",
        "telegram_username": "@crypto_collector"
      },
      "amount": "0.05",
      "hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
      "block": "12345679"
    }
  ]
}

Response Properties

Response Object

PropertyTypeDescription
statusstringStatus of the request ("success" or "error")
paymentsarrayList of payment records
payments[].idstringUUID of the payment record
payments[].tokenobjectFull token object with all token details
payments[].token.idstringUUID of the token
payments[].token.addressstringContract address of the token
payments[].token.tokenIdstringToken ID
payments[].token.uristringMetadata URI
payments[].token.defaultAdminstringAdmin address of the token
payments[].token.chainIdnumberChain ID where the token exists
payments[].token.createdAtstringISO timestamp when the token was created
payments[].token.hiddenbooleanWhether the token is hidden
payments[].buyerobjectFull artist object with all buyer details
payments[].buyer.addressstringAddress of the buyer
payments[].buyer.usernamestringUsername of the buyer
payments[].buyer.biostringBio of the buyer
payments[].buyer.instagram_usernamestringInstagram handle of the buyer
payments[].buyer.twitter_usernamestringTwitter handle of the buyer
payments[].buyer.telegram_usernamestringTelegram handle of the buyer
payments[].amountstringNumeric amount paid
payments[].hashstringTransaction hash
payments[].blockstringBlock number where the transaction occurred

Error Response

If an error occurs, the API returns:

{
  "status": "error",
  "message": "...error message..."
}