Supplier

Supplier

List suppliers

get
/tenants/{tenantUid}/suppliers

List all suppliers.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
supplierExternalIdstringOptional

External id of a supplier.

supplierNamestringOptional

Reference to the name of a supplier.

pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/suppliers
200

Example response

Create a new supplier

post
/tenants/{tenantUid}/suppliers

Create a new supplier.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
and
Responses
200

Example response

application/json
post
/tenants/{tenantUid}/suppliers
200

Example response

Get supplier details

get
/tenants/{tenantUid}/suppliers/{supplierUid}

Get details for a supplier.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/suppliers/{supplierUid}
200

Example response

Update supplier details

put
/tenants/{tenantUid}/suppliers/{supplierUid}

Update details for a supplier. Partial updates are allowed.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
addressstringOptional
citystringOptional
contactEmailstringOptional
contactNamestringOptional
countryCodestringOptional
emailstringOptional
externalIdstringOptional
namestringOptional
phonestringOptional
postalCodestringOptional
vatNumberstringOptional

VAT identification number for value added tax reporting purposes.

activebooleanOptional
fixedDiscountRateintegerOptional
currencystringOptional

ISO 4217 code

freightPercentageintegerOptional
Responses
200

Example response

application/json
put
/tenants/{tenantUid}/suppliers/{supplierUid}
200

Example response

Delete a supplier

delete
/tenants/{tenantUid}/suppliers/{supplierUid}

Deletes a supplier.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/suppliers/{supplierUid}
204

No Content

No content

List supplier products for supplier

get
/tenants/{tenantUid}/suppliers/{supplierUid}/products

Lists all supplier products for a supplier. If the product has been linked to a tenant productUid then additional information will be added.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
supplierSkustringOptional

Search for a product from the specific supplier

Responses
200

Example response

application/json
get
/tenants/{tenantUid}/suppliers/{supplierUid}/products
200

Example response

Create a new supplier product

post
/tenants/{tenantUid}/suppliers/{supplierUid}/products

Create a new supplier product.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
supplierProductUidstringOptionalPattern: ^[A-Za-z0-9-_]+
productUidstringRequiredPattern: ^[A-Za-z0-9-_]+
purchasePriceintegerRequired
supplierSkustringOptional
Responses
200

Example response

application/json
post
/tenants/{tenantUid}/suppliers/{supplierUid}/products
200

Example response

Get supplier product details

get
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}

Get details for a supplier product.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
supplierProductUidstringRequired

Reference to the product of a supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}
200

Example response

Update supplier product

put
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}

Update details for a supplier product.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
supplierProductUidstringRequired

Reference to the product of a supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
purchasePriceintegerOptional
supplierSkustringOptional
Responses
200

Example response

application/json
put
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}
200

Example response

Delete supplier product

delete
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}

Delete a supplier product.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
supplierUidstringRequired

Reference to a Supplier.

Pattern: ^[A-Za-z0-9-_]+
supplierProductUidstringRequired

Reference to the product of a supplier.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/suppliers/{supplierUid}/products/{supplierProductUid}
204

No Content

No content

Update suppliers' commission sales payouts paid date

put
/tenants/{tenantUid}/suppliers/payouts

Set suppliers' payouts for commission sales as paid. If paid is true and paidAt is not given, today's date is set. If paid is false paidAt is set to nil.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
commissionUidsstring[]Required
paidbooleanRequired
paidAtstring · date-timeOptional

default is now

Responses
put
/tenants/{tenantUid}/suppliers/payouts
204

No Content

No content

Last updated