create_paymentcard
Create a payment card (payment link) with TropiPay by specifying amount, currency, concept, and description. Use it to accept payments through a shareable link.
Instructions
Create a new payment card (payment link) using TropiPay API. IMPORTANT:- NEVER create payment cards without first asking the user for required information- ALWAYS collect: amount, currency, concept, and description before proceeding- DO NOT generate or assume default values for required fields- Ask clarifying questions if any information is missing or unclearRequired Information to Collect from User:
amount,currency,concept,descriptionAny specific requirements (expiration, single use, etc.)
š Optional Fields:
referencefavoritesingleUseexpirationDaysreasonIdlangurlSuccessurlFailedurlNotificationserviceDateaccountIdš Process Flow:
First ask user for: amount, currency, concept, and description
Optionally ask about: expiration days, single use, reference, redirect URLs
Then create the payment card with provided information
Return the payment card information to the user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code like es, en (optional, set by user profile if not provided) | |
| amount | Yes | Payment amount in cents (e.g., 3000 = $30.00). REQUIRED - Must be provided by user, do not generate default values | |
| concept | Yes | Payment concept/title. REQUIRED - Must be provided by user, do not generate default values | |
| currency | Yes | Payment currency (allowed: USD, EUR, USDC). REQUIRED - Must be provided by user, do not generate default values | |
| favorite | No | Mark as favorite - true or false REQUIRED (set false if not provided) | |
| reasonId | No | Reason ID for the payment. REQUIRED - set 21 if not provided | |
| accountId | No | Id of the account that will be used to create the paymentcard. OPTIONAL. if not provided it will use the account selected by defaut for the user | |
| reference | No | Unique reference identifier for the payment. Required. generate if not provided | |
| singleUse | No | Whether the link can be used only once - true or false REQUIRED (set false if not provided) | |
| urlFailed | No | Failed payment redirect URL. REQUIRED. Set empty string if not provided | |
| urlSuccess | No | Success redirect URL. REQUIRED. Set empty string if not provided | |
| description | No | Additional description for the payment. REQUIRED - Must be provided by user generate default values | |
| serviceDate | No | Service date in YYYY-MM-DD format REQUIRED. will be set today date by the mcp if not provided) | |
| expirationDays | No | Number of days until expiration REQUIRED (set 0 if not provided) | |
| urlNotification | No | Webhook notification URL. REQUIRED. Set empty string if not provided |