---
page_source: https://juspay.io/in/docs/payment-method-integrations/express-checkout-api/simpl-pay-after-delivery-multiclaim/capture--void
page_title: Capture & Void
---

## API Version: default


# Capture and Void API



Merchants can call the capture api after every successful delivery of shipment to claim the amount of that shipment from the total authorized amount.

Merchants need to pass the amount to be captured in the request and an idempotence key.

Idempotence key must be unique for every capture request initiated to Juspay.

Idempotence Key passed must be alphanumeric and can have these special characters. (-_(}+~{.))## Endpoints:
- Sandbox: https://sandbox.juspay.in

- Production: https://api.juspay.in

## Request Type: 
GET

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
- Value: MUQ2QUZEQzhFQTY0OUU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: required
## Sample Code Snippets:
### Code Snippets:

#### Shell Code Snippet:

```shell
curl --location 'https://sandbox.juspay.in/v2/txns/mozgYDycsEacBY7QXVy/capture' \ 
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic N0JBRDA4OUExxxxxxYxxxxxEyNDlCNjY3QTVCMUQzM0Q6' \ 
--data-urlencode 'amount=3.00' \
--data-urlencode 'idempotence_key=moz1702884759'
```

### Sample Request and Response:

#### Response:
```json
{
    "order_id": "o1702653969",
    "udf3": "",
    "status": "CHARGED",
    "amount": 3,
    "auth_type": "",
    "wallet": {
        "txn_flow_type": "REDIRECT_DEBIT"
    },
    "refunded": false,
    "udf8": "",
    "udf5": "",
    "payment_method": "SIMPL_SOD",
    "gateway_id": 41,
    "udf2": "",
    "payment_method_type": "WALLET",
    "txn_uuid": "mozgYDycsEacBY7QXVy",
    "udf4": "",
    "customer_id": "cth_rn94E73AizRcUCZf",
    "udf10": "",
    "bank_pg": null,
    "payment_links": {
        "iframe": "http://localhost:8080/merchant/ipay/ordeh_7490dc72389847f5b7ece8d048da05f1",
        "web": "http://localhost:8080/merchant/pay/ordeh_7490dc72389847f5b7ece8d048da05f1",
        "mobile": "http://localhost:8080/merchant/pay/ordeh_7490dc72389847f5b7ece8d048da05f1?mobile=true"
    },
    "effective_amount": 3,
    "udf1": "",
    "payment_gateway_response": {
        "auth_id_code": "NA",
        "created": "2023-12-15T15:26:21Z",
        "rrn": "",
        "epg_txn_id": "20d22dbc-93d2-49da-acb5-57b584316ad9",
        "txn_id": "azharamin-o1702653969-1",
        "resp_message": "CLAIMED",
        "resp_code": "CLAIMED"
    },
    "product_id": "",
    "amount_refunded": 0,
    "customer_email": "arnab.das@juspay.in",
    "currency": "INR",
    "customer_phone": "9608754682",
    "bank_error_message": "",
    "id": "ordeh_7490dc72389847f5b7ece8d048da05f1",
    "txn_id": "azharamin-o1702653969-1",
    "merchant_id": "azharamin",
    "maximum_eligible_refund_amount": 3,
    "udf7": "",
    "date_created": "2023-12-15T15:26:09Z",
    "bank_error_code": "",
    "offers": [],
    "udf9": "",
    "return_url": "https://sandbox.juspay.in",
    "status_id": 21,
    "udf6": ""
}
```

## API Responses:
