Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Claim Anonymous Contact
PIGGY_CLAIM_ANONYMOUS_CONTACTTool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.
Create Contact Attribute
PIGGY_CREATE_CONTACT_ATTRIBUTETool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.
Create Credit Reception
PIGGY_CREATE_CREDIT_RECEPTIONTool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.
Create Vouchers Batch
PIGGY_CREATE_VOUCHERS_BATCHTool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.
Find or Create Products
PIGGY_FIND_OR_CREATE_PRODUCTSTool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.
Find Voucher By Code
PIGGY_FIND_VOUCHER_BY_CODEFind a voucher by its unique code and retrieve its details, including available redemption status information.
Get Contact Auth Token
PIGGY_GET_CONTACT_AUTH_TOKENTool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.
Get Contact's Credit Balance
PIGGY_GET_CONTACTS_CREDIT_BALANCETool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.
List Forms
PIGGY_LIST_FORMSTool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.
List Perks
PIGGY_LIST_PERKSTool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions.
Merge Contacts
PIGGY_MERGE_CONTACTSMerges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.
Send Contact Verification Email
PIGGY_SEND_CONTACT_VERIFICATION_EMAILSend a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.
Update Bookings
PIGGY_UPDATE_BOOKINGSTool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.
Update Contact Identifiers
PIGGY_UPDATE_CONTACT_IDENTIFIERSTool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.