Update Account Identifiers
Update the account identifiers for a child account.
Auth Scope
urn:grt:gemmContent-Type
application/jsonBase URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1Uses 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
| Status | When |
|---|---|
200 | The 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. |
400 | Validation 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. |
401 | The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header. |
403 | You 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. |
429 | Too many requests were sent in a short period. Wait briefly and retry. |
500 | An unexpected server error occurred. |
503 | The system is under scheduled maintenance. Retry after the maintenance window. |
504 | A dependent service did not respond in time. Retry the request. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer access-token |
Content-Type | application/json |
macnum | Top Level Account Number associated with your API credentials. |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accountNumber | string | Yes | The 8-digit Account Number of the child account to update. |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customField1 | string | No | Limited to 100 characters. |
customField2 | string | No | Limited to 100 characters. |
generalLedgerNo | string | No | Limited to 50 characters. |
branchNumber | string | No | Limited to 50 characters. |
employer | string | No | Limited to 50 characters. |
location | string | No | Location 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
| Parameter | Type | Description |
|---|---|---|
result | object | Result status object. |
status | string | Result status: success or failure. |
errors | object | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
Code Examples
Related Links
Last updated on