---
title: "Add Data in Locker"
method: POST
path: "/data/add"
tags: ["Cards", "Data"]
---

# Add Data in Locker

`POST /data/add`

Add sensitive data in the locker

## Headers

- `x-tenant-id` string

## Request body

- union
  - StoreDataReq
    - `merchant_id` string
    - `merchant_customer_id` string
    - `requester_card_reference` string
    - `card` Card
      - `card_number` string, required — The card number
      - `card_exp_month` string, required — The card's expiry month
      - `card_exp_year` string, required — The card's expiry year
      - `card_holder_name` string, required — The card holder's name
      - `card_cvc` string, required — The CVC number for the card
      - `card_issuer` string, nullable — The name of the issuer of card
      - `card_network` 'Visa' | 'Mastercard' | 'AmericanExpress' | 'JCB' | 'DinersClub' | 'Discover' | 'CartesBancaires' | 'UnionPay' | 'Interac' | 'RuPay' | 'Maestro' | 'Star' | 'Pulse' | 'Accel' | 'Nyce' | 'Prop' | 'PrivateLabel' | 'Dinacard' — Indicates the card network.
      - `card_type` string, nullable
      - `card_issuing_country` string, nullable
      - `card_issuing_country_code` string, nullable
      - `bank_code` string, nullable
      - `nick_name` string, nullable — The card holder's nick name
    - `enc_card_data` string
  - JWEReq
    - `header` string
    - `iv` string
    - `encrypted_payload` string
    - `tag` string
    - `encrypted_key` string

## Response `200`

Store Data Response

- union
  - StoreDataRes — Response received if the data was stored successfully
    - `status` 'Ok'
    - `payload` object
      - `card_reference` string
  - JWERes — JWE encrypted response equivalent
    - `header` string
    - `iv` string
    - `encrypted_payload` string
    - `tag` string
    - `encrypted_key` string

---

[API](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0.md) · [All operations](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperswitch/dynamic-routing-openapi-3-0/revisions/8fbf69ab2597/schema)
