Users

Start saving a card

A hosted page that saves a card for charges made without the payer present: auto-recharge and monthly statements. Send the caller to checkout_url; nothing is charged. A card saved this way replaces the one already saved.

post/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 page to send the caller to.

idstring required

The setup page's ID at the payment provider.

checkout_urlstring uri required

The hosted page that takes the card.

expires_atstring date-time required

When an unused page lapses.

Example response

{
  "id": "cs_test_a1b2c3",
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_a1b2c3"
}

Changes

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