DeprecatedThe 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
- Create a source from a payment-gateway token; it becomes the customer's default.
- Update a source to change its card expiry date.
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/sdk/source | Create 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
404with the gateway's message. - A customer can store at most 200 sources.
