{card_id} in the transaction path is your card id from the create payload.
Base path:
Endpoints
Create card
Responses:
Create is idempotent on
id. Re-posting the same card returns the existing record.
Update card
id comes from the path). Supports moving a card between identities/companies when holder or employer changes.
Response 200 with updated: true.
Get card
200:
List cards
last_four, buyer_party, seller_party, bin_number, id, active, per_page (1–100, default 15), page.
Response 200:
Delete card
204 with empty body.
Why the registry matters
OpenCard matches every transaction state to a registered card, itspayment_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_productare linked to the wrong TPA — or to none

