# Invoices

## Parameters

### Invoice ID

Id is unique identifier that represents Invoice object for quering details of specific invoice

<figure><img src="https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FZ6sCL88Z8ZwUBWTFARPm%2Fimage.png?alt=media&#x26;token=7ea512ec-50e3-4035-ad13-c8a183100ac0" alt=""><figcaption></figcaption></figure>

### Parent ID

Parent id points to relative invoice that was parent in the chain of invoices. Sometimes we need to make several tranches, thats how we can bind several invoices into chain.

### Client ID

Client id is a identifier of your customer. Its represents a unique UUID v4 that pointers to specific user or customer to whom you direct your invoice. If you have account managment system, you may input user's id in your DB as client\_id to easy bind your user's payments separate from others.

### Total

Amount of funds needed to complete invoice. It's depends on choosen currency in invoice body while creating, to calculate current rates and amount that left to pay.

### Paid

Represents amount of funds to current invoice currency that was already submited as paid in one or several transactions.

### Type

Type of invoice. For now we support "payment" only.

### Status

Status of the invoice represents it's current stage. It may be ACTIVE / SUCCESS / CANCELED.

{% hint style="info" %}
You cannot cancel invoices with SUCCESS statuses.
{% endhint %}

### Created At

Represents timestamp when invoice was created.

### Updated At

Represents timestamp of new transactions appears in the Invoice or invoice status changes.

### Products

See products API section

### Payload

See payload section

## API Refference

{% openapi src="<https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8>" path="/invoice" method="get" %}
[SimplePay.yaml](https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media\&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8)
{% endopenapi %}

{% openapi src="<https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8>" path="/invoice" method="post" %}
[SimplePay.yaml](https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media\&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8)
{% endopenapi %}

{% openapi src="<https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8>" path="/invoice/{id}" method="get" %}
[SimplePay.yaml](https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media\&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8)
{% endopenapi %}

{% openapi src="<https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8>" path="/invoice/{id}" method="delete" %}
[SimplePay.yaml](https://3504918617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXps6Hpvtcnwm326Ywnfb%2Fuploads%2FfAXmAgXli38kPFOqQ60E%2FSimplePay.yaml?alt=media\&token=7bfaa000-cd9e-49a9-bac1-c1d28cf444f8)
{% endopenapi %}
