Request CSR
POST/v1/platform/certificates
Request a Certificate Signing Request (CSR) for the platform Apple Pay payment processing certificate. If an enabled certificate already exists, a new certificate is created to support rotation or additional Apple merchant IDs. Fails if the current certificate already has a requested CSR and has not been regenerated.
Responses
- 200
- 400
- 401
- 403
Successful response
- application/json
- Schema
- Example (from schema)
Schema
The CSR in PEM format to upload to Apple, present once requested
Possible values: [disabled, requested, enabled]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"pp_csr": "string",
"status": "disabled",
"enabled_at": "2024-07-29T15:51:28.071Z",
"created_at": "2024-07-29T15:51:28.071Z"
}
Business Error or validation error.
- application/json
- Schema
- Example (from schema)
Schema
Contains the error type
Human readable error message for the error
Contains string-array pair representing a field and list of validation errors.
{
"type": "invalid_request",
"message": null,
"errors": {
"foo": "this is returned for validation errors only"
}
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [authentication_error]
Possible values: [Invalid authorization credentials]
{
"type": "authentication_error",
"message": "Invalid authorization credentials",
"errors": null
}
Invalid authorization credentials
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [api_error]
Possible values: [User not authorized]
{
"type": "api_error",
"message": "User not authorized",
"errors": null
}