π³Create card
This endpoint allows you to create a new card (virtual or physical) for a customer registered in the KrezyPay system. It ensures the validation of the information provided and checks the uniqueness of the card to avoid duplicates.
Create a new card
POST https://api.krezypay.com/v1/sandbox/card/create_card
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
customer_id
string
The customer_id of the customer provided during registration
card_type
string
The type of card "Virtual" or "Physical"
card_brand
string
The brand of card "Visa" or "Mastercard"
Response
{
"status": "success",
"card_id": "6711305d3cc1c6711305d3cc1e",
"message": "Card created successfully"
}
{
"error": "Invalid request"
}See Examples Below
Last updated