List your payments
GET
/api/v1/paymentsHistory of paid and refunded payments, including paths to documents.
Required scope payments:read
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
query | query | string | No | max. characters 120 |
dateFrom | query | string | No | format date |
dateTo | query | string | No | format date |
limit | query | integer | No | minimum 1 · maximum 50 · default 20 |
cursor | query | string | No | max. characters 600 |
Responses
200 Request completed successfully.application/jsonSchema PaymentHistory
| Name | Type | Required | Description |
|---|---|---|---|
total | integer | No | — |
totalSpent | number | No | — |
paidCount | integer | No | — |
pendingCount | integer | No | — |
nextCursor | string | null | No | — |
items | object[] | No | — |
JSON Schema
{
"$ref": "#/components/schemas/PaymentHistory"
}403 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}422 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}429 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Other API errors Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 A valid API key is required.503 Access is closed or the service is temporarily unavailable. Check code.Related schemas
PaymentHistory
{
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"totalSpent": {
"type": "number"
},
"paidCount": {
"type": "integer"
},
"pendingCount": {
"type": "integer"
},
"nextCursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"serviceName": {
"type": "string"
},
"provider": {
"type": "string"
},
"currency": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"paid",
"partially_refunded",
"refunded"
]
},
"amount": {
"type": "integer"
},
"amountCents": {
"type": "integer"
},
"grossAmountCents": {
"type": "integer"
},
"refundedAmountCents": {
"type": "integer"
},
"netAmountCents": {
"type": "integer"
},
"invoicePath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"invoiceStatus": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"invoiceNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"ksefNumber": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"invoiceIssuedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"paidAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"refundedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"listing": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"make": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
},
{
"type": "null"
}
]
},
"corrections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"invoiceNumber": {
"type": "string"
},
"status": {
"type": "string"
},
"amountCents": {
"type": "integer"
},
"issuedAt": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"downloadPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
},
"refunds": {
"type": "array",
"items": {
"type": "object"
}
},
"disputes": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
}