GET
/
payment_methods
/
{payment_method}
curl --request GET \
  --url https://api.chargeapi.co/v1/payment_methods/{payment_method} \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": null,
  "object": null,
  "billing_details": {
    "address": {
      "city": null,
      "country": null,
      "line1": null,
      "line2": null,
      "postal_code": null,
      "state": null
    },
    "email": null,
    "name": null,
    "phone": null
  },
  "created": null,
  "details": {
    "brand": null,
    "last4": null,
    "exp_month": null,
    "exp_year": null
  },
  "driver": null,
  "fleet": null,
  "type": null
}

Path Parameters

payment_method
string
required

ID of the payment method to retrieve.

Query Parameters

expand
string[]

Specifies related objects to expand (for example, expand[]=driver).

Body

application/json · object

Response

200
application/json

Returns the Payment Method object for a valid identifier. Raises an error otherwise.