# Payment information

**POST** `https://api.heleket.com/v1/payment/info`

## Request

### Body parameters

| Name | Parameter type | Definition |
| --- | --- | --- |
| uuid (required) | uuid<br>required\_without: order\_id| Invoice uuid |
| order\_id (required) | string<br>min:1<br>max:128<br>alpha\_dash| Invoice order ID |

> To get the invoice status you need to pass one of the required parameters, if you pass both, the account will be identified by **order\_id**

### Request example

```
curl https://api.heleket.com/v1/payment/info \
-X POST \
-H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json' \
-d '{
    "uuid": "8b03432e-385b-4670-8d06-064591096795"
}'
```

## Response

### Response parameters

Object of payment - [see](https://doc.heleket.com/methods/payments/creating-invoice.md#response_parameters)

### Response example

```
{
	"state": 0,
	"result": {
		"uuid": "70b8db5c-b952-406d-af26-4e1c34c27f15",
		"order_id": "65bbe87b4098c17a31cff3e71e515243",
		"amount": "15.00",
		"payment_amount": "0.00",
		"payer_amount": "15.75",
		"discount_percent": -5,
		"discount": "-0.75",
		"payer_currency": "USDT",
		"currency": "USDT",
		"comments": null,
		"merchant_amount": "15.43500000",
		"network": "tron",
		"address": "TXhfYSWt2oKRrHAJVJeYRuit6ZzKuoEKXj",
		"from": null,
		"txid": null,
		"payment_status": "cancel",
		"url": "https://new-pay.heleket.com/pay/70b8db5c-b952-406d-af26-4e1c34c27f15",
		"expired_at": 1689099831,
		"status": "cancel",
		"is_final": true,
		"additional_data": null,
		"created_at": "2023-07-11T20:23:52+03:00",
		"updated_at": "2023-07-11T21:24:17+03:00"
	}
}
```

## Possible errors

### Validation errors

code : 422

example responses:

```
{
	"state": 1,
	"errors": {
		"uuid": ["validation.required_without"],
		"order_id": ["validation.required_without"]
	}
}
```
