BusinessAccount_Update
#
Description#
This function updates a business account.
Request Parameters#
Parameter |
Type | Description |
---|---|---|
businessaccount_id edit_businessaccount businessaccount_title |
Number String String |
The business id updated account The business name for the updated account The business name for the updated account |
businessaccount_title |
String | The business name for the account being updated. |
businessaccount_tax_exempt |
Boolean | Boolean value indicating if the business is tax exempt. |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
Number | 1 indicating a successful request. 0 indicating an unsuccessful request. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "BusinessAccount_Update",
"BusinessAccount_ID": 2,
"BusinessAccount_Title": "TestBusiness2",
"BusinessAccount_Tax_Exempt": 0
}
Example Response#
{
"success": 1
}
Error Responses#
Error Code | Error Message | Error Description |
---|---|---|
MER-JSN-00024 | Missing required parameter Function | Missing required parameter Function |
MER-JSN-00018 | Invalid value for field ‘BusinessAccount_Title’: Business account ‘Test_Business2’ already exists | Business account name already exists |