Credit Card Generation
The /credit endpoint generates fictitious credit card numbers for testing purposes. All numbers pass the Luhn checksum algorithm and use correct IIN prefixes per brand.
curl -X GET \ "https://api.moxon.dev/v4/credit"Send the request to see the response here.
brandstringoptionalDefault:
random.Card brand:
visa,mastercard,amex,discover- random
- visa
- mastercard
- amex
- discover
countnumberoptionalDefault:
1.Number of cards to generate (1–10)
format"masked" | "full"optionalDefault:
masked.Output format:
full(all digits) ormasked(middle digits hidden with*)
The response contains a cards array. Each card object has the following fields:
numberstringCard number, masked or full depending on
formatformattedstringHuman-readable card number with spaces (e.g.
4532 **** **** 1234)brandstringCard brand (
visa,mastercard,amex,discover)expirystringExpiration date in
MM/YYformatcvvstringSecurity code (3 digits, 4 for Amex)
luhnbooleanAlways
true— the number passes the Luhn checksum
- 400
Unknown brand "{brand}". Valid options: visa, mastercard, amex, discoverThebrandvalue is not recognized - 400
Count must be an integer between 1 and 10Thecountparameter is out of the allowed range - 400
Format must be "full" or "masked"Theformatvalue is not valid
Last updated on May 12, 2026