Referencja API

Dostęp produkcyjny zamknięty · 37 operacji

Pobierz zapisane dane do faktury

GET/api/v1/payments/invoice-billing

Dane zapisane podczas ostatniego opłaconego zakupu z danymi do faktury.

Wymagany zakres payments:read

Przejdź do przykładu

Odpowiedzi

200 Dane właściciela klucza.
application/json
Schemat SavedInvoiceBilling
NazwaTypWymaganyOpis
billingnull | objectTak—
JSON Schema
{
  "$ref": "#/components/schemas/SavedInvoiceBilling"
}
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"
      }
    }
  }
}
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"
      }
    }
  }
}
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.
503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.

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

Powiązane schematy

SavedInvoiceBilling
{
  "type": "object",
  "required": [
    "billing"
  ],
  "properties": {
    "billing": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "recipientType": {
              "type": "string",
              "enum": [
                "private",
                "company"
              ]
            },
            "name": {
              "type": "string"
            },
            "nip": {
              "type": "string"
            },
            "street": {
              "type": "string"
            },
            "buildingNumber": {
              "type": "string"
            },
            "apartmentNumber": {
              "type": "string"
            },
            "address": {
              "type": "string"
            },
            "postalCode": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "email": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            }
          },
          "required": [
            "recipientType",
            "name",
            "address",
            "postalCode",
            "city"
          ]
        }
      ]
    }
  }
}