Merchants API

GET /api/v1/merchants/:merchantId

Retrieve merchant details by ID.

Response

Response (TypeScript)
{
  merchantId: string;
  name: string;
  createdAt: string; // ISO 8601
  paymentMethods: Array<{
    paymentMethodId: string;
    token: {
      tokenId: string;
      network: "ETHEREUM" | "POLYGON" | "SEPOLIA";
      name: string;
      symbol: string;
      address: string;
      decimals: number;
    };
  }>;
}

Example

cURL
curl -X GET https://api.grain.inc/api/v1/merchants/m_123

Last updated