Stop losing money at the till: 10 AI skills for payments, card fees and tips

chargebacks

answer a chargeback with the evidence that wins it

How the two work together

Claude thinks it through. Paste the Claude prompt into Claude Code, or drop the folder into your skills folder. Claude does the judgement: what to look for, what is worth doing, what is right.

Codex gets it done. At the hand-off point Claude runs Codex on your machine with one command and passes it the Codex prompt. Codex does the mechanical part and hands the result back. Claude checks it before you see it.

No API key to set up: Claude calls the Codex you already have installed. If Codex is not installed, Claude does that half itself and tells you.

Prompt for Claude

---
name: chargebacks
description: Turns a chargeback notification from your acquirer into a dated response pack, the dispute condition identified by its number, the exact evidence that condition accepts listed item by item, a decision to defend or accept with the reasoning written down, a covering response that addresses each point the cardholder made, and a running register that shows which of your disputes you win and which you keep losing for the same reason. Use the day a chargeback lands, and again when you want to know why you keep getting the same one.
---

# A chargeback answered with the evidence the rules actually accept, and a register that shows you which one keeps coming back

You give this the chargeback notification from your acquirer, the transaction receipt, the booking or order record and whatever correspondence exists with the customer. You get back the dispute condition identified by its number, the list of evidence that condition accepts, a defend or accept decision with the reasoning recorded, a response addressing each of the cardholder's points, and a register entry so the pattern shows up before the fourth one arrives. It will not tell you your chances of winning. Nobody publishes a win rate for a single independent venue, and a percentage invented to make a decision look supported is worse than no percentage at all.

## What it does

1. **Start the clock in the same minute the notification arrives.** Visa's own merchant guidance is blunt about it: "Timeliness is also crucial when attempting to remedy a dispute. Each step in the dispute cycle has a defined time limit during which action can be taken. If you or your acquirer do not respond during the time specified on the request, which may vary depending on your acquirer, it may potentially lead to unfavorable outcome of the case." The deadline that binds you is the one your acquirer sets, not the one in the scheme rules, and it is usually shorter. Write the notification date, the acquirer's stated deadline and your internal deadline two working days earlier at the top of the file before doing anything else.

2. **Identify the dispute condition by its number, because the number decides what evidence counts.** Visa organises disputes into four categories with numbered conditions: 10 Fraud, 11 Authorization, 12 Processing Errors and 13 Consumer Disputes. The conditions a venue actually meets are 10.3 Other Fraud in a card-present environment, 10.4 Other Fraud in a card-absent environment, 11.3 No Authorization or Late Presentment, 12.5 Incorrect Amount, 12.6 Duplicate Processing or Paid by Other Means, 13.1 Merchandise or Services Not Received, 13.3 Not as Described or Defective, 13.6 Credit Not Processed and 13.7 Cancelled Merchandise or Services. Answering a 13.3 with the evidence that wins a 10.3 loses. Record the condition number exactly as the notification states it.

3. **Ask the one question that decides a card-present fraud dispute: was the chip read.** For condition 10.3 the cardholder is "claiming that they did not authorize or participate in a key-entered transaction conducted in a card-present environment". The guidance gives three responses and no others. If the card was swiped or chip-read and authorised, provide the authorisation record as proof the magnetic stripe or chip was read. If a manual imprint was obtained, provide it, and the guidance notes that this "Does not apply to the Europe region". And then the one most venues do not want to hear: "The transaction was not swiped, chip-read, or manually imprinted. Accept the dispute." A key-entered transaction taken because the chip would not read, with no imprint, is a dispute you lose, and the money is gone before you start writing.

4. **For a card-absent dispute, gather the elements the rules name rather than the story you want to tell.** Condition 10.4 covers a transaction the cardholder says they did not authorise in a card-absent environment, which for a venue means a telephone booking, a deposit taken over the phone, or a no show charge on a stored card. The guidance sets out the specific route: two or more completed transactions settled in the window before the dispute which the issuer did not report as fraud, sharing "at least two data elements (device ID, device fingerprint, or the IP address) the same as the disputed transaction", together with a detailed description of what was purchased in the disputed transaction and the two previous ones. A venue that takes phone bookings and writes nothing down has none of this.

5. **Treat a not as described dispute as a quality argument you have to evidence, and note the sting in the tail.** Condition 13.3 covers services that "did not match the description on the transaction receipt or other documentation presented at the time of purchase", services not the same as a verbal description, and a cardholder who "disputes the quality of the merchandise or services". The guidance's advice is to provide specific information or documentation to refute the claims, notes that for quality disputes "There may be instances where you will need to obtain a neutral third-party opinion", and says plainly that "It is recommended that you address each point that the cardholder has made". Then the sentence that catches out every venue with a no refunds sign: "Merchants should keep in mind that their return policy has no bearing on disputes that fall under this dispute condition."

