Articles in this section
Category / Section

How to get passId

Published:
Updated:

When the pass already exists

image.png

  1. Get an API Key on the neostore back-office :

    1. https://admin.neostore.cloud/tenant/~/apiKeys
    2. API Key should have the tenant.pass:read permission
      image.png
  2. Call the /passes API

    https://app.neostore.cloud/api/{tenantId}/passes?filter=filter[0].field=y2.customerId&filter[0].operator=equals&filter[0].value=04101234

    **curl -X 'GET' \ 'https://app.neostore.cloud/api/{tenantId}/passes?filter%5B0%5D.field%3Dy2.customerId%26filter%5B0%5D.operator%3Dequals%26filter%5B0%5D.value%**04101234**\ -H 'accept: text/plain' \ -H 'X-API-KEY: {apiKey}'**

    Result will be something like:

    [
    	{
    		"id": "KlnqcxVLAxxxxxx",
    		"secret": "r9vuaWOxxxxxxx",
    		"creationDate": "2023-07-19T11:56:34.9418747Z",
    		"passType": "user",
    		"identifiers": {
    			"y2.customerId": "04101234"
    		},
    		"providers": {
    			"apple": {
    				"installationDate": "2023-07-19T11:56:43.2830295Z",
    				"devices": [
    					{
    						"deviceIdentifier": "5dec2xxxxxx",
    						"pushToken": "5f7f23xxxxx",
    						"registrationDate": "2023-07-19T11:56:43.2830295Z"
    					}
    				]
    			}
    		}
    	}
    ]
    
Access denied
Access denied