Skip to main content
The cards endpoints maintain the set of cards enrolled in OpenCard per customer organisation. Register cards before sending transaction states — {card_id} in the transaction path is your card id from the create payload. Base path:

Endpoints


Create card

payment_product must match a product the customer has signed a TPA for. Cards on a product without a signed TPA are stored but their transactions are not delivered to the EMS.
Responses: Create is idempotent on id. Re-posting the same card returns the existing record.

Update card

Same body shape as create (except id comes from the path). Supports moving a card between identities/companies when holder or employer changes. Response 200 with updated: true.

Get card

Response 200:

List cards

Query parameters: last_four, buyer_party, seller_party, bin_number, id, active, per_page (1–100, default 15), page. Response 200:

Delete card

Soft-deletes the card and marks it inactive. Response 204 with empty body.

Why the registry matters

OpenCard matches every transaction state to a registered card, its payment_product, and identity. Without an up-to-date registry:
  • Transaction posts return card_not_found
  • EMS apps never see data for unknown cards
  • Cards with the wrong payment_product are linked to the wrong TPA — or to none
Keep cards in sync when issued, replaced, or closed at your end.