> For the complete documentation index, see [llms.txt](https://developer.providusbank.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.providusbank.com/xpress-wallet-api/merchant/card/card-setup.md).

# Card Setup

Configure card settings for a merchant.

* **Endpoint**: `PUT {{base-url}}/card/setup`
* **Headers**:

  ```json
  {
    "X-Access-Token": "{{access-token}}",
    "X-Refresh-Token": "{{refresh-token}}"
  }
  ```
* **Body**:

  ```json
  {
    "appId": "test",
    "appKey": "test",
    "prepaidCardPrefix": "5061000110195",
    "loadingAccountName": "Emmanuel Adeniyi",
    "loadingAccountNumber": "1029384857",
    "loadingAccountSortcode": "001256"
  }
  ```
* **Response**:
  * **200 OK**:

    ```json
    {
      "status": true,
      "message": "Card setup information successfully updated."
    }
    ```
* **Sample Code (Dart)**:

  ```dart
  var headers = {
    'X-Access-Token': '{{access-token}}',
    'X-Refresh-Token': '{{refresh-token}}'
  };
  var request = http.Request('PUT', Uri.parse('{{base-url}}/card/setup'));
  request.body = '''{
    "appId": "test",
    "appKey": "test",
    "prepaidCardPrefix": "5061000110195",
    "loadingAccountName": "Emmanuel Adeniyi",
    "loadingAccountNumber": "1029384857",
    "loadingAccountSortcode": "001256"
  }''';
  request.headers.addAll(headers);
  http.StreamedResponse response = await request.send();
  if (response.statusCode == 200) {
    print(await response.stream.bytesToString());
  } else {
    print(response.reasonPhrase);
  }
  ```
