# Easypromos + Piggy Integrations: Connect with Zapier MCP
> zapier.com/apps/easypromos/integrations/piggy
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Easypromos and Piggy in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · calculate_credits`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "piggy", owner: "me" });

const { data } = await zapier.runAction({
  app: "piggy",
  actionType: "write",
  action: "calculate_credits",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action piggy write calculate_credits \
  --inputs '{}'
```

## Easypromos

### Identity
Easypromos is an online platform to create and manage all sorts of digital promotions, sweepstakes and contests.

- App slug: easypromos
- Operations published here: 5 (5 events)

### Authentication
Zapier connects to Easypromos via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection easypromos
```

### Capabilities

#### Events (5)

Events fire when something happens in Easypromos. Use them to start a run.

##### New Coin Transaction
Triggers when a user earns or spends coins

- Type: read · Key: `new_coin_transaction`
- Requires: promotion_id, access_token
- SDK: `runAction({ app: "easypromos", actionType: "read", action: "new_coin_transaction" })`
- CLI: `npx zapier-sdk run-action easypromos read new_coin_transaction`

##### New User
Triggers when a new user registers in the promotion.

- Type: read · Key: `New_Participant_WebhookFormat`
- Requires: promotion_id, access_token
- SDK: `runAction({ app: "easypromos", actionType: "read", action: "New_Participant_WebhookFormat" })`
- CLI: `npx zapier-sdk run-action easypromos read New_Participant_WebhookFormat`

##### New Participation
Triggers when a registered user submits a new participation in the promotion.

- Type: read · Key: `New_Participation_WebhookFormat`
- Requires: promotion_id, access_token
- SDK: `runAction({ app: "easypromos", actionType: "read", action: "New_Participation_WebhookFormat" })`
- CLI: `npx zapier-sdk run-action easypromos read New_Participation_WebhookFormat`

##### New Prize Assignment
Triggers when a new prize is assigned to a user

- Type: read · Key: `New_Prize_Assignment_WebhookFormat`
- Requires: promotion_id, access_token
- SDK: `runAction({ app: "easypromos", actionType: "read", action: "New_Prize_Assignment_WebhookFormat" })`
- CLI: `npx zapier-sdk run-action easypromos read New_Prize_Assignment_WebhookFormat`

##### New Prize Form Submission
Triggers when a prize form is filled by a user

- Type: read · Key: `new_prize_form_submission_webhookFormat`
- Requires: promotion_id, access_token
- SDK: `runAction({ app: "easypromos", actionType: "read", action: "new_prize_form_submission_webhookFormat" })`
- CLI: `npx zapier-sdk run-action easypromos read new_prize_form_submission_webhookFormat`

## Piggy

### Identity
Piggy is a SaaS Loyalty platform. Create your own loyalty program and reward your customers.

- App slug: piggy
- Operations published here: 18 (6 events, 9 functions, 3 queries)

### Authentication
Zapier connects to Piggy via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection piggy
```

### Capabilities

#### Events (6)

Events fire when something happens in Piggy. Use them to start a run.

##### Contact Updated
Triggers when an contact is updated.

- Type: read · Key: `contact_updated`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "contact_updated" })`
- CLI: `npx zapier-sdk run-action piggy read contact_updated`

##### New Contact
Triggers when a new contact is created.

- Type: read · Key: `new_contact`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "new_contact" })`
- CLI: `npx zapier-sdk run-action piggy read new_contact`

##### New Credit Reception
Triggers when a new credit reception is created.

- Type: read · Key: `new_credit_reception`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "new_credit_reception" })`
- CLI: `npx zapier-sdk run-action piggy read new_credit_reception`

##### New Reward Reception
Triggers when new reward reception is claimed.

- Type: read · Key: `new_reward_reception`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "new_reward_reception" })`
- CLI: `npx zapier-sdk run-action piggy read new_reward_reception`

##### Voucher Created
Triggers when a voucher is created.

