Pobierz historię płatności
GET
/api/v1/paymentsHistoria opłaconych i zwróconych płatności wraz ze ścieżkami dokumentów.
Wymagany zakres payments:read
Parametry
| Nazwa | Miejsce | Typ | Wymagany | Opis |
|---|---|---|---|---|
query | query | string | Nie | maks. znaków 120 |
dateFrom | query | string | Nie | format date |
dateTo | query | string | Nie | format date |
limit | query | integer | Nie | minimum 1 · maksimum 50 · domyślnie 20 |
cursor | query | string | Nie | maks. znaków 600 |
Odpowiedzi
200 Żądanie zakończone pomyślnie.application/jsonSchemat PaymentHistory
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
total | integer | Nie | — |
totalSpent | number | Nie | — |
paidCount | integer | Nie | — |
pendingCount | integer | Nie | — |
nextCursor | string | null | Nie | — |
items | object[] | Nie | — |
JSON Schema
{
"$ref": "#/components/schemas/PaymentHistory"
}403 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Brak prawidłowego klucza API.503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.Powiązane schematy
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"
}
}
}
}
}
}
}