GET /identifiers/{identifier}/passes/{scheme_id}

Get mobile wallet passes associated with a consumer’s identifier.

The referenced identifier must exist. For example, it may be created with POST /identifiers.

The scheme_id indicates which pass configuration to use. The pass scheme must be configured before this API can be used. The configuration defines the issued pass types, their image assets and contents. The pass contents typically reference properties stored in the Identifier Properties Object.

Please contact your Yocuda representative to configure a pass scheme.

Path parameters:

Name

Type

Description

identifier

string, required

a consumer identifier

scheme_id

string, required

the identifier of a pass scheme

Example request:

The request will retrieve existing passes or issue new passes if they haven’t been issued before.

GET /identifiers/990000000001/passes/receipts HTTP/1.1
Host: api.ereceipts.co.uka
Accept: application/json

Example response:

The response contains:

HTTP/1.1 200 OK
Content-Length: 862
Content-Type: application/json

{
  "apple_pay": {
    "url": "https://api.ereceipts.co.uk/passes/applepay/ab722f55-e9a7-4288-9dd9-9ba6e17f17d7.pkpass"
  },
  "google_pay": {
    "token": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJpc3N1ZXJAZXhhbXBsZS5jb20iLCJhdWQiOiJnb29nbGUiLCJ0eXAiOiJzYXZldG93YWxsZXQiLCJpYXQiOjE2OTY4Nzc3MzgsIm9yaWdpbnMiOlsiZXhhbXBsZS5jb20iXSwicGF5bG9hZCI6eyJsb3lhbHR5T2JqZWN0cyI6W3siaWQiOiIwMDAwMDAwMDAwMDAwMDAwMDAwLmFiNzIyZjU1LWU5YTctNDI4OC05ZGQ5LTliYTZlMTdmMTdkNyIsIi4uLiI6Ii4uLiJ9XX19.",
    "url": "https://pay.google.com/gp/v/save/eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJpc3N1ZXJAZXhhbXBsZS5jb20iLCJhdWQiOiJnb29nbGUiLCJ0eXAiOiJzYXZldG93YWxsZXQiLCJpYXQiOjE2OTY4Nzc3MzgsIm9yaWdpbnMiOlsiZXhhbXBsZS5jb20iXSwicGF5bG9hZCI6eyJsb3lhbHR5T2JqZWN0cyI6W3siaWQiOiIwMDAwMDAwMDAwMDAwMDAwMDAwLmFiNzIyZjU1LWU5YTctNDI4OC05ZGQ5LTliYTZlMTdmMTdkNyIsIi4uLiI6Ii4uLiJ9XX19."
  }
}