# Retrieve an event

Source: https://developers.swell.is/backend-api/events/retrieve-an-event

Retrieve an existing event using the id that was returned during creation.

## Arguments

- `id` (objectId, required): The unique identifier for the event.

## Example request

`GET events/{id}`

**Node**

```javascript
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');

await swell.get('/events/{id}', {
  id: '62bc64bc2fafef0019eb2325'
});
```

**PHP**

```php
<?php $swell = new \Swell\Client('store-id', 'secret-key');

$swell->get('/events/{id}', [
  'id' => '62bc64bc2fafef0019eb2325'
]);
```

**cURL**

```sh
$ curl https://api.swell.store/events/62bc64bc2fafef0019eb2325 \
  -u store-id:secret-key
```

## Example response

```json
{
  "user_id": "606f0fdd255b020caaa3f577",
  "model": "shipments",
  "type": "shipment.created",
  "data": {
    "order_id": "62bc642d912a9800199ea465",
    "items": [
      {
        "product_id": "628ba3c7499bba0019b1a961",
        "order_item_id": "62bc63892fafef0019eb2312",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb231f"
      },
      {
        "product_id": "628ba442499bba0019b1a96d",
        "order_item_id": "62bc639293cb7c0019423b5f",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb2320"
      },
      {
        "product_id": "628ba6011869c10019b41f70",
        "order_item_id": "62bc639e629aa900197ff786",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb2321"
      },
      {
        "product_id": "628ba67a1869c10019b41f76",
        "order_item_id": "62bc63a293cb7c0019423b63",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb2322"
      },
      {
        "product_id": "628ba6b7499bba0019b1a9b2",
        "order_item_id": "62bc63a793cb7c0019423b66",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb2323"
      },
      {
        "product_id": "628ba701499bba0019b1a9bb",
        "order_item_id": "62bc63aa93cb7c0019423b69",
        "quantity": 1,
        "id": "62bc64bc2fafef0019eb2324"
      }
    ],
    "service": "international",
    "tracking_code": null,
    "carrier": null,
    "notes": "Let's hope the packages get past the Gatekeeper...",
    "service_name": "International",
    "destination": {
      "name": "Sheogorath",
      "address1": "New Sheoth Palace",
      "address2": null,
      "city": "Shivering Isles",
      "state": "TX",
      "zip": "78757",
      "country": "US",
      "phone": null
    },
    "date_created": "2022-06-29T14:42:04.017Z",
    "number": "S100004",
    "id": "62bc64bc2fafef0019eb231e"
  },
  "date_created": "2022-06-29T14:42:04.272Z",
  "id": "62bc64bc2fafef0019eb2325"
}
```
