Add new card

Post
/api/pay/v1/repeat-payments/card/270

This endpoint allows the user to change the card being charged for the scheduled payments.

Parameters

schedule_id (integer): id of the schedule of the repeat payment.

Request Body

  • payment_type (string, required): Repeat payment type. It is passed to identify the type of the specific repeat schedule. It must be either of the following values. This value cannot be updated.
    • fixed_schedule
    • variable_schedule
  • paymentToken (string, required): The tokenised card details.
Security
HTTP
Type bearer
Header parameters
Authorization
string
ExampleBearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZXJjaGFudF9pZCI6NDM5OCwic2VjcmV0X2tleSI6IjYzMTBlNDhiZGQwZTQzODE0NTlhNjJiNDZkMmM0ZmQ2ZThhYjY1YTJhNGQ1MjA1YzZjM2RkZWJmYmJhZWJiZjgiLCJleHAiOjE3MjA3MDcyNjZ9.91qa4veQ9xGVM-Jc_3_i_vaykEdYarRwUzb-37aLD0c
Body parameters
object
Example{ "payment_type": "fixed_schedule", "paymentToken": "{{paymentToken}}" }
Responses
200

Successful response