Skip to Content
GEMMInventory & Account ManagementUpdate Account Identifier

Update Account Identifiers

PUT/accounts/{accountNumber}/updateInventory & Account ManagementOpenAPI

Update the account identifiers for a child account.

Auth Scope
urn:grt:gemm
Content-Type
application/json
Base URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1

Uses and Requirements

Use this API to update the account identifiers of a child account, for example customField1 and customField2. The API is synchronous and no callback is sent.

HTTP Status Codes

StatusWhen
200The account identifiers were updated and a transactionID was returned. This API is synchronous: the change is applied before the response and no callback is sent.
400Validation failed: accountNumber in the path is not an 8-digit number; location, customField1 or customField2 is longer than 100 characters; generalLedgerNo, branchNumber or employer is longer than 50 characters; the macnum header is missing or not an 8-digit number; or the request body is missing or is not valid JSON.
401The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header.
403You do not have access to accountNumber, accountNumber does not belong to the hierarchy of the macnum header, or your credentials are not enabled for API access.
429Too many requests were sent in a short period. Wait briefly and retry.
500An unexpected server error occurred.
503The system is under scheduled maintenance. Retry after the maintenance window.
504A dependent service did not respond in time. Retry the request.

Headers

HeaderValue
AuthorizationBearer access-token
Content-Typeapplication/json
macnumTop Level Account Number associated with your API credentials.

Path Parameters

ParameterTypeRequiredDescription
accountNumberstringYesThe 8-digit Account Number of the child account to update.

Request Body Parameters

ParameterTypeRequiredDescription
customField1stringNoLimited to 100 characters.
customField2stringNoLimited to 100 characters.
generalLedgerNostringNoLimited to 50 characters.
branchNumberstringNoLimited to 50 characters.
employerstringNoLimited to 50 characters.
locationstringNoLocation name, also called customer name. Limited to 100 characters.

Request Examples

Responses

Immediate Success Response (200 OK)

Failure Responses

Immediate Error Message

Error Response Fields

ParameterTypeDescription
resultobjectResult status object.
statusstringResult status: success or failure.
errorsobjectList of errors.
errorCodestringError code.
errorMessagestringError message.

Code Examples

Last updated on