PaymentMethods - Update
POST {{baseUrl}}/payment_methods/:id
To update an existng a payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards, to prevent discontinuity in recurring payments
Request Body
{"card"=>{"card_number"=>"labore dolore est cillum labor", "card_exp_month"=>"10", "card_exp_year"=>"25", "card_holder_name"=>"John Doe"}, "billing"=>{"line1"=>"Juspay Router", "line2"=>"Koramangala", "line3"=>"Stallion", "city"=>"Bangalore", "state"=>"Karnataka", "zip"=>"560095", "country"=>"IN"}, "metadata"=>{"city"=>"NY", "unit"=>"245"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |