AI resources
Upload Apple Pay certificate

Uploads a signed certificate (.pem format) from Apple to Mercado Pago to complete the Apple Pay configuration. The certificate will be validated and stored securely. Use it after downloading the signed certificate from the Apple Developer Portal. In case of success, the request will return a response with status 200.

POST

https://api.mercadopago.com/certificates/certificate/upload
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
Response parameters
certificate_id
string
Unique identifier for the uploaded certificate.
certificate
string
Certificate content in PEM format.
Errors

400Request error.

invalid_request

The request body is malformed or a required field is missing. Check the JSON structure and the required parameters.

invalid_parameter

One of the parameters has an invalid value or format. Check the accepted values for each field.

401Authentication error.

unauthorized

The credentials sent are invalid or absent. Check that you are sending valid credentials for the environment you are using.

500Server error.

internal_server_error

An internal server error occurred. Wait a moment and try again. If the problem persists, contact Support with the x-request-id.

Request
curl -X POST \
    'https://api.mercadopago.com/certificates/certificate/upload'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer APP_USR-8*********88776-122*********fc20dede6*********a497d7225*********64' \
    
Response
{
  "certificate_id": "cert_123456789",
  "certificate": "-----BEGIN CERTIFICATE-----"
}