list()
List invoices
Returns invoices visible to the authenticated account. Resellers and administrators can filter by an accessible user.
Signature
client.invoices.list(options: InvoicesListOptions = {}): Promise<InvoicesListResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
gateway | string | Optional | The payment gateway used for processing the payment. * `coinbase` - Coinbase * `cryptomus` - Cryptomus * `stripe` - Stripe * `coingate` - Coingate * `wallet` - Wallet * `manual` - Manual * `whitepay` - Whitepay * `wayforpay` - WayForPay * `usegateway` - UseGateway * `binance` - Binance Pay * `anymoney` - Any.Money * `coinpayments` - CoinPayments * `checkoutcom` - Checkout.com * `nowpayments` - NOWPayments * `btcpay` - BTCPay Server * `braintree` - Braintree * `monobank` - monobank * `liqpay` - LiqPay * `iyzico` - iyzico * `paytr` - PayTR * `payu` - PayU * `tpay` - Tpay * `przelewy24` - Przelewy24 * `gopay` - GoPay * `comgate` - Comgate * `monei` - MONEI * `redsys` - Redsys * `payplug` - PayPlug * `mollie` - Mollie * `unzer` - Unzer * `payone` - PAYONE * `nexi_xpay` - Nexi XPay * `halyk_epay` - Halyk ePay * `kaspi_pay` - Kaspi Pay * `vipps_mobilepay` - Vipps MobilePay * `paytrail` - Paytrail |
internalId | string | Optional | — |
limit | number | Optional | Number of results to return per page. |
offset | number | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageId | string | Optional | — |
search | string | Optional | Case-insensitive partial search across Invoice fields: `id`, `internal_id`, and `user.email`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
status | string | Optional | After changing invoice status to PAID, the invoice will be processed and user package created in case none exists. If you need to cancel the invoice, make sure to subtract data from the user package after changing the invoice status. Changing the status from PAID to any other will not affect the user package's data or proxies. * `pending` - Pending * `paid` - Paid * `unpaid` - Unpaid * `error` - Error |
type | string | Optional | The type of invoice, indicating the type of proxy service. Options include: RESIDENTIAL: Residential proxies. STATIC: Static proxies. * `static` - Static * `residential` - Residential * `balance` - Balance |
userEmail | string | Optional | — |
userId | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
const result = await client.invoices.list();Returns
PaginatedInvoiceReadListThe operation completed successfully.
typePaginatedInvoiceReadList4fields
countnumbernextstringpreviousstringresultsInvoiceRead[]typeInvoiceRead39fields
Full invoice in package-based deployments; short invoice otherwise. Invoice creation always returns the full Invoice representation.
idstringpackagePackageShorttypePackageShort5fields
idstringnamestringaliasstringis_unlimited_databooleantargeting_optionsTargetingOptionstypeTargetingOptions25fields
packagestringsplit_charstringvalue_charstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocation_formatstringsessionstringsession_mode_tagstringsession_ttlstringsession_ttl_formatnumberosstringos_combinedbooleanos_split_charstringos_linuxstringos_windowsstringos_iosstringos_macosstringos_androidstringcountryCountrytypeCountry6fields
idstringcodestringnamestringoriginal_namestringispsLocationCodeName[]typeLocationCodeName2fields
codestringnamestringasnsLocationCodeName[]typeLocationCodeName2fields
codestringnamestringuser_idstringcouponCoupontypeCoupon16fields
idstringredeemed_countnumberis_expiredbooleanis_redeemedbooleanpackagesPackageShort[]typePackageShort5fields
idstringnamestringaliasstringis_unlimited_databooleantargeting_optionsTargetingOptionstypeTargetingOptions25fields
packagestringsplit_charstringvalue_charstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocation_formatstringsessionstringsession_mode_tagstringsession_ttlstringsession_ttl_formatnumberosstringos_combinedbooleanos_split_charstringos_linuxstringos_windowsstringos_iosstringos_macosstringos_androidstringstatsCouponStatstypeCouponStats5fields
total_redeemsnumberunique_usersnumbertotal_revenuenumbertotal_discount_givennumbertotal_data_givennumbercreatedstringvaluenumbercodestringis_multi_usebooleanis_available_to_one_timebooleantypeCouponTypeEnumenumCouponTypeEnum0fields
* `free_data` - Free Data * `monetary` - Money * `percentage` - Percentage
No fields.
limitnumbervalid_untilstringmarketerstringuserstringpayment_amountnumberpayment_currencystringfx_market_ratestringfx_effective_ratestringfx_markup_percentstringfx_quoted_atstringupdatedstringcreatedstringtypeInvoiceTypeEnumenumInvoiceTypeEnum0fields
* `static` - Static * `residential` - Residential * `balance` - Balance
No fields.
is_one_timebooleanis_payoutbooleaninternal_idstringstatusInvoiceStatusEnumenumInvoiceStatusEnum0fields
* `pending` - Pending * `paid` - Paid * `unpaid` - Unpaid * `error` - Error
No fields.
descriptionstringconnection_limitnumberquantitynumberdatanumberbalancenumberprice_totalnumbergatewayInvoiceGatewayEnumenumInvoiceGatewayEnum0fields
* `coinbase` - Coinbase * `cryptomus` - Cryptomus * `stripe` - Stripe * `coingate` - Coingate * `wallet` - Wallet * `manual` - Manual * `whitepay` - Whitepay * `wayforpay` - WayForPay * `usegateway` - UseGateway * `binance` - Binance Pay * `anymoney` - Any.Money * `coinpayments` - CoinPayments * `checkoutcom` - Checkout.com * `nowpayments` - NOWPayments * `btcpay` - BTCPay Server * `braintree` - Braintree * `monobank` - monobank * `liqpay` - LiqPay * `iyzico` - iyzico * `paytr` - PayTR * `payu` - PayU * `tpay` - Tpay * `przelewy24` - Przelewy24 * `gopay` - GoPay * `comgate` - Comgate * `monei` - MONEI * `redsys` - Redsys * `payplug` - PayPlug * `mollie` - Mollie * `unzer` - Unzer * `payone` - PAYONE * `nexi_xpay` - Nexi XPay * `halyk_epay` - Halyk ePay * `kaspi_pay` - Kaspi Pay * `vipps_mobilepay` - Vipps MobilePay * `paytrail` - Paytrail
No fields.
payment_urlstringcurrencystringprovider_checkout_idstringprovider_payment_idstringcheckout_statusCheckoutStatusEnumenumCheckoutStatusEnum0fields
* `not_required` - Not required * `initializing` - Initializing * `ready` - Ready * `failed` - Failed
No fields.
vatnumbercompany_namestringcompany_addressstringcompany_citystringcompany_postal_codestringcompany_registration_numberstringcompany_vat_numberstringpaidstringexpiresstringThrows
ApiErrorNormalized API, transport, and response processing failure.
kind: "validation"The request arguments or business rules are invalid.kind: "authentication"Authentication credentials are missing, expired, or invalid.kind: "permission"The authenticated account cannot perform this operation.kind: "network"The request could not reach ProxyRequest.kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
client.invoices.listWithResponse(options): Promise<ApiResponse<InvoicesListResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.invoices.list(*, gateway: InvoicesListPaymentGateway | Unset=UNSET, internal_id: str | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: str | Unset=UNSET, search: str | Unset=UNSET, status: InvoicesListStatus | Unset=UNSET, type_: InvoicesListType | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedInvoiceReadListawait async_client.invoices.list(*, gateway: InvoicesListPaymentGateway | Unset=UNSET, internal_id: str | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: str | Unset=UNSET, search: str | Unset=UNSET, status: InvoicesListStatus | Unset=UNSET, type_: InvoicesListType | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedInvoiceReadListParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
gateway | str | Optional | The payment gateway used for processing the payment. * `coinbase` - Coinbase * `cryptomus` - Cryptomus * `stripe` - Stripe * `coingate` - Coingate * `wallet` - Wallet * `manual` - Manual * `whitepay` - Whitepay * `wayforpay` - WayForPay * `usegateway` - UseGateway * `binance` - Binance Pay * `anymoney` - Any.Money * `coinpayments` - CoinPayments * `checkoutcom` - Checkout.com * `nowpayments` - NOWPayments * `btcpay` - BTCPay Server * `braintree` - Braintree * `monobank` - monobank * `liqpay` - LiqPay * `iyzico` - iyzico * `paytr` - PayTR * `payu` - PayU * `tpay` - Tpay * `przelewy24` - Przelewy24 * `gopay` - GoPay * `comgate` - Comgate * `monei` - MONEI * `redsys` - Redsys * `payplug` - PayPlug * `mollie` - Mollie * `unzer` - Unzer * `payone` - PAYONE * `nexi_xpay` - Nexi XPay * `halyk_epay` - Halyk ePay * `kaspi_pay` - Kaspi Pay * `vipps_mobilepay` - Vipps MobilePay * `paytrail` - Paytrail |
internal_id | str | Optional | — |
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | str | Optional | Which field to use when ordering the results. |
package_id | str | Optional | — |
search | str | Optional | Case-insensitive partial search across Invoice fields: `id`, `internal_id`, and `user.email`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
status | str | Optional | After changing invoice status to PAID, the invoice will be processed and user package created in case none exists. If you need to cancel the invoice, make sure to subtract data from the user package after changing the invoice status. Changing the status from PAID to any other will not affect the user package's data or proxies. * `pending` - Pending * `paid` - Paid * `unpaid` - Unpaid * `error` - Error |
type | str | Optional | The type of invoice, indicating the type of proxy service. Options include: RESIDENTIAL: Residential proxies. STATIC: Static proxies. * `static` - Static * `residential` - Residential * `balance` - Balance |
user_email | str | Optional | — |
user_id | str | Optional | — |
accept_language | str | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
result = client.invoices.list()Async example
result = await async_client.invoices.list()Returns
PaginatedInvoiceReadListThe operation completed successfully.
classPaginatedInvoiceReadList4fields
countintresultslist[Invoice | InvoiceShort]classInvoice38fields
packageNone | PackageShortclassPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databoolcountryCountry | NoneclassCountry6fields
codestrnamestrispslist[LocationCodeName]classLocationCodeName2fields
codestrnamestrasnslist[LocationCodeName]classLocationCodeName2fields
codestrnamestridstroriginal_namestruser_idUUIDcouponCouponShort | NoneclassCouponShort14fields
is_expiredboolis_redeemedboolpackageslist[PackageShort]classPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databoolcreateddatetime.datetimevalueintcodestrtype_CouponTypeEnumenumCouponTypeEnum0fields
No fields.
userNone | UUIDidstris_multi_useboolis_available_to_one_timeboollimitintvalid_untildatetime.datetime | NonemarketerNone | UUIDpayment_amountintpayment_currencystrfx_market_ratestrfx_effective_ratestrfx_markup_percentstrfx_quoted_atdatetime.datetime | Noneupdateddatetime.datetimecreateddatetime.datetimeidstrtype_InvoiceTypeEnumenumInvoiceTypeEnum0fields
No fields.
is_one_timeboolis_payoutboolinternal_idstrstatusInvoiceStatusEnumenumInvoiceStatusEnum0fields
No fields.
descriptionstrconnection_limitintquantityintdataintbalanceintprice_totalintgatewayInvoiceGatewayEnumenumInvoiceGatewayEnum0fields
No fields.
payment_urlstrcurrencystrprovider_checkout_idstrprovider_payment_idstrcheckout_statusCheckoutStatusEnumenumCheckoutStatusEnum0fields
No fields.
vatfloatcompany_namestrcompany_addressstrcompany_citystrcompany_postal_codestrcompany_registration_numberstrcompany_vat_numberstrpaiddatetime.datetime | NoneclassInvoiceShort28fields
couponCoupon | NoneclassCoupon16fields
redeemed_countintis_expiredboolis_redeemedboolpackageslist[PackageShort]classPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databoolstatsCouponStats | NoneclassCouponStats5fields
total_redeemsintunique_usersinttotal_revenueinttotal_discount_giveninttotal_data_givenintcreateddatetime.datetimevalueintcodestrtype_CouponTypeEnumenumCouponTypeEnum0fields
No fields.
userNone | UUIDidstris_multi_useboolis_available_to_one_timeboollimitintvalid_untildatetime.datetime | NonemarketerNone | UUIDcountryCountry | NoneclassCountry6fields
codestrnamestrispslist[LocationCodeName]classLocationCodeName2fields
codestrnamestrasnslist[LocationCodeName]classLocationCodeName2fields
codestrnamestridstroriginal_namestrupdateddatetime.datetimecreateddatetime.datetimeidstris_one_timeboolis_payoutboolinternal_idstrstatusInvoiceStatusEnumenumInvoiceStatusEnum0fields
No fields.
descriptionstrconnection_limitintdataintbalanceintprice_totalintgatewayInvoiceGatewayEnumenumInvoiceGatewayEnum0fields
No fields.
currencystrprovider_checkout_idstrprovider_payment_idstrcheckout_statusCheckoutStatusEnumenumCheckoutStatusEnum0fields
No fields.
vatfloatcompany_namestrcompany_addressstrcompany_citystrcompany_postal_codestrcompany_registration_numberstrcompany_vat_numberstrpaiddatetime.datetime | Noneexpiresdatetime.datetime | Nonenext_None | strpreviousNone | strThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.invoices.list_with_response(*, gateway: InvoicesListPaymentGateway | Unset=UNSET, internal_id: str | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: str | Unset=UNSET, search: str | Unset=UNSET, status: InvoicesListStatus | Unset=UNSET, type_: InvoicesListType | Unset=UNSET, user_email: str | Unset=UNSET, user_id: UUID | Unset=UNSET, accept_language: str | Unset=UNSET) -> ApiResponse[PaginatedInvoiceReadList]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->invoices()->list($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
gateway | string | Optional | The payment gateway used for processing the payment. * `coinbase` - Coinbase * `cryptomus` - Cryptomus * `stripe` - Stripe * `coingate` - Coingate * `wallet` - Wallet * `manual` - Manual * `whitepay` - Whitepay * `wayforpay` - WayForPay * `usegateway` - UseGateway * `binance` - Binance Pay * `anymoney` - Any.Money * `coinpayments` - CoinPayments * `checkoutcom` - Checkout.com * `nowpayments` - NOWPayments * `btcpay` - BTCPay Server * `braintree` - Braintree * `monobank` - monobank * `liqpay` - LiqPay * `iyzico` - iyzico * `paytr` - PayTR * `payu` - PayU * `tpay` - Tpay * `przelewy24` - Przelewy24 * `gopay` - GoPay * `comgate` - Comgate * `monei` - MONEI * `redsys` - Redsys * `payplug` - PayPlug * `mollie` - Mollie * `unzer` - Unzer * `payone` - PAYONE * `nexi_xpay` - Nexi XPay * `halyk_epay` - Halyk ePay * `kaspi_pay` - Kaspi Pay * `vipps_mobilepay` - Vipps MobilePay * `paytrail` - Paytrail |
internalId | string | Optional | — |
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageId | string | Optional | — |
search | string | Optional | Case-insensitive partial search across Invoice fields: `id`, `internal_id`, and `user.email`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
status | string | Optional | After changing invoice status to PAID, the invoice will be processed and user package created in case none exists. If you need to cancel the invoice, make sure to subtract data from the user package after changing the invoice status. Changing the status from PAID to any other will not affect the user package's data or proxies. * `pending` - Pending * `paid` - Paid * `unpaid` - Unpaid * `error` - Error |
type | string | Optional | The type of invoice, indicating the type of proxy service. Options include: RESIDENTIAL: Residential proxies. STATIC: Static proxies. * `static` - Static * `residential` - Residential * `balance` - Balance |
userEmail | string | Optional | — |
userId | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
$result = $client->invoices()->list();Returns
PaginatedInvoiceReadListThe operation completed successfully.
classPaginatedInvoiceReadList4fields
countintnextstringpreviousstringresults[InvoiceRead[]](InvoiceRead.md)classInvoiceRead39fields
Invoice details. Creation, list, and detail responses use the same Invoice representation.
idstringpackagePackageShortclassPackageShort5fields
idstringnamestringaliasstringisUnlimitedDatabooltargetingOptionsTargetingOptionsclassTargetingOptions25fields
packagestringsplitCharstringvalueCharstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocationFormatstringsessionstringsessionModeTagstringsessionTtlstringsessionTtlFormatintosstringosCombinedboolosSplitCharstringosLinuxstringosWindowsstringosIosstringosMacosstringosAndroidstringcountryCountryclassCountry6fields
idstringcodestringnamestringoriginalNamestringisps[LocationCodeName[]](LocationCodeName.md)classLocationCodeName2fields
codestringnamestringasns[LocationCodeName[]](LocationCodeName.md)classLocationCodeName2fields
codestringnamestringuserIdstringcouponCouponclassCoupon16fields
idstringredeemedCountintisExpiredboolisRedeemedboolpackages[PackageShort[]](PackageShort.md)classPackageShort5fields
idstringnamestringaliasstringisUnlimitedDatabooltargetingOptionsTargetingOptionsclassTargetingOptions25fields
packagestringsplitCharstringvalueCharstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocationFormatstringsessionstringsessionModeTagstringsessionTtlstringsessionTtlFormatintosstringosCombinedboolosSplitCharstringosLinuxstringosWindowsstringosIosstringosMacosstringosAndroidstringstatsCouponStatsclassCouponStats5fields
totalRedeemsintuniqueUsersinttotalRevenueinttotalDiscountGiveninttotalDataGivenintcreatedDateTimevalueintcodestringisMultiUseboolisAvailableToOneTimebooltypeCouponTypeEnumenumCouponTypeEnum0fields
* `free_data` - Free Data * `monetary` - Money * `percentage` - Percentage
No fields.
limitintvalidUntilDateTimemarketerstringuserstringpaymentAmountintpaymentCurrencystringfxMarketRatestringfxEffectiveRatestringfxMarkupPercentstringfxQuotedAtDateTimeupdatedDateTimecreatedDateTimetypeInvoiceTypeEnumenumInvoiceTypeEnum0fields
* `static` - Static * `residential` - Residential * `balance` - Balance
No fields.
isOneTimeboolisPayoutboolinternalIdstringstatusInvoiceStatusEnumenumInvoiceStatusEnum0fields
* `pending` - Pending * `paid` - Paid * `unpaid` - Unpaid * `error` - Error
No fields.
descriptionstringconnectionLimitintquantityintdataintbalanceintpriceTotalintgatewayInvoiceGatewayEnumenumInvoiceGatewayEnum0fields
* `coinbase` - Coinbase * `cryptomus` - Cryptomus * `stripe` - Stripe * `coingate` - Coingate * `wallet` - Wallet * `manual` - Manual * `whitepay` - Whitepay * `wayforpay` - WayForPay * `usegateway` - UseGateway * `binance` - Binance Pay * `anymoney` - Any.Money * `coinpayments` - CoinPayments * `checkoutcom` - Checkout.com * `nowpayments` - NOWPayments * `btcpay` - BTCPay Server * `braintree` - Braintree * `monobank` - monobank * `liqpay` - LiqPay * `iyzico` - iyzico * `paytr` - PayTR * `payu` - PayU * `tpay` - Tpay * `przelewy24` - Przelewy24 * `gopay` - GoPay * `comgate` - Comgate * `monei` - MONEI * `redsys` - Redsys * `payplug` - PayPlug * `mollie` - Mollie * `unzer` - Unzer * `payone` - PAYONE * `nexi_xpay` - Nexi XPay * `halyk_epay` - Halyk ePay * `kaspi_pay` - Kaspi Pay * `vipps_mobilepay` - Vipps MobilePay * `paytrail` - Paytrail
No fields.
paymentUrlstringcurrencystringproviderCheckoutIdstringproviderPaymentIdstringcheckoutStatusCheckoutStatusEnumenumCheckoutStatusEnum0fields
* `not_required` - Not required * `initializing` - Initializing * `ready` - Ready * `failed` - Failed
No fields.
vatfloatcompanyNamestringcompanyAddressstringcompanyCitystringcompanyPostalCodestringcompanyRegistrationNumberstringcompanyVatNumberstringpaidDateTimeexpiresDateTimeThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::ValidationThe request arguments or business rules are invalid.ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::NetworkThe request could not reach ProxyRequest.ErrorKind::UnexpectedThe response could not be decoded or did not match the SDK contract.
InvalidArgumentExceptionA required argument is missing or violates a local SDK constraint.
local validationThe request was rejected before it was sent.
Advanced variants
$client->invoices()->listWithResponse($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->invoices()->listWithHttpInfo($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns the OpenAPI Generator response tuple.
$client->invoices()->listAsync($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the decoded result.
$client->invoices()->listAsyncWithHttpInfo($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the response tuple.
$client->invoices()->listRequest($gateway = null, $internalId = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $status = null, $type = null, $userEmail = null, $userId = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Builds the PSR-7 request without sending it.