Account Group v2
Account Group is account link to group.
Endpoint
Method |
Desciption |
URI |
POST |
Create Account Group |
/api/v2/account_group |
DELETE |
Delete Account Group |
/api/v2/account_groups/delete_bundle |
Required Headers
Key |
Value |
Accept |
application/json |
Content-Type |
application/json |
Authorization |
Bearer {ACCESS-TOKEN} |
Create Account Group
Parameters
Method |
URI |
POST |
https://stg-console-api.malakatpay.com/api/v2/account_group |
Body
Key |
Type |
Required |
account_ids |
array [int] |
Yes |
group_id |
int |
yes |
Example :
{
"account_ids" : [1,9],
"group_id" : 10
}
Response
{success} Success code : 200
[
{
"account_id": 1,
"group_id": 10,
"updated_at": "2020-06-29 03:47:33",
"created_at": "2020-06-29 03:47:33"
},
{
"account_id": 9,
"group_id": 10,
"updated_at": "2020-06-29 03:47:33",
"created_at": "2020-06-29 03:47:33"
}
]
{info} For Error Reference, Related guide: Erros
Delete Account Group
Parameters
Method |
URI |
DELETE |
https://stg-console-api.malakatpay.com/api/v2/account_groups/delete_bundle |
Body
Key |
Type |
Required |
account_ids |
array [int] |
Yes |
group_id |
int |
yes |
Example :
{
"account_ids" : [1,9],
"group_id" : 10
}
Response
{success} Success code : 200
[]
{info} For Error Reference, Related guide: Erros