api/v1/customer/cards/add-card

POST

/api/v1/customer/cards/add-card

This API method will pair a LNS card to the customer's account. This will ONLY work for cards which have not been assigned to members, and the card also must have the appropriate structure.

Sample Request body

Parameter

Value / Type

Required

card_number

STRING

true

Sample Response

{
  "status": true,
  "message": "Card was successfully paired with your account"
}
{
  "status": false,
  "message": "Card number was not valid. It must be formatted as such LNS XXXXX XXXXX"
}
{
  "status": false,
  "message": "This card number does not exist for an active store in the system"
}
{
  "status": false,
  "message": "Card already exists in system on another account"
}
{
  "status": false,
  "errorCode": "VALIDATION_EXCEPTION",
  "messages": {
    "card_number": [
      "The card number must be 14 characters."
    ]
  }
}
{
  "status": false,
  "message": "There was an issue pairing the card to your account"
}
{
  "status": false,
  "message": "This card already exists on your account"
}