Skip to main content

Search Payment Plans

SearchPaymentPlans

This method searches and retrieves payment plans based on the filter provided to the method.


Input

SearchPaymentPlansRequest

FieldRTypeDescription
StartIndex*IntegerIndex of first result.
EndIndex*IntegerIndex of last result.
SearchPaymentPlanFilter*SearchPaymentPlanFilterFilter for search. See SearchPaymentPlanFilter.
SearchPaymentPlanSorting*SearchPaymentPlanSortingField to sort the result. See SearchPaymentPlanSorting.

Output

SearchPaymentPlansResponse

FieldRTypeDescription
PaymentPlanListItems*Array of PaymentPlanListItemResult of search.
ResultCount*IntegerNumber of hits of a search.

Structures

PaymentPlanListItem

FieldRTypeDescription
CustomerType-CustomerTypeSee CustomerType.
CustomerCountryCode-String(2)Two-letter country code.
ClientOrderId-StringOrder number from the client’s ordersystem.
ApprovedDate*DateTimeDate when the payment plan was approved.
Status*String (PaymentPlanStatus)See PaymentPlanStatus.
Amount*Decimal(15,2)Payment plan amount.
PaidDate-Nullable<DateTime>Date when the payment plan was paid.
NationalIdNumber*String(12)Unique identifier for customers (e.g., Personnummer & organisationsnummer in Sweden). Not returned for Finnish clients.
SveaOrderId*LongUnique ID for the created order. Used for any further order webservice requests.
ClientId*Long(7)ID that identifies a client in Svea Payments system.
ContractLengthInMonths*Integer-
ContractNumber*LongReference to a payment plan.
CustomerName*String-

SearchPaymentPlanFilter

FieldRTypeDescription
AcceptedStatus-PaymentPlanStatusSee PaymentPlanStatus.
TextMatch-StringSearch text.
TextMatchType-TextMatchTypeProperty to use for the free text search. Use in combination with TextMatch for more efficient search. If not provided, AllFields is used.

SearchPaymentPlanSorting

FieldRTypeDescription
SortDirection-SortDirectionSee SortDirection.
SortPaymentPlanProperty-SortPaymentPlanPropertyPossible sorting field.

Enumerations

PaymentPlanStatus

ValueDescription
CancelledThe payment plan has been cancelled.
ErrorAn error occurred.
WaitingToBeSentThe payment plan is waiting to be sent.
WaitingForContractThe payment plan awaiting contract.
RunningThe payment plan is currently active.
FinishedThe payment plan has been completed.

TextMatchType

ValueDescription
AllFieldsSearches across all available fields.
SveaOrderIdSearches by Svea order identifier.
ClientOrderNumberSearches by client order number.
NationalIdNumberSearches by national ID number.
ContractNumberSearches by contract number.

SortPaymentPlanProperty

ValueDescription
ApprovedDateSorts by the date the payment plan was approved.
AmountSorts by the total amount of the payment plan.
ContractNumberSorts by the contract number.
PaidDateSorts by the date the payment plan was paid.
SveaOrderIdSorts by the Svea order identifier.
CustomerNameSorts by the name of the customer.
StatusSorts by the current status of the payment plan.
NationalIdNumberSorts by the national ID number.
ClientOrderIdSorts by the client’s order identifier.
ContractLengthMonthsSorts by the length of the contract in months.

CustomerType

ValueDescription
IndividualThe customer is a private individual.
CompanyThe customer is a business entity.