v1

latestOpenAPI 3.0.32026-07-26208618579.9 KB
Create an account

Create account

This operation will create an account

post/v3/customer/{customerId}

Path parameters

customerIdstring required

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

Query parameters

auditUserstring required

The audit user to log the request

Request body

cardTemplatestring required

Card template of the new card to be created

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

Example request

{
  "embossing": {
    "companyName": "Enfuce Financial Services",
    "externalLayoutCode": "BlueCard",
    "firstName": "Monica",
    "lastName": "Liikamaa",
    "additionalEmbossingName": "Card User Name",
    "manufacturer": "FACTORY_X",
    "physical": true
  },
  "expiration": {
    "year": 2019,
    "month": 1
  },
  "pinAddress": {
    "address1": "Kings street 12",
    "city": "Mariehamn",
    "country": "FIN",
    "region": "Åland Islands"
  },
  "cardAddress": {
    "address1": "Kings street 12",
    "city": "Mariehamn",
    "country": "FIN",
    "region": "Åland Islands"
  }
}

Response

Successful creation of the account

descriptionstring

Short description of the result of the action

idstring

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