6. **Check whether the dispute is actually a credit you already processed, because a surprising number are.** Conditions 13.6 Credit Not Processed and 12.6 Duplicate Processing catch the venue that refunded in cash, refunded to a different card, or ran the terminal twice when the first attempt appeared to fail. The response the guidance asks for is the same in several conditions: "Provide documentation of the credit or reversal that includes the amount and the date it was processed." If you refunded by any route other than back to the original card, you need the record that proves it, and if you refunded in cash you may have no record at all, which is its own finding.

7. **Decide to defend or accept, and write the reason down either way.** The guidance is explicit that accepting is sometimes correct: "Although many disputes are resolved without the merchant losing the sale, some cannot be remedied. In such cases, accepting the dispute may save you the time and expense of needlessly contesting it." Record the decision, the reason, who made it and the date. A venue that defends everything burns hours it does not have on disputes it cannot win, and a venue that accepts everything never finds out which of its processes is generating them.

8. **Assemble the evidence to the standard the rules set, not the standard that feels convincing.** Two requirements apply whatever the condition. Supply everything at the first notification: "it is essential to promptly supply all available details including relevant documentation at the initial dispute notification". And make it readable: "Evidence must be legible (good scan copy) and in English or accompanied by an English translation". A photograph of a docket taken at an angle in low light is not evidence, and neither is a till roll that has faded. Scan, name each file for what it proves, and list the files in the covering response in the order the points are answered.

9. **Hand the assembly and the register to Codex after you have made the decision.** Put the notification, the receipts, the booking records, the correspondence and your decision in one working folder and run, from that folder:

   ```
   codex exec --sandbox danger-full-access --skip-git-repo-check -C "<working folder>" - < CODEX.md
   ```

   Claude hands over the condition number, the evidence checklist for that condition, your defend or accept decision, the documents you hold and the cardholder's points. Codex returns the dispute register entry, the evidence checklist with each item marked held or missing, the deadline calendar and a gaps file. Codex never decides whether to defend, never writes the covering response and never judges whether a document proves anything.

10. **Read the register every month and act on the pattern, not the individual case.** Visa's guidance recommends tracking disputes by condition, tracking them as a proportion of sales activity, and tracking card-present and card-absent disputes separately, because "Each condition is associated with unique business issues and requires specific remedies and reduction strategies". Three 10.3s in a quarter is not bad luck, it is a terminal that will not read chips and a team that key-enters instead of asking for another card. That fix costs one conversation. The disputes cost the sale, the fee and the hour.

## Then it checks

1. Every dispute in the register carries the condition number exactly as the acquirer's notification states it, and no dispute is recorded with a category alone.
2. Every dispute has a notification date, an acquirer deadline and an internal deadline, and the internal deadline is earlier than the acquirer's.
3. Every evidence item on the checklist is marked held or missing, with the file name where it is held, and no item is left blank.
4. Every defend or accept decision names the person who made it, the date, and the reason in one sentence.
5. Every document listed as evidence is legible and in English or accompanied by a translation, and the file records who confirmed that and when.
6. No sentence in the output states a probability, a likelihood or a win rate for the dispute.

Any check fails: name it, redo that step once. Failed twice: say what is wrong and stop.

## Rules
- Public information only.
- Never invent a fact, a number or a quote.
- Anything sent in someone's name says whose name it is.
- Never state a chargeback rate, a win rate or a typical number of disputes for a UK hospitality business. No published figure exists for a single independent venue, the percentages that circulate come from firms selling chargeback services, and an owner who believes a borrowed figure will either accept a serious problem as normal or spend money solving one they do not have.
- Never write a fact into a dispute response that is not in a document you can produce. A response that asserts the customer ate the meal, with nothing behind it, is weaker than a response that produces the signed docket and says nothing else.
- Never present the venue's refund policy as an answer to a condition 13.3 dispute. The scheme guidance states that the return policy has no bearing on that condition, and leading with it wastes the one response you get.
- Never defend a card-present fraud dispute where the transaction was key-entered with no imprint and no chip read. The guidance says to accept it, and the time is better spent stopping the next one.
- Never send the response direct to the cardholder or the issuer. It goes to your acquirer, through the route and within the deadline your acquirer has given you, and any contact with the customer is a separate decision the owner makes knowingly.
- Never treat a customer's withdrawal of a dispute as done until you hold it in writing. The guidance asks for "a letter or email from the cardholder that states they no longer dispute the transaction", which means a phone call is not evidence.
- This output is a working document prepared for the owner to check against their own records, and for their accountant and, where the sum or the allegation is serious, their solicitor to check before it is sent. It applies published scheme guidance to documents you supply. It is not legal advice and it is not a prediction of the outcome.

