> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# POST /v0/reward-coupons-v2-disclosures

> Retrieve created event blobs for active contracts of the Daml template `Splice.Amulet:RewardCouponV2` by contract ID. Requests are limited to 100 contract IDs; larger requests return 400. Missing or archived contracts, and contracts of other templates, are omitted from the response. If no matching active contracts are found, the response contains an empty map.

Retrieve created event blobs for active contracts of the Daml template `Splice.Amulet:RewardCouponV2` by contract ID. Requests are limited to 100 contract IDs; larger requests return 400. Missing or archived contracts, and contracts of other templates, are omitted from the response. If no matching active contracts are found, the response contains an empty map.

OpenAPI

[Added 0.10.2](#history-added-0-10-2)

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl --request POST \
  --url 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures' \
  --header 'Content-Type: application/json' \
  --data '{
  "contract_ids": [
    "<string>"
  ]
}'
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json
import requests

url = "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures"
headers = {'Content-Type': 'application/json'}
payload = json.loads(r'''{
  "contract_ids": [
    "<string>"
  ]
}''')
response = requests.request(
    "POST", url, headers=headers, json=payload
)

print(response.text)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures', {
  method: 'POST',
  headers: {
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "contract_ids": [
    "<string>"
  ]
}),
});

console.log(await response.text());
```

```php PHP theme={"theme":{"light":"github-light","dark":"github-dark"}}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => 'https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS => <<<'JSON'
{
  "contract_ids": [
    "<string>"
  ]
}
JSON,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json"
    ],
]);

$response = curl_exec($curl);
echo $response;
```

```go Go theme={"theme":{"light":"github-light","dark":"github-dark"}}
package main

import (
  "bytes"
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("POST", "https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures", bytes.NewBufferString(`{
  "contract_ids": [
    "<string>"
  ]
}`))
  req.Header.Set("Content-Type", "application/json")
  response, _ := http.DefaultClient.Do(req)
  defer response.Body.Close()
  body, _ := io.ReadAll(response.Body)
  fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"github-dark"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures"))
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
{
  "contract_ids": [
    "<string>"
  ]
}
"""))
    .build();
var response = HttpClient.newHttpClient().send(
    request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"github-dark"}}
require 'net/http'
require 'uri'

uri = URI('https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/reward-coupons-v2-disclosures')
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = <<~JSON
{
  "contract_ids": [
    "<string>"
  ]
}
JSON
response = Net::HTTP.start(uri.hostname, uri.port) do |http|
  http.request(request)
end
puts response.body
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "created_event_blobs": {}
}
```

```json 400 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

```json 500 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": "<string>"
}
```

## Body

application/json

**contract\_ids** `object[]` *required*

OpenAPI type: `ContractId[]`.

Contract IDs of the `Splice.Amulet:RewardCouponV2` contracts to retrieve. At most 100 contract IDs may be supplied per request.

Maximum items: 100.

## Responses

### 200

ok

application/json

**created\_event\_blobs** `object` *required*

A map from contract ID to base64-encoded created event blob for the requested active `Splice.Amulet:RewardCouponV2` contracts. Missing or archived contracts, and contracts of other templates, are omitted. No contract payloads or other metadata are returned.

### 400

bad request

application/json

**error** `string` *required*

### 500

internal server error

application/json

**error** `string` *required*

## History

Added
`0.10.2`
