Apple Web Push Provisioning

The Apple Web Push Provisioning endpoint enables you to share a customer's Apple Web Push Provisioning information with Thredd. This endpoint accepts a cardholder's public token along with the card art, product name, terms & conditions and policy identifiers for the request, and returns an encrypted payload to facilitate card tokenisation with Apple and the card network.

📘

Note

This endpoint is for Web Push Provisioning only.

You can return the details for the card's Web Push Provisioning by making a POST request to the Apple Web Push Provisioning endpoint. For example:

https://uat-api.thredd.com/api/v2/webprovisioning/{publictoken}/applewallet

The POST body should include the details for the card art and terms, as well as the product name and policy ID. Below is an example of what the body should look like.

{
  "cardArtId": "12345",
  "termsId": "67890",
  "productName": "Product A",
  "policyId": "f47ac10b-58cc-4372-a567-0e02b2c3d479" 
}

If successful, a 200 response is returned with the details for the web provisioning. See the below example response.

{
  "jws": {
    "protected": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpPU0UrSlNPTiIsImN0eSI6ImFwcGxpY2F0aW9uL2NyZWRlbnRpYWw7Y2hhcnNldD11dGYtOCJ9",
    "payload": "eyJqdGkiOiJmNzlmYTg5Ny05NDUzLTQ5ODUtYmUyMS01NGI2NzdlZTJlNmIiLCJsaWQiOiJlbi1VUyIsImlzcyI6Ik9SRy1mZmZmZmZmZi1hYmNkLTEyMzQtNzg5MC1mZmZmZmZmZmZmZmYiLCJzdWIiOiJwcm92aXNpb25pbmdUYXJnZXQiLCJhdWQiOiJBcHBsZSIsImlhdCI6IjE2NTkwODQ1NzEwMDAiLCJleHAiOiIxNjU5MDg4MTcxMDAwIiwiY3RpIjoiZDRlMGYxY2EtZjQzZC00MDc0LThjYWYtMjAzMWY1MzZkYzhhIiwiZWlkIjoiNzJkZDFlNWUtZDBjMC00MWM4LThhNjYtYTBkMmNhNmM5ZDQ1In0",
    "signature": "XpJGoPgIDUg323Sai6kv2-YkdvEWPZVhJFvfDokPNwM2eS_KWkQZUsWWYcAKv8E6-GUh21-8o46wChkE6HPY8Q",
    "header": {
      "kid": "6a2cb893-672d-46a9-b03f-8eda1cd72e95"
    }
  },
  "state": "XXXXXXXX-0000-AAAA-1111-ee1b8be5d97d"
}

More Information


Did this page help you?