---
updatedAt: 2026-11-05T23:25:26.000Z
agentTools:
  siteIndex: https://docs.recurly.com/llms.txt
  projectIndex: https://docs.recurly.com/recurly-subscriptions/v2021-02-25/llms.txt
---

# List a site's credit payments

See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.

# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Recurly V3 API",
    "description": "# Getting Started\n\n## Versioning\nThe V3 API is versioned to allow stability for integrators and\nflexibility for Recurly to continue making improvements.\n\nThe versions follow a format that incorporates the approximate date the\nchanges were released in a YYYY-MM-DD format, e.g. `v2021-02-25`.\n\n> *WARNING*: Specifying a version is required to get a successful response.\n\nEach request should specify a version using the `Accept` header:\n* `Accept: application/vnd.recurly.v2021-02-25`\n* `Accept: application/vnd.recurly.v2021-02-25+json`\n\nAll responses will include a `Recurly-Version` header with the API version\nused to process the request:\n```\nRecurly-Version: recurly.v2021-02-25\n```\n\nRecurly's client libraries correspond with API versions as listed below.\n\n<table>\n  <tr>\n    <th>API Version</th>\n    <th>Client Library Version</th>\n  </tr>\n  <tr>\n    <td>v2021-02-25</td>\n    <td>4.x</td>\n  </tr>\n  <tr>\n    <td>v2019-10-10</td>\n    <td>3.x</td>\n  </tr>\n</table>\n\nClient library releases:\n\n* [Node.js](https://github.com/recurly/recurly-client-node/releases)\n* [Python](https://github.com/recurly/recurly-client-python/releases)\n* [.NET](https://github.com/recurly/recurly-client-dotnet/releases)\n* [Ruby](https://github.com/recurly/recurly-client-ruby/releases)\n* [Java](https://github.com/recurly/recurly-client-java/releases)\n* [PHP](https://github.com/recurly/recurly-client-php/releases)\n* [Go](https://github.com/recurly/recurly-client-go/releases)\n\nClient libraries follow semantic versioning. For example, [Ruby client library\nversion 3.18.1](https://github.com/recurly/recurly-client-ruby/releases/tag/3.18.1)\nrepresents major version `3`, minor version `18` with patch `1`.\n\nWe encourage you to update to the latest version of the API and corresponding client library,\nas most recent versions are more performant than their predecessors. See the\n[changelog](https://recurly.com/developers/api/changelog.html) for a comprehensive list of changes\nintroduced in the latest API version.\n\n### Default Versions\nSpecifying a version is required to get a successful response. If you wish to\nreceive the latest version and are willing to accept the risk of breaking changes,\nyou may specify a version of `latest`.\n\nThe following media types will default the newest version of\nthe API:\n\n* `application/vnd.recurly.latest`\n* `application/vnd.recurly.latest+json`\n\n### Deprecation\nResponses for a deprecated version request will return two headers:\n```\nRecurly-Deprecated: TRUE\nRecurly-Sunset-Date: 2017-06-01T00:00:00+00:00\n```\nThe sunset date is an ISO-8601 formatted date time after which the version\nwill no longer be accessible.\n\n### Unsupported Versions\nA request for an unsupported version will return a status code of 406 and\nthe body will include a list of supported versions:\n```\n{\n  \"error\": {\n    \"type\": \"invalid_api_version\",\n    \"message\": \"That accept header isn't in the format we use to specify an API version. Try one of these instead:\",\n    \"acceptable_accept_headers\": [\n      \"application/vnd.recurly.v2016-03-01\",\n      \"application/vnd.recurly.v2016-04-27\",\n      \"application/vnd.recurly.v2016-07-27\",\n      \"application/vnd.recurly.v2016-12-15\",\n      \"application/vnd.recurly.v2017-01-12\",\n      \"application/vnd.recurly.v2017-09-30\",\n      \"application/vnd.recurly.v2018-01-24\",\n      \"application/vnd.recurly.v2018-05-10\",\n      \"application/vnd.recurly.v2018-06-06\",\n      \"application/vnd.recurly.v2018-08-09\",\n      \"application/vnd.recurly.v2019-10-10\",\n      \"application/vnd.recurly.v2021-02-25\"\n    ]\n  }\n}\n```\n\n## Error Messages\nError messages sent via the Recurly API are generally directed at\ndevelopers and those who are familiar with API technology. When using the\nAPI and passing error messages to target systems, be mindful that\nthese messages may not make sense in the context of the target system.\nPlease consider changing these messages in the target system to be better\nsuited to the audience of the system.\n\nPlease see [transaction error codes](https://recurly.com/developers/pages/api-transaction-errors.html) for more details.\n\n## Pagination\n### Response Schema\nEvery GET listing endpoint returns a response with the same schema:\n\n```\n{\n  \"object\":   \"list\",         // Always \"list\"\n  \"has_more\": true,           // false if this is the last page of data\n  \"next\":     \"https://...\",  // A URL pointing to the next page of data\n  \"data\":     []              // The data for this page as an array\n}\n```\n\nTo page through every record, your code should continually call the URL\nat `next` until `has_more` is `false`.\n\n### Query Parameters\nMost GET listing endpoints take query parameters that allow filtering\nand sorting the results. Some endpoints have additional parameters, which are\ndocumented on the respective endpoints, but most support the\nfollowing parameters:\n\n* `ids`: A comma separated list of ids to match.\n* `limit`: The number of records to return per page.\n* `order`: The sort order of records.\n* `sort`: The date field to use in sorting.\n* `begin_time`: The start datetime to filter (ISO 8601).\n* `end_time`: The end datetime to filter (ISO 8601).\n\n### Counting with HEAD\nEvery GET listing endpoint also supports the HEAD HTTP method. Making a\nhead request to the endpoint results in an empty body and an additional\n`Recurly-Total-Records` header. This is a count of the total number of records\nthat the endpoint will return, taking into account the current filtering query\nparameters.\n\n## Limits\nIn order to provide a fast response time to all our customers, we may rate\nlimit excessive requests. By default, new Recurly sites have the following\nAPI rate limits:\n\n* Sandbox sites: 400 requests/min. All requests count towards the rate limit.\n* Production sites: 1,000 requests/min. Only GET requests count towards the rate limit.\n\nOnce your site moves into production mode, Recurly will only rate limit\nGET requests. New subscriptions, account modifications, and other requests\nusing POST, PUT, or DELETE methods will not count against your rate limit.\n\nThe rate limit is calculated over a sliding 5 minute window. This means a\nproduction site could make 4,000 requests within one minute and not hit\nthe rate limit so long as the site made less than 1,000 requests during\nthe prior 4 minutes.\n\nIf an API request exceeds the rate limit, the API will return a\n`429 Too Many Requests` HTTP status. If your business needs a higher\nlimit, please contact support.\n\nThe rate limit applied to your client can be determined with the\n`X-RateLimit-Limit` header, and the number of remaining requests is sent\nin the `X-RateLimit-Remaining` header. Finally, the `X-RateLimit-Reset`\nheader contains an integer value representing the time, measured in\nseconds since the UNIX Epoch, at which the request count will be reset.\n\n## Idempotent Requests\n\nRecurly supports idempotent requests via the `Idempotency-Key` header for\n`POST`, `PUT`, `PATCH`, and `DELETE` requests. This allows API clients to\nsafely retry these requests without risk of duplicate operations.\n\nWhen you send a request with an `Idempotency-Key` header, Recurly stores the\nresponse for **1 hour**. If you send an identical request (same key, method,\npath, and API key) within that window, Recurly replays the original response\nrather than processing a new one. The replay response includes an\n`Idempotency-Prior: true` header.\n\nIf a request with the same key is **already in flight** when a second arrives,\nthe server returns `409 Conflict` with `Recurly-Should-Retry: true` and a\n`Retry-After` header indicating how long to wait in seconds before retrying.\n\n> **Note:** `429 Too Many Requests` responses are intentionally **not** cached.\n> You may retry freely once your rate limit resets without risk of unintended\n> replay behavior.\n\nKeys must be **255 characters or fewer**. Keys exceeding this limit will\nreceive a `400 Bad Request` response. We recommend using a UUID v4 as your\nkey to guarantee uniqueness.\n\n> **SDK support:** Native `Idempotency-Key` management (automatic key\n> generation, retry handling, and replay detection) is currently supported only\n> in the **Ruby SDK**. When using other SDKs or raw HTTP clients, you must\n> supply and manage the `Idempotency-Key` header yourself.\n\n## Change Log\n\nA list of changes for this version can be found [in the changelog](https://recurly.com/developers/api/changelog.html#v2021-02-25---current-ga-version).\n",
    "version": "v2021-02-25"
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "x-tagGroups": [
    {
      "name": "Customers",
      "tags": [
        "Account",
        "Account Note",
        "Account Acquisition Info",
        "Billing Info",
        "Billing Infos",
        "Coupon Redemption",
        "Subscription",
        "Subscription Change",
        "Usage",
        "Shipping Address"
      ]
    },
    {
      "name": "Invoices and Payments",
      "tags": [
        "Purchase",
        "Invoice",
        "Line Item",
        "Credit Payment",
        "Transaction",
        "Revenue Recovery",
        "Gift Cards"
      ]
    },
    {
      "name": "Products and Promotions",
      "tags": [
        "Item",
        "Plan",
        "Add-on",
        "Measured Unit",
        "Coupon",
        "Unique Coupon Code",
        "Price Segment"
      ]
    },
    {
      "name": "Configuration",
      "tags": [
        "Site",
        "Custom Field Definition",
        "Shipping Method",
        "Dunning Campaigns",
        "Business Entities",
        "Automated Exports",
        "General Ledger Account",
        "Performance Obligations",
        "Invoice Templates"
      ]
    },
    {
      "name": "App Management",
      "tags": [
        "External Subscription",
        "External Invoice",
        "External Product",
        "External Account",
        "External Product Reference",
        "External Payment Phase"
      ]
    }
  ],
  "tags": [
    {
      "name": "Credit Payment"
    }
  ],
  "paths": {
    "/credit_payments": {
      "get": {
        "tags": [
          "Credit Payment"
        ],
        "operationId": "list_credit_payments",
        "summary": "List a site's credit payments",
        "description": "See the [Pagination Guide](/developers/guides/pagination.html) to learn how to use pagination in the API and Client Libraries.",
        "parameters": [
          {
            "$ref": "#/components/parameters/accept_header"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/sort_dates"
          },
          {
            "$ref": "#/components/parameters/filter_begin_time"
          },
          {
            "$ref": "#/components/parameters/filter_end_time"
          }
        ],
        "responses": {
          "200": {
            "description": "A list of the site's credit payments.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditPaymentList"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unpermitted parameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Incorrect site or account ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Node.js",
            "source": "const payments = client.listCreditPayments({ params: { limit: 200 } })\n\nfor await (const payment of payments.each()) {\n  console.log(payment.uuid)\n}\n"
          },
          {
            "lang": "Python",
            "source": "params = {\"limit\": 200}\npayments = client.list_credit_payments(params=params).items()\nfor payment in payments:\n    print(\"Credit Payment %s\" % payment.id)\n"
          },
          {
            "lang": ".NET",
            "source": "var optionalParams = new ListCreditPaymentsParams()\n{\n    Limit = 200\n};\nvar payments = client.ListCreditPayments(optionalParams);\nforeach(CreditPayment payment in payments)\n{\n    Console.WriteLine(payment.Uuid);\n}\n"
          },
          {
            "lang": "Ruby",
            "source": "params = {\n  limit: 200\n}\npayments = @client.list_credit_payments(params: params)\npayments.each do |payment|\n  puts \"CreditPayment: #{payment.id}\"\nend\n"
          },
          {
            "lang": "Java",
            "source": "ListCreditPaymentsParams params = new ListCreditPaymentsParams();\nparams.setLimit(200); // Pull 200 records at a time\nfinal Pager<CreditPayment> payments = client.listCreditPayments(params);\n\nfor (CreditPayment payment : payments) {\n    System.out.println(payment.getUuid());\n}\n"
          },
          {
            "lang": "PHP",
            "source": "$options = [\n  'params' => [\n    'limit' => 200\n  ]\n];\n$credit_payments = $client->listCreditPayments($options);\n\nforeach($credit_payments as $payment) {\n  echo 'Credit Payment: ' . $payment->getId() . PHP_EOL;\n}\n"
          },
          {
            "lang": "Go",
            "source": "listParams := &recurly.ListCreditPaymentsParams{\n\tSort:  recurly.String(\"created_at\"),\n\tOrder: recurly.String(\"desc\"),\n\tLimit: recurly.Int(200),\n}\ncreditPayments, err := client.ListCreditPayments(listParams)\nif err != nil {\n\tfmt.Println(\"Unexpected error: %v\", err)\n\treturn\n}\n\nfor creditPayments.HasMore() {\n\terr := creditPayments.Fetch()\n\tif e, ok := err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed to retrieve next page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, creditPayment := range creditPayments.Data() {\n\t\tfmt.Printf(\"Credit Payment %3d: %s\\n\",\n\t\t\ti,\n\t\t\tcreditPayment.Id,\n\t\t)\n\t}\n}"
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "node",
              "code": "const payments = client.listCreditPayments({ params: { limit: 200 } })\n\nfor await (const payment of payments.each()) {\n  console.log(payment.uuid)\n}\n",
              "name": "Node.js"
            },
            {
              "language": "python",
              "code": "params = {\"limit\": 200}\npayments = client.list_credit_payments(params=params).items()\nfor payment in payments:\n    print(\"Credit Payment %s\" % payment.id)\n",
              "name": "Python"
            },
            {
              "language": "csharp",
              "code": "var optionalParams = new ListCreditPaymentsParams()\n{\n    Limit = 200\n};\nvar payments = client.ListCreditPayments(optionalParams);\nforeach(CreditPayment payment in payments)\n{\n    Console.WriteLine(payment.Uuid);\n}\n",
              "name": ".NET"
            },
            {
              "language": "ruby",
              "code": "params = {\n  limit: 200\n}\npayments = @client.list_credit_payments(params: params)\npayments.each do |payment|\n  puts \"CreditPayment: #{payment.id}\"\nend\n",
              "name": "Ruby"
            },
            {
              "language": "java",
              "code": "ListCreditPaymentsParams params = new ListCreditPaymentsParams();\nparams.setLimit(200); // Pull 200 records at a time\nfinal Pager<CreditPayment> payments = client.listCreditPayments(params);\n\nfor (CreditPayment payment : payments) {\n    System.out.println(payment.getUuid());\n}\n",
              "name": "Java"
            },
            {
              "language": "php",
              "code": "$options = [\n  'params' => [\n    'limit' => 200\n  ]\n];\n$credit_payments = $client->listCreditPayments($options);\n\nforeach($credit_payments as $payment) {\n  echo 'Credit Payment: ' . $payment->getId() . PHP_EOL;\n}\n",
              "name": "PHP"
            },
            {
              "language": "go",
              "code": "listParams := &recurly.ListCreditPaymentsParams{\n\tSort:  recurly.String(\"created_at\"),\n\tOrder: recurly.String(\"desc\"),\n\tLimit: recurly.Int(200),\n}\ncreditPayments, err := client.ListCreditPayments(listParams)\nif err != nil {\n\tfmt.Println(\"Unexpected error: %v\", err)\n\treturn\n}\n\nfor creditPayments.HasMore() {\n\terr := creditPayments.Fetch()\n\tif e, ok := err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed to retrieve next page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, creditPayment := range creditPayments.Data() {\n\t\tfmt.Printf(\"Credit Payment %3d: %s\\n\",\n\t\t\ti,\n\t\t\tcreditPayment.Id,\n\t\t)\n\t}\n}",
              "name": "Go"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://v3.recurly.com"
    },
    {
      "url": "https://v3.eu.recurly.com"
    }
  ],
  "components": {
    "parameters": {
      "accept_header": {
        "name": "Accept",
        "in": "header",
        "description": "The API version to use for this request, e.g. `application/vnd.recurly.v2021-02-25`. Requests without a versioned `Accept` header return a 406 response.",
        "required": true,
        "schema": {
          "default": "application/vnd.recurly.v2021-02-25",
          "type": "string",
          "enum": [
            "application/vnd.recurly.v2021-02-25",
            "application/vnd.recurly.v2021-02-25+json"
          ]
        }
      },
      "limit": {
        "name": "limit",
        "in": "query",
        "description": "Limit number of records 1-200.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200,
          "default": 20
        }
      },
      "order": {
        "name": "order",
        "in": "query",
        "description": "Sort order.",
        "schema": {
          "default": "desc",
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "sort_dates": {
        "name": "sort",
        "in": "query",
        "description": "Sort field. You *really* only want to sort by `updated_at` in ascending\norder. In descending order updated records will move behind the cursor and could\nprevent some records from being returned.\n",
        "schema": {
          "default": "created_at",
          "type": "string",
          "enum": [
            "created_at",
            "updated_at"
          ]
        }
      },
      "filter_begin_time": {
        "name": "begin_time",
        "in": "query",
        "description": "Inclusively filter by begin_time when `sort=created_at` or `sort=updated_at`.\n**Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.\n",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "filter_end_time": {
        "name": "end_time",
        "in": "query",
        "description": "Inclusively filter by end_time when `sort=created_at` or `sort=updated_at`.\n**Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.\n",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "description": "Enter the API key as the username and set the password to an empty string. You can locate and manage your API keys from the [API Credentials](https://app.recurly.com/go/developer/api_keys) page.",
        "scheme": "basic"
      }
    },
    "schemas": {
      "CreditPaymentList": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type",
            "description": "Will always be List."
          },
          "has_more": {
            "type": "boolean",
            "description": "Indicates there are more results on subsequent pages."
          },
          "next": {
            "type": "string",
            "description": "Path to subsequent page of results."
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditPayment"
            }
          }
        }
      },
      "AccountMini": {
        "type": "object",
        "title": "Account mini details",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 13,
            "readOnly": true
          },
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "description": "The unique identifier of the account.",
            "maxLength": 50
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "The email address used for communicating with this customer.",
            "maxLength": 255
          },
          "first_name": {
            "type": "string",
            "maxLength": 255
          },
          "last_name": {
            "type": "string",
            "maxLength": 255
          },
          "company": {
            "type": "string",
            "maxLength": 255
          },
          "parent_account_id": {
            "type": "string",
            "maxLength": 13
          },
          "bill_to": {
            "type": "string",
            "maxLength": 6
          },
          "dunning_campaign_id": {
            "type": "string",
            "title": "Dunning Campaign ID",
            "description": "Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used."
          }
        }
      },
      "Address": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "title": "Phone number"
          },
          "street1": {
            "type": "string",
            "title": "Street 1",
            "maxLength": 50
          },
          "street2": {
            "type": "string",
            "title": "Street 2",
            "maxLength": 50
          },
          "city": {
            "type": "string",
            "title": "City"
          },
          "region": {
            "type": "string",
            "title": "State/Province",
            "description": "State or province."
          },
          "postal_code": {
            "type": "string",
            "title": "Zip/Postal code",
            "description": "Zip or postal code."
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "Country, 2-letter ISO 3166-1 alpha-2 code."
          },
          "geo_code": {
            "type": "string",
            "maxLength": 20,
            "description": "Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled."
          }
        }
      },
      "AddressWithName": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Address"
          }
        ],
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "title": "First name"
          },
          "last_name": {
            "type": "string",
            "title": "Last name"
          }
        }
      },
      "CreditPayment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Credit Payment ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "uuid": {
            "type": "string",
            "title": "Recurly UUID",
            "description": "The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.",
            "maxLength": 32
          },
          "action": {
            "title": "Action",
            "description": "The action for which the credit was created.",
            "type": "string",
            "enum": [
              "payment",
              "reduction",
              "refund",
              "write_off"
            ]
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "applied_to_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "original_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Amount",
            "description": "Total credit payment amount applied to the charge invoice."
          },
          "original_credit_payment_id": {
            "type": "string",
            "title": "Original Credit Payment ID",
            "description": "For credit payments with action `refund`, this is the credit payment that was refunded.",
            "maxLength": 13
          },
          "refund_transaction": {
            "$ref": "#/components/schemas/Transaction"
          },
          "created_at": {
            "type": "string",
            "title": "Created at",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "title": "Last updated at",
            "format": "date-time",
            "readOnly": true
          },
          "voided_at": {
            "type": "string",
            "title": "Voided at",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "InvoiceMini": {
        "type": "object",
        "title": "Invoice mini details",
        "properties": {
          "id": {
            "type": "string",
            "title": "Invoice ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "number": {
            "type": "string",
            "title": "Invoice number"
          },
          "business_entity_id": {
            "type": "string",
            "title": "Business Entity ID",
            "description": "Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled."
          },
          "type": {
            "title": "Invoice type",
            "type": "string",
            "enum": [
              "charge",
              "credit",
              "legacy"
            ]
          },
          "state": {
            "title": "Invoice state",
            "type": "string",
            "default": "all",
            "enum": [
              "open",
              "pending",
              "processing",
              "past_due",
              "paid",
              "closed",
              "failed",
              "voided"
            ]
          }
        }
      },
      "PaymentGatewayReferences": {
        "type": "object",
        "title": "Payment Gateway References Object",
        "description": "Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.",
        "properties": {
          "token": {
            "type": "string",
            "title": "Token",
            "description": "Reference value used when the external token was created. If a Stripe gateway or Ebanx gateway is used, this value will need to be accompanied by its reference_type."
          },
          "reference_type": {
            "type": "string",
            "title": "Reference Type",
            "description": "The type of reference token. The value can be omitted for gateways that only support one type of token.",
            "enum": [
              "stripe_confirmation_token",
              "upi_vpa"
            ]
          }
        }
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Transaction ID",
            "maxLength": 13
          },
          "object": {
            "type": "string",
            "title": "Object type"
          },
          "uuid": {
            "type": "string",
            "title": "Recurly UUID",
            "description": "The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.",
            "maxLength": 32
          },
          "original_transaction_id": {
            "type": "string",
            "title": "Original Transaction ID",
            "description": "If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.",
            "maxLength": 13
          },
          "account": {
            "$ref": "#/components/schemas/AccountMini"
          },
          "initiator": {
            "type": "string",
            "description": "Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.",
            "enum": [
              "customer",
              "merchant"
            ]
          },
          "invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "merchant_reason_code": {
            "type": "string",
            "default": "none",
            "description": "This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases.\nNot all gateways support these methods, but will support a generic one-time Merchant Initiated transaction.\nOnly use this if the initiator value is \"merchant\". Otherwise, it will be ignored.\n  - Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses.\n  - No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry.\n  - Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect.\n  - Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement.\n  - Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session.\n  - Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.\n",
            "enum": [
              "incremental",
              "no_show",
              "resubmission",
              "service_extension",
              "split_shipment",
              "top_up"
            ]
          },
          "voided_by_invoice": {
            "$ref": "#/components/schemas/InvoiceMini"
          },
          "subscription_ids": {
            "type": "array",
            "title": "Subscription IDs",
            "description": "If the transaction is charging or refunding for one or more subscriptions, these are their IDs.",
            "items": {
              "type": "string",
              "title": "Subscription ID",
              "maxLength": 13
            }
          },
          "type": {
            "title": "Transaction type",
            "description": "- `authorization` – verifies billing information and places a hold on money in the customer's account.\n- `capture` – captures funds held by an authorization and completes a purchase.\n- `purchase` – combines the authorization and capture in one transaction.\n- `refund` – returns all or a portion of the money collected in a previous transaction to the customer.\n- `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.\n",
            "type": "string",
            "enum": [
              "authorization",
              "capture",
              "purchase",
              "refund",
              "verify"
            ]
          },
          "origin": {
            "title": "Origin of transaction",
            "description": "Describes how the transaction was triggered.",
            "type": "string",
            "enum": [
              "api",
              "chargeback",
              "external_recovery",
              "force_collect",
              "hpp",
              "merchant",
              "recurly_admin",
              "recurlyjs",
              "recurring",
              "refunded_externally",
              "transparent",
              "token_api",
              "api_force_collect",
              "api_sub_change",
              "api_verify_card",
              "refund_balance",
              "amazon_v2_ipn"
            ]
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "description": "3-letter ISO 4217 currency code.",
            "maxLength": 3
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description that gets sent to the gateway."
          },
          "amount": {
            "type": "number",
            "format": "float",
            "title": "Amount",
            "description": "Total transaction amount sent to the payment gateway."
          },
          "status": {
            "title": "Transaction status",
            "description": "The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.",
            "type": "string",
            "enum": [
              "chargeback",
              "declined",
              "error",
              "pending",
              "processing",
              "scheduled",
              "success",
              "void"
            ]
          },
          "success": {
            "type": "boolean",
            "title": "Success?",
            "description": "Did this transaction complete successfully?"
          },
          "backup_payment_method_used": {
            "type": "boolean",
            "title": "Backup Payment Method Used?",
            "description": "Indicates if the transaction was completed using a backup payment"
          },
          "refunded": {
            "type": "boolean",
            "title": "Refunded?",
            "description": "Indicates if part or all of this transaction was refunded."
          },
          "billing_address": {
            "$ref": "#/components/schemas/AddressWithName"
          },
          "collection_method": {
            "description": "The method by which the payment was collected.",
            "type": "string",
            "enum": [
              "automatic",
              "manual"
            ]
          },
          "payment_method": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "payment_gateway_references": {
            "type": "array",
            "description": "Array of Payment Gateway References captured at transaction time, each a reference to a third-party gateway object of varying types.",
            "items": {
              "$ref": "#/components/schemas/PaymentGatewayReferences"
            }
          },
          "ip_address_v4": {
            "type": "string",
            "title": "IP address",
            "description": "IP address provided when the billing information was collected:\n\n- When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address.\n- When the merchant enters billing information using the API, the merchant may provide an IP address.\n- When the merchant enters billing information using the UI, no IP address is recorded.\n"
          },
          "ip_address_country": {
            "type": "string",
            "title": "Origin IP address country, 2-letter ISO 3166-1 alpha-2 code, if known by Recurly."
          },
          "status_code": {
            "type": "string",
            "title": "Status code"
          },
          "status_message": {
            "type": "string",
            "title": "Status message",
            "description": "For declined (`success=false`) transactions, the message displayed to the merchant."
          },
          "customer_message": {
            "type": "string",
            "title": "Customer message",
            "description": "For declined (`success=false`) transactions, the message displayed to the customer."
          },
          "customer_message_locale": {
            "type": "string",
            "title": "Language code for the message"
          },
          "payment_gateway": {
            "type": "object",
            "x-class-name": "TransactionPaymentGateway",
            "properties": {
              "id": {
                "type": "string"
              },
              "object": {
                "type": "string",
                "title": "Object type"
              },
              "type": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "gateway_message": {
            "type": "string",
            "title": "Gateway message",
            "description": "Transaction message from the payment gateway."
          },
          "gateway_reference": {
            "type": "string",
            "title": "Gateway reference",
            "description": "Transaction reference number from the payment gateway."
          },
          "gateway_approval_code": {
            "type": "string",
            "title": "Transaction approval code from the payment gateway."
          },
          "gateway_response_code": {
            "type": "string",
            "title": "For declined transactions (`success=false`), this field lists the gateway error code."
          },
          "gateway_response_time": {
            "type": "number",
            "format": "float",
            "title": "Gateway response time",
            "description": "Time, in seconds, for gateway to process the transaction."
          },
          "gateway_response_values": {
            "type": "object",
            "title": "Gateway response values",
            "description": "The values in this field will vary from gateway to gateway."
          },
          "cvv_check": {
            "title": "CVV check",
            "description": "When processed, result from checking the CVV/CVC value on the transaction.",
            "type": "string",
            "enum": [
              "D",
              "I",
              "M",
              "N",
              "P",
              "S",
              "U",
              "X"
            ]
          },
          "avs_check": {
            "title": "AVS check",
            "description": "When processed, result from checking the overall AVS on the transaction.",
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G",
              "H",
              "I",
              "J",
              "K",
              "L",
              "M",
              "N",
              "O",
              "P",
              "Q",
              "R",
              "S",
              "T",
              "U",
              "V",
              "W",
              "X",
              "Y",
              "Z"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created at"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated at"
          },
          "voided_at": {
            "type": "string",
            "format": "date-time",
            "title": "Voided at"
          },
          "collected_at": {
            "type": "string",
            "format": "date-time",
            "title": "Collected at, or if not collected yet, the time the transaction was created."
          },
          "action_result": {
            "type": "object",
            "description": "Action result params to be used in Recurly-JS to complete a payment when using asynchronous payment methods, e.g., Boleto, iDEAL and Sofort.",
            "title": "Action result"
          },
          "vat_number": {
            "type": "string",
            "description": "VAT number for the customer on this transaction. If the customer's Billing Info country is BR or AR, then this will be their Tax Identifier. For all other countries this will come from the VAT Number field in the Billing Info.",
            "title": "VAT Number"
          },
          "fraud_info": {
            "$ref": "#/components/schemas/TransactionFraudInfo"
          },
          "next_action": {
            "type": "object",
            "x-class-name": "TransactionNextAction",
            "description": "Next action values are used for any required customer follow-up action. Currently, this is supported for Ebanx when using Pix Automatico.",
            "properties": {
              "type": {
                "type": "string",
                "title": "Next action type",
                "description": "The type of next action required for the transaction.",
                "enum": [
                  "qr_code"
                ]
              },
              "value": {
                "type": "string",
                "title": "Next action value",
                "description": "The value associated with the next action type."
              }
            },
            "title": "Next action"
          }
        }
      },
      "TransactionFraudInfo": {
        "type": "object",
        "title": "Fraud information",
        "readOnly": true,
        "properties": {
          "object": {
            "type": "string",
            "title": "Object type",
            "readOnly": true
          },
          "score": {
            "type": "integer",
            "title": "Kount score",
            "minimum": 1,
            "maximum": 99
          },
          "decision": {
            "title": "Kount decision",
            "maxLength": 10,
            "type": "string",
            "enum": [
              "approve",
              "decline",
              "escalate",
              "review"
            ]
          },
          "reference": {
            "type": "string",
            "title": "Kount transaction reference ID"
          },
          "risk_rules_triggered": {
            "type": "array",
            "title": "Risk Rules Triggered",
            "description": "A list of fraud risk rules that were triggered for the transaction.",
            "items": {
              "$ref": "#/components/schemas/FraudRiskRule"
            }
          }
        }
      },
      "FraudRiskRule": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "The Kount rule number."
          },
          "message": {
            "type": "string",
            "title": "Description of why the rule was triggered"
          }
        }
      },
      "PaymentMethod": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "bacs",
              "amazon",
              "amazon_billing_agreement",
              "apple_pay",
              "apple_pay_merchant_token",
              "bank_account_info",
              "braintree_apple_pay",
              "check",
              "credit_card",
              "eft",
              "gateway_token",
              "google_pay",
              "google_pay_device_pan",
              "iban_bank_account",
              "money_order",
              "other",
              "paypal",
              "paypal_billing_agreement",
              "roku",
              "sepadirectdebit",
              "venmo",
              "wire_transfer",
              "braintree_v_zero",
              "boleto",
              "cash_app",
              "upi_autopay",
              "pix_automatico",
              "mercadopago",
              "klarna",
              "braintree_google_pay",
              "stripe_link"
            ]
          },
          "card_type": {
            "description": "Visa, MasterCard, American Express, Discover, JCB, etc.",
            "type": "string",
            "enum": [
              "American Express",
              "Dankort",
              "Diners Club",
              "Discover",
              "ELO",
              "Forbrugsforeningen",
              "Hipercard",
              "JCB",
              "Laser",
              "Maestro",
              "MasterCard",
              "Test Card",
              "Union Pay",
              "Unknown",
              "Visa",
              "Tarjeta Naranja"
            ]
          },
          "first_six": {
            "type": "string",
            "description": "Credit card number's first six digits.\n\nFor a tokenized wallet payment (`apple_pay`, `google_pay`, or\n`google_pay_device_pan`), this is the DPAN's (the wallet/device token's own\nnumber) first six digits, not the underlying card's (FPAN).\n",
            "maxLength": 6
          },
          "last_four": {
            "type": "string",
            "description": "Credit card number's last four digits. Will refer to bank account if payment\nmethod is ACH.\n\nFor a tokenized wallet payment (`apple_pay`, `google_pay`, or\n`google_pay_device_pan`), this is the DPAN's last four digits, not the\nunderlying card's (FPAN).\n",
            "maxLength": 4
          },
          "last_two": {
            "type": "string",
            "description": "The IBAN bank account's last two digits.",
            "maxLength": 2
          },
          "exp_month": {
            "type": "integer",
            "description": "Expiration month.",
            "maxLength": 2
          },
          "exp_year": {
            "type": "integer",
            "description": "Expiration year.",
            "maxLength": 4
          },
          "gateway_token": {
            "type": "string",
            "description": "A token used in place of a credit card in order to perform transactions.",
            "maxLength": 50
          },
          "cc_bin_country": {
            "type": "string",
            "description": "The 2-letter ISO 3166-1 alpha-2 country code associated with the card's issuer, if known."
          },
          "funding_source": {
            "description": "The funding source of the card, if known.",
            "type": "string",
            "enum": [
              "credit",
              "debit",
              "charge",
              "prepaid",
              "deferred_debit"
            ]
          },
          "gateway_code": {
            "type": "string",
            "description": "An identifier for a specific payment gateway.",
            "maxLength": 13
          },
          "gateway_attributes": {
            "type": "object",
            "description": "Gateway specific attributes associated with this PaymentMethod",
            "x-class-name": "GatewayAttributes",
            "properties": {
              "account_reference": {
                "type": "string",
                "description": "Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the external token was created. For Braintree the PayPal PayerID is populated in the response.",
                "maxLength": 264
              }
            }
          },
          "card_network_preference": {
            "description": "Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.",
            "type": "string",
            "enum": [
              "Bancontact",
              "CartesBancaires",
              "Dankort",
              "MasterCard",
              "Visa"
            ]
          },
          "billing_agreement_id": {
            "type": "string",
            "description": "Billing Agreement identifier. Only present for Amazon or Paypal payment methods."
          },
          "name_on_account": {
            "type": "string",
            "description": "The name associated with the bank account."
          },
          "account_type": {
            "description": "The bank account type. Only present for ACH payment methods.",
            "type": "string",
            "enum": [
              "checking",
              "savings"
            ]
          },
          "routing_number": {
            "type": "string",
            "description": "The bank account's routing number. Only present for ACH payment methods."
          },
          "routing_number_bank": {
            "type": "string",
            "description": "The bank name of this routing number."
          },
          "username": {
            "type": "string",
            "description": "Username of the associated payment method. Currently only associated with Venmo."
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "enum": [
              "bad_request",
              "immutable_subscription",
              "internal_server_error",
              "invalid_api_key",
              "invalid_api_version",
              "invalid_content_type",
              "invalid_permissions",
              "invalid_token",
              "missing_feature",
              "not_found",
              "rate_limited",
              "service_not_available",
              "simultaneous_request",
              "tax_service_error",
              "transaction",
              "unauthorized",
              "unavailable_in_api_version",
              "unknown_api_version",
              "validation"
            ]
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "params": {
            "type": "array",
            "title": "Parameter specific errors",
            "items": {
              "type": "object",
              "properties": {
                "param": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
````

# Sibling pages

* [List an account's credit payments](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/list_account_credit_payments.md)
* [Fetch a credit payment](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/get_credit_payment.md)