For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Sort by

Why am I receiving error code 131 - Certificate Mismatch

  • Answer ID 589
  • Published 04/22/2015 11:57 PM
  • Updated 04/22/2015 11:57 PM
  • Permalink
I am using the correct certificate, why am I receiving error code 131?

<?xml version="1.0" encoding="utf-8"?>
<GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<ShortMessage>Certificate mismatch.</ShortMessage>
<LongMessage>The provided certificate is invalid.</LongMessage>

This error indicates that the Developer Certificate in your API Call Header is incorrect, and not valid for the Application Name and Developer Name you are using. To help debug this problem, check the following:

1. Check the value of your X'-EBAY-API-CERT-NAME' header the the actual HTTP POST you are generating. Make sure it matches to your known Developer Certificate value. If using SOAP, check the <ebl:AuthCert> value in the <ebl:Credentials> node of your SOAP Request.

2. Check how you have specified the Developer Certificate value in your config file, and avoid using double quotes ( ") Some languages, such as PHP will interpret the $ sign in your certificate as a variable when placed within double quotes.
For example,

$CertificateID = "12345678912345-MYCERTXXX-$-FFGG";

would attempt to interpret $-FFGG as a variable name. To avoid this, use single quotes.

$CertificateID = '12345678912345-MYCERTXXX-$-FFGG';

3. Check your environment, and the API Gateway URL you are using. Up to date URLS are listed in the Web Services Documentation:
XML format:
SOAP format:

4. If you are not sure if the Developer Certificate ID you have, is correct, look up your Sandbox and Production Keys, on this page:

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter