The 2020 Hackathon has now been officially launched !

Register here, and find more information about the 3 important themes, because this year we are #hackingforgood !


question

anaslaaouini avatar image
anaslaaouini asked ·

I am not able to createa New ATM Card

This morning, I wasn't able to create a New ATM Card (Retail Banking USA ---->Retail Core US Cards (v1)----> create a New ATM Card )
with the
following body parameters:
body={"customerId": "79cc30c7-3507-3fc2-9d20-fe7f7bcfd91b","accountId": "8345099256A11","atmAccountType": "A11"}.
which corresponds to the following format:
{
"customerId": "string. Tokenized Customer Id",
"accountId": "string. Tokenized Deposit Account Number and Account Type",
"atmAccountType": "string. ATM Account Type of the Card"
}
when I tried to do it, I got the following response:
Could not access protected resource. Server returned http code: 400

======================================================================
Actually, I created a new checking account (Retail Banking USA ---->Retail Core US Accounts (v1)----> create a New checking account )
with the followwing body parameters:
body={"customerId": "7ef605fc-8dba-3425-9696-5fbd4c8fbe1f","depositProductCode": "105","nickname": "brand new saving account"}

the checking account was creared with the following parameters:
#content:{"accountId":"36fcfceb-5e76-317c-8b49-1d0c0cf0fc61","accountNumber":"8345099256"}
# accountId = 36fcfceb-5e76-317c-8b49-1d0c0cf0fc61
# accountNumber = 8345099256
__________________________________________________________________________________________________________________________
When I executed the following request: Retail Banking USA ---->Retail Core US Accounts (v1), I got as result:
List of ATM Account Types;
I got the following response:
[{"description":"ATM Card 16","atmAccountType":"A11"},{"description":"Instant Issue ATM Cards","atmAccountType":"A22"}]
__________________________________________________________________________________________________________________________
I also created a new customer/member (Retail Banking USA ---->Retail Core US Customers (v1)---->create a new customer/member)
with the followwing body parameters:
body={"lastName": "Smith","firstName": "John","middleName": "Van","gender": "Male","taxId": "123456789","taxIdType": "SSN","customerCategoryId": "210","birthDate": "1984-01-15","addresses": [{"addressLine1": "123 Main St.","addressLine2": "","city": "Austin","state": "TX","zipCode": "78721","addressTypeId": "1"}],"phones": [{"number": "4071234567","type": "primary"}],"emails": [{"email": "johndoe@test.com","type": "primary"}],"identifications": [{"idType": "Driver's License","idValue": "F253-876-23-1782791","issueDate": "2017-01-05","expiryDate": "2017-01-05","issueState": "FL"}]}

the customer/member was created with the following parameters:
{"customerId":"79cc30c7-3507-3fc2-9d20-fe7f7bcfd91b"}

API - Consumer Banking
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anais avatar image
Anais answered ·

hi,
After a quick look it seems the customerId you are using to create the checking account may be wrong. You use 7ef605fc-8dba-3425-9696-5fbd4c8fbe1f but the customer you created has the id 79cc30c7-3507-3fc2-9d20-fe7f7bcfd91b.

10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.