chargeCreditCard
Charges a credit card and applies the payment to a specific customer bill using provided card details and amount, integrating with the Mews hospitality platform API.
Instructions
Charges a credit card and adds the resulting payment to a customer bill
Input Schema
Name | Required | Description | Default |
---|---|---|---|
Amount | Yes | Charge amount object | |
BillId | No | Specific bill ID to apply charge to | |
CreditCardData | Yes | Credit card information | |
CustomerId | Yes | Customer ID for the charge | |
Notes | No | Charge notes |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"Amount": {
"description": "Charge amount object",
"properties": {
"Currency": {
"description": "Charge currency code",
"type": "string"
},
"Value": {
"description": "Charge amount value",
"type": "number"
}
},
"required": [
"Currency",
"Value"
],
"type": "object"
},
"BillId": {
"description": "Specific bill ID to apply charge to",
"type": "string"
},
"CreditCardData": {
"description": "Credit card information",
"properties": {
"Expiry": {
"description": "Expiry date (MM/YY)",
"type": "string"
},
"Name": {
"description": "Cardholder name",
"type": "string"
},
"Number": {
"description": "Credit card number",
"type": "string"
},
"SecurityCode": {
"description": "CVV/CVC code",
"type": "string"
}
},
"required": [
"Number",
"Expiry",
"Name"
],
"type": "object"
},
"CustomerId": {
"description": "Customer ID for the charge",
"type": "string"
},
"Notes": {
"description": "Charge notes",
"type": "string"
}
},
"required": [
"CustomerId",
"Amount",
"CreditCardData"
],
"type": "object"
}