Create and manage payments in RepairShopr to invoice customers
I manage payments in RepairShopr. Payments represent money received from customers, typically applied to invoices. I can list payments, create new payments (including credit card processing if configured), and retrieve individual payment details.
Use this when:
Required API base URL:
VITE_REPAIRSHOPR_SUBDOMAINVITE_REPAIRSHOPR_API_KEYPermissions:
List Payments (GET /payments) Optional:
querypage (integer) - Page number (25 results per page)Create Payment (POST /payments) At minimum, you need to specify either:
customer_id + amount_cents + payment_methodinvoice_id + amount_cents (and optionally payment_method)Common parameters:
customer_id (integer) - Customer making paymentinvoice_id (integer) - Invoice to apply to (can be omitted for on-account payments)invoice_number (string) - Alternative to invoice_idamount_cents (integer) - Payment amount in cents (e.g., 1000 = $10.00)payment_method (string) - Method: "Cash", "Check", "Credit Card", "Other", etc.ref_num (string) - Reference number (check number, transaction ID)apply_payments (object) - For applying to multiple invoices: { invoice_id: amount, ... }address_street, address_city, address_zip - For credit card address verificationcredit_card_number, date_month, date_year, cvv - For direct credit card processingfirstname, lastname - Cardholder namesignature_name, signature_data, signature_date - For signature captureGet Payment (GET /payments/{id})
id (integer) - Payment IDExample call:
// Record a cash payment applied to an invoice
const payment = await skill({ name: "repairshopr-payment" }, {
invoice_id: 123,
amount_cents: 2500, // $25.00
payment_method: "Cash",
ref_num: "CASH-2024-001"
})
// Record a credit card payment
const ccPayment = await skill({ name: "repairshopr-payment" }, {
customer_id: 123,
amount_cents: 4999,
payment_method: "Credit Card",
credit_card_number: "4111111111111111",
date_month: "12",
date_year: "2025",
cvv: "123",
firstname: "John",
lastname: "Doe"
})
Response includes:
id, payment_amount, invoice_ids (array of applied invoices), payment_method, success flag, applied_at, signature_data if any, and embedded customer infoinvoice_id is provided, payment is automatically applied to that invoiceapply_payments allows splitting a payment across multiple invoicesrepairshopr-invoice - To create invoices firstrepairshopr-payment-method - For available payment method configurationsrepairshopr-payment-profile - For stored customer payment profiles