# Diagnostics, Delivery Logs, and Test Deliveries

Source: https://docs.premiumqualifiedleads.com/buyer-portal/diagnostics-and-delivery-logs

Diagnostics shows every attempt to deliver a lead to your system and what your system replied. Some tools are switched on per account; ask us if you don't see them.

#### What you can see

- Each delivery attempt: time, method, attempt number, response code, the start of your reply, and latency.
- The final result: delivered, refused as a duplicate, rejected or failed.

API: `GET /api/v1/buyer/delivery-logs?limit=100`.

#### Send a test delivery

Use Test Delivery in the portal, or:

```plaintext
POST /api/v1/buyer/test-delivery
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json

{ "target": "preview" }

```

`preview` returns the test payload without sending it. `webhook` sends it to your configured endpoint. Test payloads carry `test: true` and are never billed. The endpoint must be HTTPS; localhost and private-network addresses are refused.

#### Common problems

| What you see | What to check |
|---|---|
| 401 or 403 | The credential we hold for your endpoint, or your IP allowlist. |
| 400 or 422 | A required field your system expects that we don't send, or a picklist value it doesn't accept. Send us the error and we'll fix the mapping. |
| 404 | The endpoint path. |
| 500 | An error inside your system. We retry. |
| Timeout | Your endpoint took over 30 seconds. Store the lead and reply first, then do slow work. |
| Lead created twice | Dedupe on `lead_record_id` and treat `lead_update: true` as an update. |
