Jasmin Developers - Web API Reference

GET Operations

GET SupplierGroups

Returns the list of all the entity records available.

Response:

When successful, the response body contains the list of records available. See SupplierGroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /purchasesCore/supplierGroups

GET SupplierGroups (paged)

Returns a page of the list of all the entity records available.

The following elements are optional:

page (int) The index of the page of the list that should be returned. This is a query string parameter.
pageSize (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter.

Response:

When successful, the response body contains the list of records available. See SupplierGroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /purchasesCore/supplierGroups?page={page}&pageSize={pageSize}

GET SupplierGroup by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See SupplierGroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{id}

GET SupplierGroup by key

Returns the entity record that matches the specified key.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.

Response:

When successful, the response body contains the entity record. See SupplierGroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{supplierGroupKey}

GET Print SupplierGroup by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{id}/print?template={template}

GET Print SupplierGroup by key

Prints the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{supplierGroupKey}/print

GET Original Print SupplierGroupOriginal by identifier

Prints the specified entity record.

The following elements are required:

id (string) The record identifier.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
404 NotFound. The specified resord does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{id}/printOriginal?template={template}

GET Original Print SupplierGroup by key

Prints the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.

The following elements are optional:

template (string) The report template that should be used. This is a query string parameter.

Response:

When successful, the response body contains a stream with the printed file.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /purchasesCore/supplierGroups/{supplierGroupKey}/printOriginal

POST Operations

POST SupplierGroups

Creates a new entity record.

The following elements are required:

supplierGroupResource (ApiSupplierGroupResource) The request body should contain the entity record that should be created.
See ApiSupplierGroupResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiSupplierGroupResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /purchasesCore/supplierGroups

PUT Operations

PUT Set DeliveryTerm SupplierGroup

Updates the value of attribute 'DeliveryTerm' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/deliveryTerm

PUT Set Description SupplierGroup

Updates the value of attribute 'Description' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/description

PUT Set IsActive SupplierGroup

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/isActive

PUT Set IsDefault SupplierGroup

Updates the value of attribute 'IsDefault' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/isDefault

PUT Set PartyTaxSchema SupplierGroup

Updates the value of attribute 'PartyTaxSchema' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/partyTaxSchema

PUT Set PartyWithholdingTaxSchema SupplierGroup

Updates the value of attribute 'PartyWithholdingTaxSchema' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/partyWithholdingTaxSchema

PUT Set PaymentMethod SupplierGroup

Updates the value of attribute 'PaymentMethod' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/paymentMethod

PUT Set PaymentTerm SupplierGroup

Updates the value of attribute 'PaymentTerm' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/paymentTerm

PUT Set SettlementDiscountPercent SupplierGroup

Updates the value of attribute 'SettlementDiscountPercent' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (decimal) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/settlementDiscountPercent

PUT Set SupplierGroupKey SupplierGroup

Updates the value of attribute 'SupplierGroupKey' in the specified entity record.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /purchasesCore/supplierGroups/{supplierGroupKey}/supplierGroupKey

DELETE Operations

DELETE SupplierGroup by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /purchasesCore/supplierGroups/{id}

DELETE SupplierGroup by key

Deletes the entity record that matches the specified key.

The following elements are required:

supplierGroupKey (string) The key for the supplier group.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /purchasesCore/supplierGroups/{supplierGroupKey}

Resources


ApiSupplierGroupResource

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
isDefault (bool) Indicates if this is the default supplier group for the document.

The following elements are optional:

description (string) The description for the supplier group.
settlementDiscountPercent (decimal) The Settlement discount percentage.
paymentMethod (string) The payment method for the supplier group.
paymentTerm (string) The payment term for the supplier group.
deliveryTerm (string) The delivery term for the supplier group.
partyTaxSchema (string) The purchases party tax schema. The tax schema identifies the group of taxes a party is liable for.
partyWithholdingTaxSchema (string) The party withholding tax schema. The withholding tax schema identifies the group of withholding taxes a party is liable for.


SupplierGroupResource

The following elements are required:

supplierGroupKey (string) The key for the supplier group.
isDefault (bool) Indicates if this is the default supplier group for the document.

The following elements are optional:

description (string) The description for the supplier group.
settlementDiscountPercent (decimal) The Settlement discount percentage.
paymentMethod (string) The payment method for the supplier group.
(fk) Allowed value: the natural key of a record of type PaymentMethod. These records are accessibly through the PaymentMethods service.
paymentTerm (string) The payment term for the supplier group.
(fk) Allowed value: the natural key of a record of type PaymentTerm. These records are accessibly through the PaymentTerms service.
deliveryTerm (string) The delivery term for the supplier group.
(fk) Allowed value: the natural key of a record of type DeliveryTerm. These records are accessibly through the DeliveryTerms service.
partyTaxSchema (string) The purchases party tax schema. The tax schema identifies the group of taxes a party is liable for.
(fk) Allowed value: the natural key of a record of type PartyTaxSchema. These records are accessibly through the PartyTaxSchemas service.
partyWithholdingTaxSchema (string) The party withholding tax schema. The withholding tax schema identifies the group of withholding taxes a party is liable for.
(fk) Allowed value: the natural key of a record of type PartyWithholdingTaxSchema. These records are accessibly through the PartyWithholdingTaxSchemas service.