v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Billing

List Payment Methods

List all payment methods present on the account

get/v1/billing/payment_methods

Query parameters

pageinteger

Page of results to include (default = 1)

per_pageinteger

How many results to include in each page (default = 10)

include_tokenboolean

Include the token used at the payment gateway in the response

activeboolean

Include only an active payment method

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "metadata": {
    "page": 1,
    "page_size": 10,
    "total": 150
  },
  "result": [
    {
      "id": 880088,
      "type": "Credit Card",
      "active": true,
      "description": "Citi Platinum Business",
      "address": {
        "id": 42,
        "first_name": "Rocket",
        "last_name": "Billing-Contact",
        "address_line_1": "17885 SE Federal Hwy",
        "address_line_2": "Suite 100",
        "company_name": "Rocket.net",
        "email": "billing@rocket.net",
        "city": "Jupiter",
        "state": "FL",
        "country": "US",
        "postal_code": "33469",
        "telephone": "877-374-0764"
      },
      "address_id": 888000888,
      "card_last_four": "1234",
      "card_type": "Visa",
      "expiry_date": "04/29",
      "last_updated": "2024-01-01T02:00:00Z",
      "gateway_token": "pm_1Q56yCIpHZfwip1PT4nnaIMi"
    }
  ]
}