ROSE Developers - Web API Reference

Purchases | Purchases Account

The Purchases Account Determination endpoint is used to discover the purchases account in the company chart of account.

Overview


URL api/{tenantKey}/{orgKey}/purchasesCore/purchasesAcctDeterminations
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

GET Operations

GET PurchasesAcctDeterminations

Returns the list of all the entity records available.

Response:

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

Response status codes:

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

Resource URL:

GET /purchasesCore/purchasesAcctDeterminations

GET PurchasesAcctDeterminations (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 PurchasesAcctDeterminationResource.

Response status codes:

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

Resource URL:

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

GET PurchasesAcctDetermination 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 PurchasesAcctDeterminationResource.

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/purchasesAcctDeterminations/{id}

GET PurchasesAcctDetermination by key

Returns the entity record that matches the specified key.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

Response:

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

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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}

GET Print PurchasesAcctDetermination 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/purchasesAcctDeterminations/{id}/print?template={template}

GET Print PurchasesAcctDetermination by key

Prints the specified entity record.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/print

GET Original Print PurchasesAcctDeterminationOriginal 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/purchasesAcctDeterminations/{id}/printOriginal?template={template}

GET Original Print PurchasesAcctDetermination by key

Prints the specified entity record.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/printOriginal

POST Operations

POST PurchasesAcctDeterminations

Creates a new entity record.

The following elements are required:

purchasesAcctDeterminationResource (ApiPurchasesAcctDeterminationResource) The request body should contain the entity record that should be created.
See ApiPurchasesAcctDeterminationResource.

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 ApiPurchasesAcctDeterminationResource.

Response status codes:

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

Resource URL:

POST /purchasesCore/purchasesAcctDeterminations

POST Purchases Account

Inserts a new 'Account Determination' in the 'Purchases Account'.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
value (ApiPurchasesAcctDeterminationPurchasesGLAccountsResource) The ApiPurchasesAcctDeterminationPurchasesGLAccountsResource instance.
See ApiPurchasesAcctDeterminationPurchasesGLAccountsResource.

Response:

When successful, the response body is empty.

Response status codes:

204 NoContent. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /purchasesCore/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts

PUT Operations

PUT Set ChartOfAccount PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/chartOfAccount

PUT Set Description PurchasesAcctDetermination

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/description

PUT Set DiscountAccount PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/discountAccount

PUT Set IsActive PurchasesAcctDetermination

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/isActive

PUT Set ItemAccountType PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/itemAccountType

PUT Set ItemTaxSchema PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/itemTaxSchema

PUT Set PartyTaxSchema PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/partyTaxSchema

PUT Set PurchaseAccount PurchasesGLAccount

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The detail identifier.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}/purchaseAccount

PUT Set PurchasesAcctDeterminationKey PurchasesAcctDetermination

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

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesAcctDeterminationKey

DELETE Operations

DELETE Account Determination by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.
lineId (string) The line identifier.

Response:

When successful, the response body is empty.

Response status codes:

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

Resource URL:

DELETE /purchasesCore/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}/purchasesGLAccounts/{lineId}

DELETE PurchasesAcctDetermination 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/purchasesAcctDeterminations/{id}

DELETE PurchasesAcctDetermination by key

Deletes the entity record that matches the specified key.

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

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/purchasesAcctDeterminations/{purchasesAcctDeterminationKey}

Resources


ApiPurchasesAcctDeterminationPurchasesGLAccountsResource

The following elements are required:

chartOfAccount (string) The chart of accounts.
purchaseAccount (string) The purchases account for the item account type, item tax schema and party tax schema selected.
itemAccountType (string) The item account type.

The following elements are optional:

itemTaxSchema (string) The item tax schema.
partyTaxSchema (string) The party tax schema.
discountAccount (string) The discount account for the item account type, item tax schema and party tax schema selected.


ApiPurchasesAcctDeterminationResource

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

The following elements are optional:

description (string) The description of purchases account determination.
purchasesGLAccounts (List of ApiPurchasesAcctDeterminationPurchasesGLAccountsResource) The list of GL accounts.
See ApiPurchasesAcctDeterminationPurchasesGLAccountsResource.


PurchasesAcctDeterminationResource

The following elements are required:

purchasesAcctDeterminationKey (string) The purchases account determination key.

The following elements are optional:

description (string) The description of purchases account determination.
purchasesGLAccounts (List of PurchasesGLAccountResource) The list of GL accounts.
See PurchasesGLAccountResource.


PurchasesGLAccountResource

The following elements are required:

chartOfAccount (string) The chart of accounts.
purchaseAccount (string) The purchases account for the item account type, item tax schema and party tax schema selected.
itemAccountType (string) The item account type.

The following elements are optional:

itemTaxSchema (string) The item tax schema.
partyTaxSchema (string) The party tax schema.
discountAccount (string) The discount account for the item account type, item tax schema and party tax schema selected.