POST
/
apple-pay-certificates
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://api.{gr4vy_id}.gr4vy.app/apple-pay-certificates"

	payload := strings.NewReader("{\n  \"display_name\": \"iPad App v2\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
{
  "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
header
required

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

Body

application/json

A request to start the registration of a new Apple Pay payment processing certificate.

Response

201
application/json

Returns the Apple Pay certificate record that was added.

An Apple Pay certificate record.