Source

đźš§

Deprecated

The Source endpoints are deprecated. Use Payment methods to add and manage a customer’s payment methods instead.

Overview

Sources are a customer's stored payment cards. These endpoints are deprecated — use Payment methods instead.


How It Works

  1. Create a source from a payment-gateway token; it becomes the customer's default.
  2. Update a source to change its card expiry date.

API Endpoints

MethodEndpointDescription
POST/api/v1/sdk/sourceCreate source
PUT/api/v1/sdk/source/{source_id}Update source


Important Behaviors

  • Both endpoints require an authenticated customer (Bearer JWT) and return the customer (with the new source under sources) plus a fresh JWT.
  • A declined card surfaces as 404 with the gateway's message.
  • A customer can store at most 200 sources.