# Consume Payment Link

> Mark a payment link as consumed.

Source: https://help.boltapp.com/gaming/guide/bolt-api/consume-payment-link

**Method**: `PUT`

**Path**: `/v1/gaming/payment_links/consume/\{PAYMENT_LINK_ID}`

**Environments**

* Sandbox: [https://api-sandbox.boltapp.com](https://api-sandbox.boltapp.com)
* Production: [https://api.boltapp.com](https://api.boltapp.com)

## Header Parameters [#header-parameters]

| Parameter           | Type     | Required | Description                                                                                      |
| ------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------ |
| `X-API-KEY`         | `string` | ✅        | Your secret API key. Used to authenticate server-to-server requests.                             |
| `X-PUBLISHABLE-KEY` | `string` | ✅        | Your publishable API key. Identifies your merchant account in client-facing and server requests. |

## Path Parameters [#path-parameters]

| Parameter         | Type     | Required | Description                                                     |
| ----------------- | -------- | -------- | --------------------------------------------------------------- |
| `PAYMENT_LINK_ID` | `string` | ✅        | The payment link generated by the **Create Payment Link** call. |

```bash title="Request"
curl --location --request PUT 'https://api-sandbox.boltapp.com/v1/gaming/payment_links/consume/{PAYMENT_LINK_ID}' \
--header 'Content-Type: application/json' \
--header 'X-PUBLISHABLE-KEY: YOUR_PUBLISHABLE_KEY' \
--header 'X-API-KEY: YOUR_API_KEY'
```

```json title="Response"
{
  "id": "Qm87j28deGVcKWgdpQqfdu"
}
```
