Pobierz zapisane dane do faktury
GET
/api/v1/payments/invoice-billingDane zapisane podczas ostatniego opłaconego zakupu z danymi do faktury.
Wymagany zakres payments:read
Odpowiedzi
200 Dane właściciela klucza.application/jsonSchemat SavedInvoiceBilling
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
billing | null | object | Tak | — |
JSON Schema
{
"$ref": "#/components/schemas/SavedInvoiceBilling"
}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"
}
}
}
}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
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"
]
}
]
}
}
}