Get saved billing details
GET
/api/v1/payments/invoice-billingBilling details saved with the most recent paid purchase that contains them.
Required scope payments:read
Responses
200 Details belonging to the API key owner.application/jsonSchema SavedInvoiceBilling
| Name | Type | Required | Description |
|---|---|---|---|
billing | null | object | Yes | — |
JSON Schema
{
"$ref": "#/components/schemas/SavedInvoiceBilling"
}403 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
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 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Other API errors Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
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 A valid API key is required.503 Access is closed or the service is temporarily unavailable. Check code.Related schemas
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"
]
}
]
}
}
}