Cards

Allows you to associate a credit card with a buyer

The last credit card associated with the buyer will always be considered the DEFAULT.

Card data must be encrypted and must follow the object structure below:

{
  "holder_name": "John Doe",
  "card_number": "4716588836362104",
  "expiration_month": "12",
  "expiration_year": "2025",
  "security_code": "123"
}
post/v1/cards

Request body

encrypted_cardstring required

Encrypted edubank card data

buyer_idstring required

Buyer's id

Example request

{
  "encrypted_card": "U2FsdGVkX19/KxeUpl25r00ejtEkXsMQhZt/CF/QdJFalEHzW5CoryrX9LzwhMPxLST/yH46PGSSn8uXoPZ8cM46Fj+udK9X/f+UghZzl/QAMKTKCAi785RlfDGWi+VhAXPZJhgka+hXmAoHUQRduE8g5jM75Smkf3xrq9miwQvRbOcC1AwTXL9nC7zhuoKEdmmoi1Vot+xipLEQFXB9Kg=="
}

Response

The object has been successfully created

seller_idstring required

Seller id

buyer_idstring required

Associated buyer id

card_idstring required

Card id

created_atstring required

Date/Time when the card was created

updated_atstring

Date/time the card was updated

card_brandstring required

Card brand

first4_digitsstring required

First 4 digits of the card

last4_digitsstring required

Last 4 digits of the card

expiration_monthstring required

Expiration Month of the card

expiration_yearstring required

Expiration Year of the card

holder_namestring required

Card holder name

is_activeboolean

Active card

is_validboolean

Valid card

Example response

{
  "created_at": "2026-09-01T23:59:59+00:00",
  "updated_at": "2026-10-01T23:59:59+00:00",
  "card_brand": "MasterCard",
  "first4_digits": "1234",
  "last4_digits": "6789",
  "expiration_month": "12",
  "expiration_year": "2030",
  "holder_name": "Julio Alvarenga"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.