---
title: "Upload a payment processing certificate"
method: POST
path: "/applepay/certificates"
tags: ["Apple Pay"]
---

# Upload a payment processing certificate

`POST /applepay/certificates`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/applepay/certificates`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/applepay/certificates/post.ts> (a function with typed inputs; its response is checked against the schema)

Upload a payment processing certificate. This will allow you to start processing payments via Apple Pay.

## Request body

- ApplePayCertificateRequest: Certificate content to be added an account
  - `content` string, required: The certificate content

## Response `201`

Certificate uploaded successfully

- ApplePayCertificateResponse: Response for an attached certificate for an account
  - `id` string, required: The identifier of the account domain
  - `public_key_hash` string, required: Hash of the certificate public key
  - `valid_from` string, date-time, required: When the certificate is valid from
  - `valid_until` string, date-time, required: When the certificate is valid until

## Other responses

- `401`: Unauthorized
- `422`: Invalid data was sent

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
