API reference

Production access is closed · 37 operations

Get saved billing details

GET/api/v1/payments/invoice-billing

Billing details saved with the most recent paid purchase that contains them.

Required scope payments:read

Jump to the example

Responses

200 Details belonging to the API key owner.
application/json
Schema SavedInvoiceBilling
NameTypeRequiredDescription
billingnull | objectYes—
JSON Schema
{
  "$ref": "#/components/schemas/SavedInvoiceBilling"
}
403 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]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/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]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/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]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.

Handle errors and rate limits ↗

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