# Transactions

## Transactions

<mark style="color:blue;">`GET`</mark> `https://api.suble.io/projects/:projectId/transactions`

Retrieve list of all transactions **sorted by newest**

#### Path Parameters

| Name      | Type   | Description               |
| --------- | ------ | ------------------------- |
| projectId | string | Unique id for the project |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Authorization | string | User token or project key |

{% tabs %}
{% tab title="200 " %}

```
{
    "_id: ObjectId,
    "project: ObjectId,
    "user: ObjectId,
    "userName: String, // Full name of user that created the transaction
    "status: String, // Enum ("pending" / "error" / "success")
    "orderid: String,
    "amount: Number,
    "date: Number, // Unix timestamp
    "identifier: String,
    "url: String
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "error": String
}
```

{% endtab %}
{% endtabs %}
