put deprecated
https://www.pelcro.com/api/v1/sdk/source/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
DeprecatedUse the Update payment method endpoint instead. The Source endpoints will be removed in a future version.
Overview
Update the expiry date of an existing card source belonging to the authenticated customer. On success the response is the customer plus a fresh JWT.
Example:
curl --request PUT \
--url 'https://www.pelcro.com/api/v1/sdk/source/1018?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Content-Type: application/json' \
--data '{ "cc_exp": "12/30" }'Conditional Requirements
cc_expis required, formattedMM/YY, and must be in the future — otherwise a400is returned.
