Referencja API

Dostęp produkcyjny zamknięty · 37 operacji

Ponów wystawienie faktury

POST/api/v1/payments/{id}/invoice/retry

Ponawia 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

Przejdź do przykładu

Parametry

NazwaMiejsceTypWymaganyOpis
idpathstringTakmin. 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/json
Schemat InvoiceRetryResult
NazwaTypWymaganyOpis
status"accepted" | "sending" | "failed"Tak"accepted" | "sending" | "failed"
invoiceNumberstring | nullTak—
ksefNumberstring | nullTak—
downloadPathstring | nullTak—
JSON Schema
{
  "$ref": "#/components/schemas/InvoiceRetryResult"
}
202 Wystawianie faktury jest w toku.
application/json
Schemat InvoiceRetryResult
NazwaTypWymaganyOpis
status"accepted" | "sending" | "failed"Tak"accepted" | "sending" | "failed"
invoiceNumberstring | nullTak—
ksefNumberstring | nullTak—
downloadPathstring | nullTak—
JSON Schema
{
  "$ref": "#/components/schemas/InvoiceRetryResult"
}
403 Błąd przetwarzania żądania.
application/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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.

Obsługa błędów i limitów ↗

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"
      ]
    }
  }
}