## Built from
- Visa, "Dispute Management Guidelines for Visa Merchants", June 2024, https://usa.visa.com/content/dam/VCOM/global/support-legal/documents/merchants-dispute-management-guidelines.pdf, read 23 September 2026: the definition of a dispute, the four categories and their numbered conditions, the timeliness and legibility requirements, the responses for conditions 10.3, 10.4 and 13.3, the credit and reversal evidence, the advice on accepting a dispute and the dispute monitoring recommendations, in steps 1 to 10.
- The Payment Services Regulations 2017, regulation 76, https://www.legislation.gov.uk/uksi/2017/752/regulation/76, read 23 September 2026: the separate statutory route by which a payer's own provider must refund an unauthorised transaction, which is why a fraud dispute can reach you even where you did nothing wrong, in steps 3 and 4.
- The Payment Services Regulations 2017, regulation 79, https://www.legislation.gov.uk/uksi/2017/752/regulation/79, read 23 September 2026: refunds for authorised transactions initiated by or through the payee where the exact amount was not specified, which is the shape of a disputed deposit or no show charge, in step 4.
- Regulation (EU) 2015/751 on interchange fees, Article 12, as it applies in the UK, https://www.legislation.gov.uk/eur/2015/751/article/12, read 23 September 2026: the per transaction information from your acquirer that lets you match a disputed transaction to its settlement, in step 6.

Prompt for Codex

# chargebacks

## You are given
One chargeback notification from the owner's acquirer, stating the transaction reference, the amount, the notification date and the dispute condition number exactly as the acquirer wrote it. The transaction receipt or terminal record. The booking or order record where one exists. Any correspondence with the customer. The owner's defend or accept decision for this dispute, already made, with the reason in the owner's own words. The owner's list of documents they hold against this dispute, each named as a file. The acquirer's stated response deadline for this dispute, in the owner's own words if no exact date was given. All judgement calls, including whether to defend, whether a document proves a point and what the covering response says, have already been made by the owner and Claude, and are supplied to you as finished text and decisions. You do not evaluate evidence, you record it.

## Produce
Write into a `./chargebacks-output/` folder:

1. `dispute-register.csv` with these columns in this order: `dispute_ref`, `notification_date`, `acquirer_name`, `transaction_reference`, `transaction_date`, `transaction_amount_gbp`, `condition_number`, `condition_category`, `card_present_or_absent`, `acquirer_deadline`, `internal_deadline`, `decision`, `decision_reason`, `decision_by`, `decision_date`, `outcome`, `outcome_date`. `dispute_ref` is DSP001 upward, one row per dispute supplied. `condition_category` is exactly one of `fraud`, `authorization`, `processing errors`, `consumer disputes`, copied from what the owner recorded against the condition number, never inferred by you. `card_present_or_absent` is exactly one of `card present`, `card absent`, `not applicable`. `decision` is exactly `defend` or `accept`, copied from the owner. `outcome` is exactly one of `pending`, `won`, `lost`, `withdrawn by cardholder`, and starts as `pending` unless the owner supplied an outcome.
2. `evidence-checklist.csv` with columns: `dispute_ref`, `condition_number`, `evidence_item`, `held_or_missing`, `file_name`, `legible_confirmed_by`, `legible_confirmed_date`, `language`. One row per evidence item the owner's brief names as required for that condition number. `held_or_missing` is exactly `held` or `missing`. `language` is exactly `English` or `translated with English copy attached`. Every row where `held_or_missing` is `missing` is also listed in `gaps.md`.
3. `deadline-calendar.csv` with columns: `dispute_ref`, `notification_date`, `acquirer_deadline`, `internal_deadline`, `days_remaining_from_notification`, `response_sent_date`. `internal_deadline` must be earlier than `acquirer_deadline` in every row; where the owner supplied deadlines that do not satisfy this, record both dates as supplied and list it in `gaps.md`, do not correct it yourself.
4. `pattern-summary.csv` with columns: `condition_number`, `condition_category`, `dispute_count`, `defended_count`, `accepted_count`, `won_count`, `lost_count`, `card_present_count`, `card_absent_count`. One row per distinct condition number appearing in `dispute-register.csv`, counted from that file only. No percentage, rate or ratio column. No row for a condition with a single dispute is described as a pattern; that word is not used anywhere in this file.
5. `gaps.md` a numbered list of: every evidence item marked `missing`; every dispute with no acquirer deadline supplied; every dispute where the internal deadline is not earlier than the acquirer deadline; every dispute with a `decision` field left blank; every document marked `held` with no `legible_confirmed_by` entered; and any figure or date supplied without a clear source.