- Type: read · Key: `voucher_created`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "voucher_created" })`
- CLI: `npx zapier-sdk run-action piggy read voucher_created`

##### Voucher Redeemed
Triggers when a  voucher is redeemed

- Type: read · Key: `voucher_redeemed`
- Requires: nothing
- SDK: `runAction({ app: "piggy", actionType: "read", action: "voucher_redeemed" })`
- CLI: `npx zapier-sdk run-action piggy read voucher_redeemed`

#### Functions (9)

Functions change something in Piggy.

##### Calculate Credits 
Calculate how many credits would be issued if a credit reception was to be made with the given values. 

- Type: write · Key: `calculate_credits`
- Requires: contact_uuid, shop_uuid, unit_value
- Optional: unit_name
- SDK: `runAction({ app: "piggy", actionType: "write", action: "calculate_credits" })`
- CLI: `npx zapier-sdk run-action piggy write calculate_credits`

##### Create Batch of Vouchers
Creates a batch of vouchers

- Type: write · Key: `create_batch_of_vouchers`
- Requires: promotion_uuid, quantity
- Optional: contact_uuid, activation_date, expiration_date, custom_attributes
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_batch_of_vouchers" })`
- CLI: `npx zapier-sdk run-action piggy write create_batch_of_vouchers`

##### Create Contact by Email Address 
Creates new contact with email address. 

- Type: write · Key: `create_contact`
- Requires: email
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action piggy write create_contact`

##### Create Contact Attribute
Create a new contact attribute.

- Type: write · Key: `create_contact_attribute`
- Requires: name, data_type
- Optional: label, description, options
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_contact_attribute" })`
- CLI: `npx zapier-sdk run-action piggy write create_contact_attribute`

##### Create Credit Reception
Creates a new credit reception.

- Type: write · Key: `create_credit_reception`
- Requires: contact_uuid, shop_uuid
- Optional: credits, unit_value, unit_name
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_credit_reception" })`
- CLI: `npx zapier-sdk run-action piggy write create_credit_reception`

##### Create Promotion
Creates a new Promotion

- Type: write · Key: `create_promotion`
- Requires: name, description
- Optional: voucher_limit, limit_per_contact, expiration_duration
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_promotion" })`
- CLI: `npx zapier-sdk run-action piggy write create_promotion`

##### Create Voucher
Creates a new voucher

- Type: write · Key: `create_voucher`
- Requires: promotion_uuid
- Optional: code, contact_uuid, expiration_date, activation_date, custom_attributes
- SDK: `runAction({ app: "piggy", actionType: "write", action: "create_voucher" })`
- CLI: `npx zapier-sdk run-action piggy write create_voucher`

##### Find or Create Contact by Email Address 
Finds an existing contact or creates a new contact, with email address. 

- Type: write · Key: `find_or_create_contact`
- Requires: email
- SDK: `runAction({ app: "piggy", actionType: "write", action: "find_or_create_contact" })`
- CLI: `npx zapier-sdk run-action piggy write find_or_create_contact`

##### Update Contact Attribute(s)
Update the value of attribute(s) of a contact.

- Type: write · Key: `update_contact`
- Requires: contact_uuid, attributes
- SDK: `runAction({ app: "piggy", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action piggy write update_contact`

#### Queries (3)

Queries read from Piggy and return data. They change nothing.

##### Find Contact by Email Address
Finds contact by email address.

- Type: search · Key: `find_contact`
- Requires: email
- SDK: `runAction({ app: "piggy", actionType: "search", action: "find_contact" })`
- CLI: `npx zapier-sdk run-action piggy search find_contact`

##### Find Voucher
Finds a voucher by code

- Type: search · Key: `find_voucher`
- Requires: code
- SDK: `runAction({ app: "piggy", actionType: "search", action: "find_voucher" })`
- CLI: `npx zapier-sdk run-action piggy search find_voucher`

##### Get Contact by UUID
Search contact by it's UUID . 

- Type: search · Key: `get_contact`
- Requires: contact_uuid
- SDK: `runAction({ app: "piggy", actionType: "search", action: "get_contact" })`
- CLI: `npx zapier-sdk run-action piggy search get_contact`

## Links
- Easypromos integrations: zapier.com/apps/easypromos/integrations.md
- Piggy integrations: zapier.com/apps/piggy/integrations.md
- Full page: zapier.com/apps/easypromos/integrations/piggy
- SDK: npmjs.com/package/@zapier/zapier-sdk