How to create PASS_TYPE_ID Certificates?

So creating a IOS-DEVELOPMENT certificate is pretty straight forward... and I suspect some of the other types as well ... but when I try to create a PASS_TYPE_ID certificate it fails with some response messages...

"STATUS" : "404" "code" : "NOT_FOUND" "title" : "The specified resource does not exist" "detail" : "There is no identifier with ID 'null' on this team"

So it would appear it's expecting more attributes to be set in the payload that are specific to creating that type of certificate. Which of course makes sense. There has to be a way of assigning it to a Pass Type ID that you have created. (It would be nice if the API could at least list existing Pass IDs, or even create them - but I've not seen how yet).

But for the life of me I can't find or figure out the syntax for this. Anyone have any luck?

Hi dBrewster,

Please update your request to include the following objects:

 "relationships": {
      "passTypeId": {
        "data": {
          "type": "passTypeIds",
          "id": "<PASS_TYPE_ID>"
        }
      }

Where the <PASS_TYPE_ID> is the Wallet pass type ID as a string value. We've noted (r. 126354804) to update the documentation on App Store Connect API to reflect this expectation.

Cheers,

Paris

How to create PASS_TYPE_ID Certificates?
 
 
Q