POST
/
apple-pay-certificates
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/apple-pay-certificates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "display_name": "iPad App v2"
}'
{
  "type": "apple-pay-certificate",
  "id": "c81bdcfd-00c2-4897-b220-06ff0e95685a",
  "display_name": "iPad App v2",
  "status": "incomplete",
  "apple_merchant_id": null,
  "public_key_hash": null,
  "certificate_signing_request": "-----BEGIN CERTIFICATE REQUEST-----\\nMIHTMHsCAQAwGTEXMBUG\nA1UEAwwOc3BpZGVyLnNhbmRib3gwWTATBgcqhkjOPQIB\\nBggqhkjOPQM\nBBwNCAAQZgRE56Evtf6f9fD4Hn1zOMwyrgXU4CQXuyPXoIjiMwKXE\\nV/\nHx9NX7vZbOSXhyzPaU/b6HdLMfx2+UP/GZ48jYoAAwCgYIKoZIzj0EAwI\nDSAAw\\nRQIgPhcfepIaX9s8E8WI/T+GEUqwuYIoVUQV+F8KlaYGukACIQ\nCLeLocEFWFYPHN\\n+QsLoyXvbbqmEjSPB4vQKmXQZ8I2DA==\\n-----EN\nD CERTIFICATE REQUEST-----\\n",
  "expires_at": null,
  "created_at": "2022-12-12T10:53:43+00:00",
  "updated_at": "2022-12-12T10:53:43+00:00"
}

This endpoint requires the apple-pay-certificates.write scope.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
display_name
string
required

A name for this Apple Pay certificate which is used in the Gr4vy admin panel to give the Apple Pay certificate a human readable name.

Response

201 - application/json
type
enum<string>

The type of this resource. Is always apple-pay-certificate.

Available options:
apple-pay-certificate
id
string

The unique identifier for this Apple Pay certificate record.

display_name
string

The name for this Apple Pay certificate which is used in the Gr4vy admin panel to give the Apple Pay certificate a human readable name.

status
enum<string>

The status of this Apple Pay certificate.

Available options:
active,
expired,
incomplete
apple_merchant_id
string | null

The unique identifier representing a merchant for Apple Pay. This value is populated after the Apple Pay certificate record has been updated with the payment processing certificate received from Apple.

public_key_hash
string | null

The hash value of the public key associated with this Apple Pay certificate. This value is populated after the Apple Pay certificate record has been updated with the payment processing certificate received from Apple.

certificate_signing_request
string | null

The Certificate Signing Request to upload to the Apple Developer console when creating a new payment processing certificate.

expires_at
string | null

The date and time this Apple Pay certificate expires. This value is populated after the Apple Pay certificate record has been updated with the payment processing certificate received from Apple.

created_at
string

The date and time this Apple Pay certificate record was created in our system.

updated_at
string

The date and time this Apple Pay certificate record was last updated.