Users

Get the saved card

The card auto-recharge and monthly statements are charged to, as the payment provider reports it. Only the brand, last four digits, expiry and issuing country are kept here. A card issued in Brazil is charged in Brazilian reais, every other card in US dollars.

get/v1/users/me/payment-method

Request

  • Base URL: https://api.naturali.ai
  • URL: https://api.naturali.ai/v1/users/me/payment-method
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)

Response

The saved card.

brandstring required
last4string required
exp_monthinteger required
exp_yearinteger required
currency'usd' | 'brl' required

What the card is charged in, from its issuing country.

exchange_ratenumber nullable required

Units of currency per US dollar for a charge made now: 1 for usd, the Banco Central's latest closing PTAX selling rate for brl. null while that rate cannot be read.

Example response

{
  "brand": "visa",
  "last4": "4242",
  "exp_month": 12,
  "exp_year": 2030,
  "currency": "usd",
  "exchange_rate": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.