v1

latestOpenAPI 3.0.32026-07-26208618579.9 KB
Create card

Create a debit VISA VIRTUAL branded card

This operation will create a debit card media connected to given customer. An account id needs to be provided as well so we know to which account the card should be connected to.

Note: You cannot use this endpoint to order a physical plastic card. The virtual card does not have a PIN and hence, it might not work at ATMs.

post/v4/DEBIT_VISA_VIRTUAL/customer/{customerId}/account/{accountId}

Path parameters

customerIdstring biginteger required

The customer id of which customer you want to create the card on

accountIdstring biginteger required

The account id that the card should be connected to

Query parameters

auditUserstring required

The audit user to log the request

Request body

segment'SEGMENT_A' | 'SEGMENT_B' | 'SEGMENT_C' | 'SEGMENT_D' | 'SEGMENT_E' | 'SEGMENT_F'

Field enables to group an entity into a segment. This field will be exported but no logic is applied to this in Enfuce API

pinStatus'D' | 'W' | 'S'

This flag will indicate current status for PIN generation. If not specified system will automatically assign D as default and make sure a PIN is calculated during next embossing process. If set to W, then card will be excluded from embossing process until a PIN has been set and status has been updated to S. It is also possible to revert to D, in order for system to generate PIN. Note that system will update to status S automatically when a PIN is set successfully.

New card

In order for a new card to not get a system generated PIN then pinStatus flag must be set to W when created, this will then halt the embossing process for given card until a PIN has been set.

Reissue card

When reissuing a card it is possible to set pinStatus to W in order to hold embossing process for given card until a PIN has been set. Update pinStatus is done on same card id that is reissued.

Replace card

When replacing a card it is possible to set pinStatus to W in order to hold embossing process for given card until a PIN has been set. Update pinStatus is done on new card id that is returned when replacing.

  • D - default and a random PIN will be generated
  • W - waiting for PIN to be manually set
  • S - PIN has been set successfully
digitalLayoutCodestring

Id used for digital wallet artwork and other related assets. Use of this need to be agreed with Enfuce separately

encryptedDatastring

JWE encrypted card number, see details above

productCodestring

This field is used when the institution has multiple card products setup. The productCode is used to determine the specific card product. Use of this field as well as the values of the field, is dependent on institution setup and should be aligned with Enfuce prior to use.

Example request

{
  "expiration": {
    "year": 2019,
    "month": 1
  },
  "digitalLayoutCode": "abc123abc",
  "scheduledClosing": {
    "time": "2099-12-31T03:00:00.000Z"
  },
  "embossing": {
    "companyName": "Enfuce Financial Services",
    "externalLayoutCode": "BlueCard",
    "firstName": "Monica",
    "lastName": "Liikamaa",
    "additionalEmbossingName": "Card User Name",
    "manufacturer": "FACTORY_X",
    "physical": true
  },
  "productCode": "MC_CARD_2, VISA_CARD1, VISA_VIRTUAL_3, MC_VIRTUAL_2, VISA_CARD"
}

Response

Successful creation of the product

descriptionstring

Short description of the result of the action

idstring

Will contain the ID of the resource that has been created or updated