# ดูรายการส่งหนึ่งรายการ

Source: https://checkslip.com/docs/get-delivery

GET `https://api.checkslip.com/api/webhooks/deliveries/{delivery_id}`

ใช้ API key

แสดงรายการส่งหนึ่งรายการ พร้อมการส่งแต่ละครั้ง (เวลา, outcome, http_status และคำตอบช่วงแรกจากระบบของคุณ) และ payload ที่ส่ง ใช้ดูว่าทำไมส่งไม่สำเร็จ · delivery_id ที่ไม่มีอยู่ เก่ากว่า 30 วัน หรือเป็นของบัญชีอื่น ตอบ 404 เหมือนกัน · ใช้ API key ที่มีสิทธิ์ webhook:read

## Parameters

| ฟิลด์ | ส่งทาง | ชนิด | จำเป็น |
| --- | --- | --- | --- |
| `delivery_id` | path | `string` | ใช่ |
| `traceparent` | header | `string` | ไม่ |

## Responses

### 200 `application/json`

### Error ที่อาจได้

401 403 404

error ในรูป Problem Details ดูรหัสทั้งหมดที่ [รหัสข้อผิดพลาด](https://checkslip.com/docs/errors)

**cURL**

```bash
curl https://api.checkslip.com/api/webhooks/deliveries/string \
  -H "Authorization: Bearer $CHECKSLIP_API_KEY"
```

**Node.js**

```javascript
const res = await fetch("https://api.checkslip.com/api/webhooks/deliveries/string", {
  headers: {
    Authorization: `Bearer ${process.env.CHECKSLIP_API_KEY}`,
  },
});
const data = await res.json();
```

**Python**

```python
import os

import requests

res = requests.get(
    "https://api.checkslip.com/api/webhooks/deliveries/string",
    headers={
        "Authorization": f"Bearer {os.environ['CHECKSLIP_API_KEY']}",
    },
)
data = res.json()
```

```json
{
  "id": "string",
  "message_id": "string",
  "endpoint_id": "string",
  "event_type": "slip.checked",
  "request_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
  "status": "PENDING",
  "attempt_count": 1,
  "next_attempt_at": "2026-11-05T09:30:00+07:00",
  "last_attempt_at": "2026-11-05T09:30:00+07:00",
  "last_http_status": 1,
  "created_at": "2026-11-05T09:30:00+07:00",
  "payload": {
    "type": "slip.checked",
    "timestamp": "2026-11-05T09:30:00+07:00",
    "data": {
      "request_id": "0b6c2f5e-8a41-4d1e-9c3a-5f7e2d18a6b4",
      "outcome": "FOUND",
      "checked_at": "2026-11-05T09:30:00+07:00",
      "channel": "API",
      "client_reference": "ORDER-10023",
      "slip": {},
      "duplicate_of": {
        "request_id": {},
        "checked_at": {}
      },
      "checked_elsewhere": true,
      "resolved_after_pending": true
    }
  },
  "payload_expires_at": "2026-11-05T09:30:00+07:00",
  "attempts": [
    {
      "attempt_no": 1,
      "trigger": "SCHEDULE",
      "attempted_at": "2026-11-05T09:30:00+07:00",
      "outcome": "SUCCESS",
      "http_status": 1,
      "duration_ms": 1,
      "response_excerpt": "string"
    }
  ]
}
```
