Update source

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Deprecated

Use 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_exp is required, formatted MM/YY, and must be in the future — otherwise a 400 is returned.
Path Params
int32
required
Query Params
int32
required
Body Params
string
required
Headers
string
required
Defaults to Bearer <token>
string
Defaults to application/json
Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json