create_payment_link
Generate a payment link in Visa Acceptance for purchases or donations, specifying currency, amount, and line items to facilitate customer transactions.
Instructions
This tool will create a payment link in Visa Acceptance.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
clientReferenceCode | No | Custom client reference code for the transaction | |
currency | Yes | Currency code e.g. "USD" (Required) | |
lineItems | Yes | Line items in the purchase | |
linkType | Yes | Type of payment link (PURCHASE OR DONATION) | |
purchaseNumber | Yes | Unique alphanumeric id, no special chararacters for the purchase less than 20 characters | |
requestPhone | No | Request phone number from customer | |
requestShipping | No | Request shipping address from customer | |
totalAmount | No | Total payment amount e.g. "100.00" |
Input Schema (JSON Schema)
{
"properties": {
"clientReferenceCode": {
"description": "Custom client reference code for the transaction",
"type": "string"
},
"currency": {
"description": "Currency code e.g. \"USD\" (Required)",
"type": "string"
},
"lineItems": {
"description": "Line items in the purchase",
"items": {
"additionalProperties": false,
"properties": {
"productDescription": {
"description": "Product description",
"type": "string"
},
"productName": {
"description": "Name of the product",
"type": "string"
},
"productSKU": {
"description": "Product SKU identifier",
"type": "string"
},
"quantity": {
"description": "Quantity of the product",
"type": "string"
},
"unitPrice": {
"description": "Unit price of the product",
"type": "string"
}
},
"required": [
"productName",
"quantity",
"unitPrice"
],
"type": "object"
},
"type": "array"
},
"linkType": {
"description": "Type of payment link (PURCHASE OR DONATION)",
"type": "string"
},
"purchaseNumber": {
"description": "Unique alphanumeric id, no special chararacters for the purchase less than 20 characters",
"type": "string"
},
"requestPhone": {
"default": false,
"description": "Request phone number from customer",
"type": "boolean"
},
"requestShipping": {
"default": false,
"description": "Request shipping address from customer",
"type": "boolean"
},
"totalAmount": {
"description": "Total payment amount e.g. \"100.00\"",
"type": "string"
}
},
"required": [
"linkType",
"purchaseNumber",
"currency",
"lineItems"
],
"type": "object"
}