## Rules
- Codex records, counts and calendars. It never decides whether to defend or accept a dispute, never writes or edits the covering response sent to the acquirer, never judges whether a document proves a point, and never estimates a missing date or amount.
- Never state a win rate, a chargeback rate, a percentage or any comparison to a typical or average business, in any file. No such figure exists for a single independent UK venue and none is to be recorded.
- Never mark evidence `held` because a document of that general type usually exists. Only a document the owner named as supplied is `held`. Everything else is `missing`.
- Never carry a decision, a document or a deadline forward from a previous dispute in the register. Each `dispute_ref` is judged only on what the owner supplied for it.
- Never set `outcome` to `won` or `lost` without the owner having supplied that outcome. An unresolved dispute stays `pending`.
- Use British English, GBP written as `GBP` or the pound sign, and DD Month YYYY dates. No em dashes in any file you write, and any supplied text containing one is recorded verbatim and flagged in `gaps.md`.
- Every quoted condition number, deadline and file name is copied exactly as the owner supplied it.
- Every file ends with this line: this is a working document prepared for the owner to check against their own acquirer correspondence, and for their accountant and, where the sum or the allegation is serious, their solicitor to check before anything is sent. It applies supplied facts and decisions to a record and is not a ruling on the outcome of any dispute.

## Return
The absolute path of every file written, the row count of each CSV, the total number of disputes in the register and how many are `pending`, `won`, `lost` and `withdrawn by cardholder`, the count of evidence items marked `missing` and which dispute they sit against, the count of disputes with no acquirer deadline supplied or with an internal deadline not earlier than the acquirer deadline, the condition numbers appearing more than once in `pattern-summary.csv` stated plainly with their counts and no rate attached, and the `gaps.md` item count.

Built from the best public work on this

Sources for chargebacks

Everything below was opened and read on 23 September 2026. Nothing is cited that could not be loaded.

1. Visa, "Dispute Management Guidelines for Visa Merchants", June 2024

https://usa.visa.com/content/dam/VCOM/global/support-legal/documents/merchants-dispute-management-guidelines.pdf, read 23 September 2026.

This is the primary source for almost the whole skill, because it is the document that actually decides what a merchant must produce to win. Visa organises every dispute into four categories, each with numbered conditions, and the category names alone tell you nothing: "10 Fraud", "11 Authorization", "12 Processing Errors" and "13 Consumer Disputes". The conditions this skill uses are the ones a card-present hospitality venue actually receives.

On timeliness, the guidance says plainly: "Each step in the dispute cycle has a defined time limit during which action can be taken. If you or your acquirer do not respond during the time specified on the request, which may vary depending on your acquirer, it may potentially lead to unfavorable outcome of the case." That last clause, unfavourable rather than automatic loss, is why step 1 sets the internal deadline two working days before the acquirer's, not on the day itself.

Condition 10.3, Other Fraud in a card-present environment, is defined as the cardholder "claiming that they did not authorize or participate in a key-entered transaction conducted in a card-present environment." The three permitted responses are the authorisation record proving the chip or stripe was read, a manual imprint where one exists ("Does not apply to the Europe region"), or, where none of those exist, to accept the dispute. Condition 10.4, the card-absent equivalent, needs "at least two data elements (device ID, device fingerprint, or the IP address) the same as the disputed transaction" across two or more undisputed prior transactions, which a venue with no phone booking log cannot produce.

Condition 11.3 covers a transaction "processed without obtaining the required authorization, or... not processed within the required transaction processing time limit." Condition 12.5 covers an "incorrect" transaction amount or one altered "after completion without cardholder consent." Condition 12.6 covers a "single transaction... processed more than once using the same Payment Credential on the same Transaction date," which catches a terminal retried after an apparent failure. Condition 13.1 covers merchandise or services "not received by the expected date," and 13.3 covers services that "did not match the description" or were received "damaged or defective," with the explicit statement that "Merchants should keep in mind that their return policy has no bearing on disputes that fall under this dispute condition." Conditions 13.6 and 13.7 both cover a credit the cardholder says never arrived, the first because it was never processed, the second because merchandise was returned or a service cancelled and the credit has not appeared.

