Ponów wystawienie faktury
POST
/api/v1/payments/{id}/invoice/retryPonawia wystawienie faktury dla opłaconej płatności na podstawie zapisanych danych.
Odpowiedź 200 może zawierać accepted albo failed. Odpowiedź 202 oznacza sending. Sprawdź status w odpowiedzi przed kolejną próbą.
Wymagany zakres invoices:retry
Parametry
| Nazwa | Miejsce | Typ | Wymagany | Opis |
|---|---|---|---|---|
id | path | string | Tak | min. znaków 1 · maks. znaków 120 |
Treść żądania
Schemat object
JSON Schema
{
"type": "object",
"additionalProperties": false
}Odpowiedzi
200 Faktura przyjęta lub próba zakończona niepowodzeniem.application/jsonSchemat InvoiceRetryResult
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
status | "accepted" | "sending" | "failed" | Tak | "accepted" | "sending" | "failed" |
invoiceNumber | string | null | Tak | — |
ksefNumber | string | null | Tak | — |
downloadPath | string | null | Tak | — |
JSON Schema
{
"$ref": "#/components/schemas/InvoiceRetryResult"
}202 Wystawianie faktury jest w toku.application/jsonSchemat InvoiceRetryResult
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
status | "accepted" | "sending" | "failed" | Tak | "accepted" | "sending" | "failed" |
invoiceNumber | string | null | Tak | — |
ksefNumber | string | null | Tak | — |
downloadPath | string | null | Tak | — |
JSON Schema
{
"$ref": "#/components/schemas/InvoiceRetryResult"
}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"
}
}
}
}404 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"
}
}
}
}409 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"
}
}
}
}503 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.Powiązane schematy
InvoiceRetryResult
{
"type": "object",
"required": [
"status",
"invoiceNumber",
"ksefNumber",
"downloadPath"
],
"properties": {
"status": {
"type": "string",
"enum": [
"accepted",
"sending",
"failed"
]
},
"invoiceNumber": {
"type": [
"string",
"null"
]
},
"ksefNumber": {
"type": [
"string",
"null"
]
},
"downloadPath": {
"type": [
"string",
"null"
]
}
}
}