Sub-clients Disable, Activate and Update sub-clients You can disable and activate sub-clients. Deposits sent to a disabled sub-client will no longer be booked against your balance.
Disabling a sub-client
Query Response
Copy mutation {
disableSubClient(id: "606128f24bf29139b2cf74ef") {
success
code
message
subClient {
id
status
}
}
}
Copy {
"data": {
"disableSubClient": {
"success": true,
"code": "SUCCESS",
"message": "Sub-client was successfully disabled",
"subClient": {
"id": "606128f24bf29139b2cf74ef",
"status": "DISABLED"
}
}
}
}
Activating a sub-client
Query Response
Copy mutation {
activateSubClient(id: "606128f24bf29139b2cf74ef") {
success
code
message
subClient {
id
status
}
}
}
Copy {
"data": {
"activateSubClient": {
"success": true,
"code": "SUCCESS",
"message": "Sub-client was successfully activated",
"subClient": {
"id": "606128f24bf29139b2cf74ef",
"status": "ACTIVE"
}
}
}
}
Updating sub-clients
At this point, you can update the externalId
property only because each sub-client has a set of linked domestic and international Virtual Account Numbers to send and receive funds.
Query Response
Copy mutation {
updateSubClient(
id: "660fef8e1f3b5452bd6945ec"
input: {
externalId: "my_system_id_29f-ae0978b00d09e"
}
) {
success
code
message
subClient {
id
status
externalId
}
}
}
Copy {
"data": {
"updateSubClient": {
"success": true,
"code": "SUCCESS",
"message": "Sub-client was successfully updated",
"subClient": {
"id": "660fef8e1f3b5452bd6945ec",
"status": "ACTIVE",
"externalId": "my_system_id_29f-ae0978b00d09e"
}
}
}
}