# Transaction Status Updated — Ramp (Sandbox Version)

> Emit new event when there is a change in transaction status.

- Key: `ramp_sandbox-transaction-status-updated`
- Type: Trigger (Polling)
- Version: 0.0.3
- App: Ramp (Sandbox Version) (`ramp_sandbox`) — https://pipedream.com/apps/ramp-sandbox.md
- This page (HTML): https://pipedream.com/apps/ramp-sandbox/triggers/transaction-status-updated
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/ramp_sandbox/sources/transaction-status-updated/transaction-status-updated.mjs

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `timer` | `$.interface.timer` | Yes | Timer |
| `departmentId` | `string` | No | Unique identifier of a department — a Ramp UUID, e.g. fffe6c22-698f-4dc5-b2b1-b35f86947d90 (not a department name). Run the List Departments action to find valid IDs. |
| `locationId` | `string` | No | Unique identifier of a location — a Ramp UUID, e.g. 961c6f01-5719-4f4c-8fef-4096a031f32a (not a location name). Run the List Locations action to find valid IDs. |

## Returns

Events emitted by Ramp (Sandbox Version).

## Run it

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const deployed = await pd.triggers.deploy({
  id: "ramp_sandbox-transaction-status-updated",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ramp_sandbox: { authProvisionId: "apn_xxxxxxx" },
    timer: { "intervalSeconds": 900 },
    departmentId: "Department ID",
  },
  webhookUrl: "https://example.com/webhooks/ramp-sandbox",
})

console.log(deployed.id)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "ramp_sandbox-transaction-status-updated",
    "webhook_url": "https://example.com/webhooks/ramp-sandbox",
    "configured_props": {
      "ramp_sandbox": { "authProvisionId": "apn_xxxxxxx" },
      "timer": { "intervalSeconds": 900 },
      "departmentId": "Department ID"
    }
  }'
```

**MCP**

MCP servers expose Ramp (Sandbox Version) actions as on-demand tools.

Transaction Status Updated is an event source, so your application deploys it with the Connect SDK or API and then either receives each event at a webhook URL or retrieves events on demand with the trigger events API.

## Event delivery

Every event is sent to the HTTP endpoint you choose when you deploy the source. Or: no webhook required — your app or agent can fetch recent events from the [trigger events API](https://pipedream.com/docs/connect/api-reference/list-trigger-events.md) instead.

---

- App: https://pipedream.com/apps/ramp-sandbox.md · All apps: https://pipedream.com/apps
