List Billing Plans Input

June 5, 2026 ยท View on GitHub

Input structure for the method ListBillingPlansAsync

Structure

ListBillingPlansInput

Fields

NameTypeTagsDescriptionGetterSetter
PreferStringOptionalThe preferred server response upon successful completion of the request. Value is: return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, name, description and HATEOAS links. return=representation. The server returns a complete resource representation, including the current state of the resource.

Default: "return=minimal"
String getPrefer()setPrefer(String prefer)
ProductIdStringOptionalFilters the response by a Product ID.

Constraints: Minimum Length: 6, Maximum Length: 50
String getProductId()setProductId(String productId)
PageSizeIntegerOptionalThe number of items to return in the response.

Default: 10

Constraints: >= 1, <= 20
Integer getPageSize()setPageSize(Integer pageSize)
PageIntegerOptionalA non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1 and page_size=20 returns the first 20 items. The combination of page=2 and page_size=20 returns the next 20 items.

Default: 1

Constraints: >= 1, <= 100000
Integer getPage()setPage(Integer page)
TotalRequiredBooleanOptionalIndicates whether to show the total count in the response.

Default: false
Boolean getTotalRequired()setTotalRequired(Boolean totalRequired)

Example

import com.paypal.sdk.models.ListBillingPlansInput;

ListBillingPlansInput listBillingPlansInput = new ListBillingPlansInput.Builder()
    .prefer("return=minimal")
    .productId("product_id4")
    .pageSize(10)
    .page(1)
    .totalRequired(false)
    .build();