Reject quotation request¶
POST Reject a quotation request in PharmaPortal.
Users of PharmaPortal can process quotation requests from their own system via an API. This endpoint lets you reject a request.
Access
Available to PharmaPortal licence holders only.
Endpoint¶
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | Request ID. |
Request body¶
| Field | Type | Required | Description |
|---|---|---|---|
reden |
string | yes | The reason for rejecting the quotation. Stored in PharmaPortal and in ZAGIS (visible to hospitals). Max 250 characters. May be empty. |
toelichting |
string | no | A detailed explanation that is emailed to the hospital. Max 25000 characters. Plaintext. |
Authentication¶
This API uses IP whitelisting and an API key. Send the following headers:
| Header | Description |
|---|---|
x-portal-key |
The API key issued to your organisation. |
x-portal-hmac |
HMAC of the message, SHA512, hexadecimal, generated with the API secret issued to your organisation. |
Request¶
curl -X POST https://demo.pharma-portal.nl/api/offerte-aanvraag/afwijzen/ronde-3077 \
-H "x-portal-key: <your-api-key>" \
-H "x-portal-hmac: <hmac>" \
-d "reden=<reason>" \
-d "toelichting=<explanation>"
Response¶
| Code | Meaning |
|---|---|
200 |
Round has been closed. |
200 |
Round was already closed (to prevent duplicate requests; no update is sent to ZAGIS). |
400 |
Not a POST request. |
401 |
Invalid authentication or HMAC. |
404 |
Invalid request ID. |
Example of a response for a successful and correct request:
Notes
Want to test your integration? Contact us in good time at info@zagis.nl for test data and an API key.