Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 2.52 KB

File metadata and controls

79 lines (52 loc) · 2.52 KB
title description last_updated template
Glue API: Add push notification providers
Learn how to add push notification providers using Glue API
Dec 23, 2023
glue-api-storefront-guide-template

This endpoint lets you add push notification providers to further subscribe to notifications.

Installation

Install the Push Notification feature

Retrieve push notification providers


POST {% raw %}{{backend_url}}{% endraw %}/push-notification-providers


PATH DESCRIPTION
{% raw %}{{backend_url}}{% endraw %} URL of your Backend Glue API.

Request

HEADER KEY HEADER VALUE REQUIRED DESCRIPTION
Authorization string Alphanumeric string that authorizes the Back Office user to send requests to protected resources. Get it by authenticating as a Back Office user.

Request sample: POST https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers

{
  "data": {
    "type": "push-notificatoin-providers",
    "attributes": {
      "name": "Fulfillment App provider"
    }
  }
}

{% include pbc/all/glue-api-guides/{{page.version}}/push-notification-providers-request-attributes.md %}

Response

Response sample:

{
    "data": {
        "type": "push-notification-providers",
        "id": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
        "attributes": {
            "uuid": "ffb5875e-00d3-5436-ae67-08b7c9837f3e",
            "name": "Fulfillment App provider"
        },
        "links": {
            "self": "https://glue-backend.de.b2c.demo-spryker.com/push-notification-providers/ffb5875e-00d3-5436-ae67-08b7c9837f3e"
        }
    }
}

{% include pbc/all/glue-api-guides/{{page.version}}/push-notification-providers-response-attributes.md %}

Possible errors

To view generic errors that originate from the Glue Application, see Reference information: GlueApplication errors.