Purchases | Supplier Group
Service to manage entities of type 'SupplierGroup'.
Overview
URL | api/{tenantKey}/{orgKey}/purchasesCore/supplierGroups |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive SupplierGroup
- PUT Set SupplierGroupKey SupplierGroup
- PUT Set Description SupplierGroup
- PUT Set SettlementDiscountPercent SupplierGroup
- PUT Set PaymentMethod SupplierGroup
- PUT Set PaymentTerm SupplierGroup
- PUT Set DeliveryTerm SupplierGroup
- PUT Set PartyTaxSchema SupplierGroup
- PUT Set PartyWithholdingTaxSchema SupplierGroup
- PUT Set IsDefault SupplierGroup
- DELETE:
All Resources
This service uses the following resources:
GET SupplierGroups (odata)
Returns a page of the list of all the entity records available.
The following elements are optional:
opts | (ODataQueryOptions) OData query option. |
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 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 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:
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:
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 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 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 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 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 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 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 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 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 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:
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 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:
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. |