Create a new card
Requests creation of a new card for a customer.
To create a card, you must supply a valid deposit account number along with other card-specific information. The initial status of a newly submitted card is unactivated
. When the card is successfully created the order status is OrderPending
.
Request attributes
accountNumber string Cardholder deposit account number Required |
|||||||||||||
customerId string Unique CR identifier for the account owner in GUID format. Required |
|||||||||||||
configurationId string Unique ID for the card configuration profile the card is based on. You get this ID from CR. This ID is in GUID format. Required |
|||||||||||||
firstName string Cardholder first name Required |
|||||||||||||
middleName string Cardholder middle name Optional |
|||||||||||||
lastName string Cardholder last name Required |
|||||||||||||
suffix string Cardholder name suffix Optional |
|||||||||||||
phone object Details of the cardholder phone contact information:
|
|||||||||||||
emailAddress string Cardholder email address Optional |
|||||||||||||
shippingAddress object Address to which a physical card is shipped:
|
|||||||||||||
billingAddress object Address to send credit card bills:
|
|||||||||||||
nameOnCard string Cardholder name as it appears on the card Required |
|||||||||||||
companyNameOnCard string If the card is connected to a business account, the company name Optional |
|||||||||||||
shippingType string How the card is shipped: Normal or Expedited Required |
|||||||||||||
clientIdentifier string Use this attribute to add your own unique identifying string to a payment call or COS record. This attribute is useful for idempotency purposes. Optional |
Sample request
curl --location
-X POST
-H 'Content-Type: application/json' \
-H 'Authorization: {Bearer token}' \
-d '{
"accountNumber": "2608927303",
"customerId": "2b15a695-13dc-4b10-b4e5-af5b0138873c",
"configurationId": "a6b5a94c-f8f9-462b-8ce8-afa400f5b640",
"firstName": "John",
"middleName": "Jacob",
"lastName": "Smith",
"suffix": "Jr",
"phone": {
"phoneType": "Home",
"phoneNumber": "2015551234"
"emailAddress": "john@abccompany.com"
"shippingAddress": {
"street1": "123 Maple Lane",
"street2": "Apt. 1",
"city": "New York",
"state": "NY",
"postalCode": "10025",
"countryCode": "US"
},
"billingAddress": {
"street1": "123 Maple Lane",
"street2": "Apt. 1",
"city": "New York",
"state": "NY",
"postalCode": "10025",
"countryCode": "US"
},
"nameOnCard": "John J. Smith, Jr.",
"shippingType": "Normal",
} 'https://sandbox.crbcos.com/cardmanagement/v1/cards'
Response attributes
id string GUID format card ID in the CR system, which is the |
|||||||||||||
partnerId string Your ID in the CR system. This ID is in GUID format. |
|||||||||||||
productId string Product ID of the cardholder deposit account. This ID is in the GUID format. See also here. |
|||||||||||||
processorCardId string Card processor's unique identifier |
|||||||||||||
accountNumber string Deposit account number associated with the card |
|||||||||||||
status string Card activation status:
|
|||||||||||||
statusReasonCode string Reason for the card status:
|
|||||||||||||
processorCardStatus string Status of the card in the processor's system |
|||||||||||||
firstName string Cardholder first name |
|||||||||||||
middleName string Cardholder middle name |
|||||||||||||
lastName string Cardholder last name |
|||||||||||||
suffix string Cardholder name suffix |
|||||||||||||
birthDate string Cardholder birthdate |
|||||||||||||
shippingAddress object Address where a physical card is sent child attributes
|
|||||||||||||
billingAddress object Address where the credit card bills are sent child attributes
|
|||||||||||||
phone object Information about the cardholder's phone (type and number) child attributes
|
|||||||||||||
emailAddress string Cardholder email address |
|||||||||||||
nameOnCard string Full cardholder name as written on card |
|||||||||||||
companyNameOnCard string If defined, the name of the cardholder company |
|||||||||||||
panLastFour string Last 4 digits of the PAN, the primary account number, which appears on the physical card |
|||||||||||||
previousCardId string ID of the previous card if the current card is a replacement |
|||||||||||||
isPinSet boolean True if the PIN number is set for the card, otherwise false. |
|||||||||||||
expirationDate string Card expiration date |
|||||||||||||
adminBlocked boolean True if the card has been blocked by the administrator, otherwise false. This block cannot be removed. |
|||||||||||||
fraudSuspect boolean True, if the card was blocked by the processor due to potential fraud, otherwise false. |
|||||||||||||
configurationId string Unique ID for the card configuration profile the card is based on. You get this ID from CR. This ID is in GUID format. |
|||||||||||||
category string Type of card:
|
|||||||||||||
paymentInstrument string Card payment instrument type:
|
|||||||||||||
processor string The name of the card processor |
|||||||||||||
shippingType string How the card is shipped:
|
|||||||||||||
orderStatus string Status of the card order:
|
|||||||||||||
replacementStatus string Indicates whether the card is a replacement card and the status of the replacement:
|
|||||||||||||
customerId string Unique CR identifier for the account owner in GUID format. |
|||||||||||||
clientIdentifier string Use this attribute to add your own unique identifying string to a payment call or COS record. This attribute is useful for idempotency purposes. |
|||||||||||||
processorCustomerId string Processor's Unique ID for the cardholder |
|||||||||||||
createdAt string Date and time when the card was created. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm] |
|||||||||||||
suspendedAt string Date and time when the card was suspended. If not suspended, null. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm] |
|||||||||||||
closedAt string Date and time the card was closed. If not closed, null. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm] |
|||||||||||||
initialActivation string Date the card was activated. The time is set to midnight at the start of that day. |
|||||||||||||
activatedAt string Exact date and time the card was activated. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm] |
|||||||||||||
openedAt string Null |
|||||||||||||
lastModifiedAt string Date and time the card record was last modified. Examples include change of name on the card and change in card status. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm] |
Sample response
{
"id": "e03cee19-fb0d-404a-ae60-aff700d20d37",
"partnerId": "cd9c12f4-7691-424a-b38b-af5b0134c611",
"productId": "83bed086-8182-4151-a1e3-af5b01362783",
"accountNumber": "2608927303",
"status": "Unactivated",
"statusReasonCode": "NotSet",
"processorCardStatus": "I",
"firstName": "John",
"middleName": "Jacob",
"lastName": "Smith",
"suffix": "Jr",
"shippingAddress": {
"street1": "123 Maple Lane",
"street2": "Apt. 1",
"city": "New York",
"state": "NY",
"postalCode": "10025",
"countryCode": "US"
},
"billingAddress": {
"street1": "123 Maple Lane",
"street2": "Apt. 1",
"city": "New York",
"state": "NY",
"postalCode": "10025",
"countryCode": "US"
},
"phone": {
"phoneType": "Home",
"phoneNumber": "2015551234"
},
"emailAddress": "john@abccompany.com",
"nameOnCard": "John J. Smith, Jr.",
"isPinSet": false,
"adminBlocked": false,
"fraudSuspect": false,
"configurationId": "a6b5a94c-f8f9-462b-8ce8-afa400f5b640",
"category": "Credit",
"paymentInstrument": "VirtualPan",
"processor": "i2c",
"shippingType": "Normal",
"orderStatus": "OrderPending",
"replacementStatus": "NotApplicable",
"customerId": "2b15a695-13dc-4b10-b4e5-af5b0138873c",
"createdAt": "2023-05-03T08:44:46.568048-04:00",
"lastModifiedAt": "2023-05-03T08:44:46.568048-04:00"
}