> For the complete documentation index, see [llms.txt](https://customer-api-docs.ibanera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://customer-api-docs.ibanera.com/api-endpoints/cards/activation-deactivation.md).

# Activation / Deactivation

## Activate Card

Activate a card to enable it for transactions. This endpoint can be called at any time but for physical cards is intended to be called after receipt of the physical card. A card can subsequently be deactivated, but must be active to participate in transactions.

* **Endpoint:** `/api/v1/customer/cards/activate`
* **Method:** POST

#### Request Body Example

```json
{
    "cardsId": 1877,
    "pin": "1234"
}
```

#### Success Response Example

```json
{
    "id": 1877,
    "details": {
        "customersId": 14257,
        "customerReference": "112233",
        "card": {
            "id": 1877,
            "cardNumber": "XXXX XXXX XXXX 3632",
            "currency": "USD",
            "totalBalance": 0.00,
            "availableBalance": 0.00,
            "pendingBalance": 0.00,
            "bSuppressed": false,
            "bDeactivated": false
        }
    },
    "status": "1",
    "errors": []
}
```

***

## Deactivate Card

Deactivate a card that was previously activated. A deactivated card can no longer participate in transactions. Deactivating a card will void pending transactions against it. The card may subsequently be activated.

* **Endpoint:** `/api/v1/customer/cards/deactivate`
* **Method:** POST

#### Request Body Example

```json
{
  "cardsId": 1877
}
```

#### Success Response Example

```json
{
    "id": 1877,
    "details": {
        "customersId": 14257,
        "customerReference": "112233",
        "card": {
            "id": 1877,
            "cardNumber": "XXXX XXXX XXXX 3632",
            "currency": "USD",
            "totalBalance": 9.00,
            "availableBalance": 9.00,
            "pendingBalance": 0.00,
            "bSuppressed": false,
            "bDeactivated": true
        }
    },
    "status": "1",
    "errors": []
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://customer-api-docs.ibanera.com/api-endpoints/cards/activation-deactivation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
