Skip to content

Merchant Profile API

Use the merchant profile endpoint to read your current FairShare merchant profile and update onboarding-related fields.

This endpoint is useful when you want to:

  • Check your current merchant status
  • Read your preferred convenience fee defaults
  • Update your profile as part of onboarding

On This Page

Authentication

Include your merchant API key in the X-SplitPay-API-Key header.

http
X-SplitPay-API-Key: YOUR_API_KEY

Use your sandbox API key in sandbox and your live API key in live.

Get Your Profile

Use this endpoint:

http
GET https://api.fairsharepay.com/api/v1/merchants/me

Common response fields include:

FieldTypeDescription
statusstringCurrent merchant status, such as PENDING_PROFILE or ACTIVE
preferredConvenienceFeeTypestringMerchant-level preferred convenience fee mode
preferredConvenienceFeeValuenumberMerchant-level preferred convenience fee value

Update Your Profile

Use this endpoint:

http
PATCH https://api.fairsharepay.com/api/v1/merchants/me

You can update onboarding and profile fields through this endpoint, including:

FieldTypeDescription
preferredConvenienceFeeTypestringPreferred convenience fee mode
preferredConvenienceFeeValuenumberPreferred convenience fee value

When a profile update completes the required onboarding data and your merchant moves from PENDING_PROFILE to ACTIVE, your account is treated as onboarding-complete by FairShare.

Preferred Convenience Fee Fields

These fields let you store merchant-level default convenience fee preferences on your profile:

FieldValuesNotes
preferredConvenienceFeeTypeNONE, FIXED_PER_CONTRIBUTIONControls the preferred fee mode
preferredConvenienceFeeValuenumberPreferred fee amount

These are merchant-level profile settings. Split sessions can still include their own session-specific convenienceFeeType and convenienceFeeValue when you create them.

Validation Rules

  • Negative convenience fee values are rejected.
  • If preferredConvenienceFeeType is NONE, preferredConvenienceFeeValue must be 0.
  • Use the same environment-specific API key as the merchant profile you want to read or update.