You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

使用Coinbase PHP SDK连接API报错:未填写商家资料

Troubleshooting the "You have not filled out your merchant profile" Error with Coinbase PHP SDK

I’ve run into this exact misleading error before—even when it looks like all fields are filled out, Coinbase’s backend often has hidden or easy-to-miss requirements for merchant profiles. Here’s how to dig into it step by step:

1. Double-check for hidden/under-the-radar required fields

Head over to your Coinbase Merchant Dashboard, navigate to Settings > Merchant Profile, and go through every tab (Business Info, Contact Info, Payment Settings, etc.) with a fine-tooth comb:

  • Look for collapsed sections or fields that seem "optional" but are actually required for API access (e.g., business category dropdown, full address details including postal code, tax ID if applicable)
  • Pay attention to format requirements: some fields reject special characters, or require specific input (like a valid phone number with country code)

2. Verify your API key’s context and permissions

Make sure the API key you’re using is tied to a merchant account (not a regular personal Coinbase account):

  • Go to Settings > API Keys to confirm the key is linked to your merchant profile
  • Check the permission scopes—ensure you’ve enabled the necessary ones for your use case (e.g., payment:read, payment:write, merchant:read)
  • Try generating a brand new API key; sometimes old keys get stuck with incomplete profile associations

3. Look for uncompleted dashboard prompts

Coinbase often hides critical reminders in plain sight:

  • Check the top of your merchant dashboard for red warning banners or "To-Do" items (e.g., verifying your email, linking a bank account—even if you don’t plan to withdraw funds immediately, some API features require this)
  • Confirm your KYC verification is fully completed. Sometimes the dashboard shows "done" but there’s a pending step in the backend that blocks API access

4. Test directly with the Coinbase API (bypass the SDK)

The PHP SDK might truncate the error message, so use a simple curl call to get the full details:

curl -H "Authorization: Bearer YOUR_API_KEY" https://api.coinbase.com/v2/merchant/profile

The raw API response will usually specify exactly which field is missing or invalid, which is way more helpful than the truncated SDK message.

5. Clear cache and re-authenticate

Browser cache can sometimes show outdated profile statuses:

  • Clear your browser cache, log out, and log back into the merchant dashboard to recheck your profile
  • Try accessing the dashboard in incognito mode to rule out cached data issues

If none of these steps resolve the issue, reach out to Coinbase’s merchant support team with your API key ID and the full error details—they can pull up your account’s backend status to pinpoint the missing requirement.

内容的提问来源于stack exchange,提问作者Sagar Chapagain

火山引擎 最新活动