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

# Close Product

> Endpoint used to change the product status to closed

```bash Request Example theme={null}
curl --request GET 'https://api.mayar.id/hl/v1/product/close/a02a76e1-25b4-49dd-9d1f-e84dd34ecbb4' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here'
```

```json Response example if success theme={null}
{
    "statusCode": 200,
    "messages": "success"
}
```

```json Response example if failed theme={null}
{
    "statusCode": 200,
    "messages": "failed"
}
```

Endpoint:

```Production Production theme={null}
https://api.mayar.id/hl/v1/product/close/{id}
```

```Sandbox Sandbox theme={null}
https://api.mayar.io/hl/v1/product/close/{id}
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Path Parameters

**id** `string \<uuid\>` *required*

Unique product ID.

## Response

Successful Response

**statusCode** `integer`

Status code form API.

**messages** `string`

Status message that describes the status code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.