Add Card
POST/api/v2/consumer_portal/profile/cards
Add a new card by processing a 1 riyal verification transaction.
This endpoint:
- Fetches and validates the Moyasar payment transaction
- Extracts card details from the payment response
- Creates card token record with organization consumer ID
- Refunds the 1 riyal verification amount
- Returns the new card ID
Request
Responses
- 200
- 422
Successful Response
Validation Error