GET v1/ShopOwners/{shopOwnerId}/PaymentTerms

Get a list with all available PaymentTerms (customer and supplier) for the given ShopOwner. Suppliers are linked to a ShopOwner, so this is the endpoint to retrieve supplier payment terms; use the ForSupplier flag on each item to filter.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopOwnerId

integer

Required.

Body Parameters

None.

Response Information

Resource Description

A list of Payment terms.

Collection of PaymentTerm
NameDescriptionTypeAdditional information
Id

Gets or sets the Payment Type identifier.

integer

None.

Name

Gets or sets the code.

string

None.

DaysToPay

Gets or sets the days to pay.

integer

None.

ForCustomer

Gets or sets a value indicating whether this payment term is available for customers.

boolean

None.

ForSupplier

Gets or sets a value indicating whether this payment term is available for suppliers.

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "DaysToPay": 1,
    "ForCustomer": true,
    "ForSupplier": true
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "DaysToPay": 1,
    "ForCustomer": true,
    "ForSupplier": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfPaymentTerm xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PaymentTerm>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <DaysToPay>1</DaysToPay>
    <ForCustomer>true</ForCustomer>
    <ForSupplier>true</ForSupplier>
  </PaymentTerm>
  <PaymentTerm>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <DaysToPay>1</DaysToPay>
    <ForCustomer>true</ForCustomer>
    <ForSupplier>true</ForSupplier>
  </PaymentTerm>
</ArrayOfPaymentTerm>