Skip to content

Business Hierarchy

Retrieve a business by its globally unique reference.

GET /v1/merchant/admin/business/{businessReference}

Auth: API key (VantagePayAdminClient).

Parameters

NameInRequiredDescription
businessReferencepathYesThe globally unique reference of the business to retrieve.

Responses

StatusDescription
200The request was successful and the business was returned.
400The request failed validation, the error object will contain further information.
401The authorization information provided is not valid, authentication is required to access this resource.
403The authorization header does not contain the correct type or you do not have access to this resource.
404The business with the specified reference was not found.
422The request payload is invalid, the error object will contain further information.
429Too many requests are being sent concurrently or rate limiting has taken effect.
500An unexpected error occurred, the error object will contain further information.

Response body

FieldTypeRequiredDescription
successbooleanNoGets a value indicating whether the operation was successful.
resultobjectNoThe legal business entity associated with a merchant, used for KYB verification and settlement.
json
{
  "success": true,
  "result": {
    "reference": "00000000-0000-0000-0000-000000000000",
    "parentBusinessReference": "00000000-0000-0000-0000-000000000000",
    "createdDate": "string",
    "yourReference": "string",
    "source": "string",
    "name": "string",
    "emailAddress": "string",
    "mobileNumber": "string",
    "phoneNumber": "string",
    "isEmailVerified": true,
    "isMobileNumberVerified": true,
    "isActive": true
  }
}

Code samples

WARNING

The JavaScript SDK does not cover admin APIs - use the .NET SDK.

csharp
var business = await adminClient.Merchants.GetBusinessAsync(Guid.Parse("7f8e9d0c-1a2b-4c3d-9e8f-0a1b2c3d4e5f"));

Retrieve the full business hierarchy for the specified business reference.

GET /v1/merchant/admin/business/hierarchy/{businessReference}

Auth: API key (VantagePayAdminClient).

Parameters

NameInRequiredDescription
businessReferencepathYesThe globally unique reference of the business whose hierarchy to retrieve.

Responses

StatusDescription
200The request was successful and the business hierarchy was returned.
400The request failed validation, the error object will contain further information.
401The authorization information provided is not valid, authentication is required to access this resource.
403The authorization header does not contain the correct type or you do not have access to this resource.
404The business with the specified reference was not found.
422The request payload is invalid, the error object will contain further information.
429Too many requests are being sent concurrently or rate limiting has taken effect.
500An unexpected error occurred, the error object will contain further information.

Response body

FieldTypeRequiredDescription
successbooleanNoGets a value indicating whether the operation was successful.
resultobjectNoRepresents a node in a merchant business hierarchy, containing the business identity and its nested sub-businesses and directly-owned merchants.
json
{
  "success": true,
  "result": {
    "subBusinesses": [],
    "merchants": [],
    "name": "string",
    "reference": "00000000-0000-0000-0000-000000000000",
    "externalReference": "string",
    "isActive": true
  }
}

Code samples

WARNING

The JavaScript SDK does not cover admin APIs - use the .NET SDK.

csharp
var hierarchy = await adminClient.Merchants.GetBusinessHierarchyAsync(Guid.Parse("7f8e9d0c-1a2b-4c3d-9e8f-0a1b2c3d4e5f"));

Payments for Africa