Update source

This endpoint is deprecated and will be removed in a future version. Use the Update payment method endpoint instead.

Update the expiry date of an existing card source for the authenticated customer. Returns the customer plus a fresh JWT.

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

The unique identifier of the payment method owned by the customer.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
string
required

The card expiration date, in MM/YY format (ex: 04/26)

Responses

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