Skip to main content

Account API Overview

The Account API provides tools to manage your eBay seller account, including return policies, payment policies, fulfillment programs, and sales tax settings.

Available Tools

The eBay MCP Server provides 25+ Account API tools for comprehensive account management:

Return Policies

Create, update, and manage return policies for your listings

Payment Policies

Configure payment methods and policies for your store

Fulfillment Policies

Set up shipping and handling policies

Sales Tax

Manage sales tax tables and jurisdiction settings

Key Features

Policy Management

  • Return Policies: Define return windows, return shipping costs, and refund methods
  • Payment Policies: Set accepted payment methods and payment instructions
  • Fulfillment Policies: Configure shipping services, handling times, and costs

Program Enrollment

  • eBay Programs: Enroll in or opt out of eBay seller programs
  • Fulfillment Programs: Manage enrollment in fulfillment services
  • Program Status: Check eligibility and current enrollment status

Account Settings

  • Sales Tax: Configure tax tables for different jurisdictions
  • Shipping Locations: Manage shipping locations and regions
  • Custom Policies: Create custom policies tailored to your business

Quick Start

1

Connect to Account API

Ensure your MCP client has access to Account API tools:
# List available Account API tools
mcp list-tools | grep account_
2

Get Account Policies

Retrieve your existing policies:
// Get all return policies
const returnPolicies = await mcp.useTool('account_getReturnPolicies', {
  marketplace_id: 'EBAY_US'
});
3

Create or Update Policies

Create new policies or update existing ones:
// Create a return policy
const newPolicy = await mcp.useTool('account_createReturnPolicy', {
  marketplace_id: 'EBAY_US',
  name: '30-Day Returns',
  return_period: {
    value: 30,
    unit: 'DAY'
  },
  refund_method: 'MONEY_BACK'
});

Common Use Cases

1. Setting Up Return Policies

// Create a customer-friendly return policy
const returnPolicy = await mcp.useTool('account_createReturnPolicy', {
  marketplace_id: 'EBAY_US',
  name: 'Easy Returns - 60 Days',
  description: 'We accept returns within 60 days of purchase',
  return_period: {
    value: 60,
    unit: 'DAY'
  },
  returns_accepted: true,
  refund_method: 'MONEY_BACK',
  return_shipping_cost_payer: 'SELLER'
});

console.log(`Return policy created: ${returnPolicy.returnPolicyId}`);

2. Configuring Payment Policies

// Create a payment policy with multiple methods
const paymentPolicy = await mcp.useTool('account_createPaymentPolicy', {
  marketplace_id: 'EBAY_US',
  name: 'Standard Payment Policy',
  payment_methods: [
    { paymentMethodType: 'PAYPAL' },
    { paymentMethodType: 'CREDIT_CARD' }
  ],
  immediate_pay: true
});

3. Managing Fulfillment Policies

// Create a fulfillment policy with multiple shipping options
const fulfillmentPolicy = await mcp.useTool('account_createFulfillmentPolicy', {
  marketplace_id: 'EBAY_US',
  name: 'Fast Shipping',
  shipping_options: [
    {
      option_type: 'DOMESTIC',
      cost_type: 'FLAT_RATE',
      shipping_services: [
        {
          shipping_carrier_code: 'USPS',
          shipping_service_code: 'USPSPriority',
          ship_to_locations: {
            region_included: [{ region_name: 'US', region_type: 'COUNTRY' }]
          },
          shipping_cost: { value: '8.99', currency: 'USD' }
        }
      ]
    }
  ],
  handling_time: { value: 1, unit: 'BUSINESS_DAY' }
});

Tool Categories

Policy Tools

Tool NameDescriptionRate Limit
account_getReturnPoliciesGet all return policies5,000/day
account_createReturnPolicyCreate a return policy5,000/day
account_updateReturnPolicyUpdate return policy5,000/day
account_deleteReturnPolicyDelete return policy5,000/day
account_getPaymentPoliciesGet all payment policies5,000/day
account_createPaymentPolicyCreate payment policy5,000/day
account_getFulfillmentPoliciesGet fulfillment policies5,000/day
account_createFulfillmentPolicyCreate fulfillment policy5,000/day

Program Tools

Tool NameDescriptionRate Limit
account_getProgramsList all seller programs5,000/day
account_optInToProgramEnroll in a program5,000/day
account_optOutOfProgramOpt out of a program5,000/day

Sales Tax Tools

Tool NameDescriptionRate Limit
account_getSalesTaxesGet sales tax tables10,000/day
account_createOrReplaceSalesTaxSet sales tax for jurisdiction5,000/day
account_deleteSalesTaxDelete sales tax entry5,000/day

Best Practices

Use descriptive, consistent names for your policies:
  • Good: "30-Day Returns - Free Shipping"
  • Bad: "Policy 1"
This makes it easier to manage policies across multiple listings.
Consider offering:
  • Longer return periods (30-60 days) to increase buyer confidence
  • Free return shipping for higher-value items
  • Clear return instructions in policy descriptions
  • Offer multiple shipping options (economy, standard, expedited)
  • Set realistic handling times (1-2 business days is ideal)
  • Include free shipping for orders over a threshold
  • Use calculated shipping for large/heavy items
  • Cache policy data to reduce API calls
  • Batch policy updates when possible
  • Use webhooks for policy change notifications

Error Handling

Common errors and solutions:
try {
  const policy = await mcp.useTool('account_createReturnPolicy', { /* ... */ });
} catch (error) {
  if (error.code === 'INVALID_MARKETPLACE') {
    // Invalid marketplace_id provided
    console.error('Please use a valid marketplace (e.g., EBAY_US)');
  } else if (error.code === 'DUPLICATE_POLICY_NAME') {
    // Policy with this name already exists
    console.error('Policy name must be unique');
  } else if (error.code === 'INVALID_RETURN_PERIOD') {
    // Return period exceeds maximum allowed
    console.error('Return period must be between 14-60 days');
  }
}

Next Steps

Resources