---
title: "Payments"
description: "What happens when a gateway says no."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/payments"
---
# Payments

> What happens when a gateway says no.

What happens when a gateway says no. Every decline a provider can return is mapped to a canonical answer: whether it is worth retrying, whether the instrument should be marked unusable, and what the customer should be told.

The built-in mapping is the default, and a business can override it at two levels — one specific gateway rule, or every rule producing one canonical code. Deleting an override restores the built-in answer rather than removing the handling.

## Endpoints

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/payments/override-every-rule-that-produces-one-canonical">
        <code>
          /v1/businesses/{biz}/decline_codes/{code}
        </code>
      </a>
    </td>
    
    <td>
      Override every rule that produces one canonical code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        DELETE
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/payments/remove-the-code-level-setting">
        <code>
          /v1/businesses/{biz}/decline_codes/{code}
        </code>
      </a>
    </td>
    
    <td>
      Remove the code-level setting
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/payments/list-every-gateway-decline-and-how-this-business">
        <code>
          /v1/businesses/{biz}/decline_rules
        </code>
      </a>
    </td>
    
    <td>
      List every gateway decline and how this business handles it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        PATCH
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/payments/override-one-rule-s-answer-for-this-business">
        <code>
          /v1/businesses/{biz}/decline_rules/{rule}
        </code>
      </a>
    </td>
    
    <td>
      Override one rule's answer for this business
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        DELETE
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/payments/remove-the-override-and-restore-the-built-in-ans">
        <code>
          /v1/businesses/{biz}/decline_rules/{rule}
        </code>
      </a>
    </td>
    
    <td>
      Remove the override and restore the built-in answer
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