On evidence, the standard is exact: "Evidence must be legible (good scan copy) and in English or accompanied by an English translation," and "it is essential to promptly supply all available details including relevant documentation at the initial dispute notification." On the decision to accept, the guidance removes any sense that defending is always correct: "Although many disputes are resolved without the merchant losing the sale, some cannot be remedied. In such cases, accepting the dispute may save you the time and expense of needlessly contesting it." On monitoring, it recommends tracking disputes "by conditions. Each condition is associated with unique business issues and requires specific remedies," and separately monitoring "dispute activity as a proportion of sales activity."

Where the skill departs: the guidelines run to well over a hundred pages covering every scheme product, every region and every condition Visa lists, including many that do not apply to a card-present UK hospitality venue, such as conditions built around recurring subscription billing or ATM disputes. The skill selects only the conditions a restaurant, bar or hotel actually receives. It also does not teach Mastercard's parallel rulebook, because the acquirer notification names the scheme and the response route for that scheme, and mixing the two would produce a response built on the wrong rules.

2. The Payment Services Regulations 2017, regulation 76

https://www.legislation.gov.uk/uksi/2017/752/regulation/76, read 23 September 2026.

This is the statutory route that sits behind a fraud dispute and explains why one can arrive even when the venue did nothing wrong. Where a transaction was not authorised, "the payment service provider must... refund the amount of the unauthorised payment transaction to the payer," "as soon as practicable, and in any event no later than the end of the business day following the day on which it becomes aware of the unauthorised transaction," with the credit value date backdated to the debit date. The refund obligation does not apply where the provider has reasonable grounds to suspect fraud and has reported it under the Proceeds of Crime Act 2002.

Where the skill departs: regulation 76 obliges the cardholder's own bank, not the venue, and the chargeback that follows is the scheme's mechanism for the bank to recover that refund from the merchant's acquirer. The skill states this once, in steps 3 and 4, to explain why the dispute exists, and does not walk through the bank's own compliance duty, which is not the venue's to manage.

3. The Payment Services Regulations 2017, regulation 79

https://www.legislation.gov.uk/uksi/2017/752/regulation/79, read 23 September 2026.

Regulation 79 gives a payer a refund right for an authorised transaction "initiated by or through the payee" where the authorisation did not specify the exact amount and the amount taken "exceeded the amount that the payer could reasonably have expected taking into account the payer's previous spending pattern, the conditions of the framework contract and the circumstances of the case." This is the shape of a deposit taken over the phone for an unspecified final bill, or a no-show charge on a card held on file, and it is why a dispute can be entirely legitimate rather than a fraud attempt.

Where the skill departs: paragraph 6 allows this right to be waived in a framework contract where consent was given directly and information provided at least four weeks ahead, which does not fit a same-week hospitality booking, so the skill does not present the waiver as a realistic defence for a venue.

4. Regulation (EU) 2015/751 on interchange fees for card-based payment transactions, Article 12, as retained UK law

https://www.legislation.gov.uk/eur/2015/751/article/12, read 23 September 2026.

The regulation is retained UK law following EU withdrawal, applied as amended by the Interchange Fee (Amendment) (EU Exit) Regulations 2019, and it has not been revoked. Article 12 requires the payee's payment service provider to supply, after execution of a card transaction, "the reference enabling the payee to identify the card-based payment transaction," the amount in the account currency, and "the amount of any charges for the card-based payment transaction, indicating separately the merchant service charge and the amount of the interchange fee." This is the settlement information a venue needs to match a disputed transaction on the acquirer's statement to the till record in step 6.

Where the skill departs: the article also sets out how this information may be aggregated with the payee's consent and provided periodically, which is a commercial arrangement between the venue and its acquirer rather than a dispute-response step, so the skill does not walk through the aggregation options.

The best public prompt found

The closest public artefact found is Stripe's own developer documentation on disputes, "Disputes overview", https://docs.stripe.com/disputes, loaded 23 September 2026. Its useful half is the discipline of mapping evidence fields to reason codes systematically, which is the same principle this skill applies to Visa's numbered conditions rather than Stripe's own category names.

What we deliberately did not copy: Stripe's guidance is written for an online, card-not-present merchant integrating an API, and its evidence fields assume a shipping address, a tracking number and an IP address on every order, none of which a table-service restaurant taking a card in person holds. It also frames the goal as maximising the win rate through its own dashboard tooling, which is the exact benchmark framing this skill's rules forbid, because no win rate exists for a single independent venue and chasing one it heard elsewhere is how an owner starts defending disputes the guidance itself says to accept.

Want this running in your business?

I optimise how businesses run — your sales, your visibility, your social media — and build bespoke software where nothing off the shelf fits. The first conversation is free. Work starts from £150 a day.