Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.vs/
61 changes: 61 additions & 0 deletions posdealers/_markets/de/buy-resell/products/_notification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,67 @@ If the notification was successful, the operator receives a **confirmation email

![Confirmation Email](./images/ConfirmationEmail_DE.png)

## Trigger Notifications via API
Comment thread
minamoeini marked this conversation as resolved.

In addition to managing notifications through the portal, Dealers can trigger a notification for a specific Operator programmatically using the REST API.

### Endpoint

```
POST api/notifications/de/triggermanually
```

### Authentication

The request requires your Dealer account credentials passed as HTTP headers.

| Header | Description |
|---------------|-----------------------------------------------------------------------------|
| `accountid` | Your Dealer account ID, found in the portal under `[COMPANYNAME]` / `Overview`. |
| `accesstoken` | Your Dealer account access token, found in the same location as the account ID. |

### Request Body

Send the PosOperator's account ID as a plain JSON string in the request body.

**Example body**

```json
"POSOPERATOR_ACCOUNT_ID"
```

### Example Requests

**curl**

```shell
curl.exe -X POST \
-H "Content-Type: application/json" \
-H "accountid: ACCOUNT_ID" \
-H "accesstoken: ACCOUNT_ACCESS_TOKEN" \
-d '"POSOPERATOR_ACCOUNT_ID"' \
https://helipad.fiskaltrust.cloud/api/notifications/de/triggermanually
```

**Invoke-WebRequest (PowerShell)**

```powershell
$headers = @{ accountid = "ACCOUNT_ID"; accesstoken = "ACCOUNT_ACCESS_TOKEN" }
$body = '"POSOPERATOR_ACCOUNT_ID"'
Invoke-WebRequest `
-Uri https://helipad.fiskaltrust.cloud/api/notifications/de/triggermanually `
-Method Post `
-Headers $headers `
-Body $body `
-ContentType application/json
```

### Response

A status code of `200` confirms that the notification trigger was accepted for the specified Operator. Check the Notifications page in the portal to monitor the resulting notification status.

---

## Troubleshooting & Support

### Common Problems
Expand Down
Loading