Add Payment
Add a new payment method to a user by ID
Endpoint Details
POST
/users/payments/add
Headers
Content-Type
application/json
Authorization
Bearer <YOUR_ACCESS_TOKEN>
Body
userId
string
Identifier of the user to add payment method for
paymentMethodId
string
isDefault
boolean
Set as default payment method (default: false)
Response Details
statusCode
number
HTTP status code of the response
message
string
A brief message describing the result of the API call
metadata
Contains metadata about the API call
auth
Authentication object, only when refresh in true
data
User payment details
Metadata Object
Sample Request and Response
Last updated