Update enterprise
/enterprises/{enterpriseId}Add or replace a public encryption key for the enterprise, give or replace its registration, set its branding, or set the hosts it serves. One operation per request. An enterprise's own credential may do all but the last for its own enterprise; claiming hosts is the platform's alone.
EntUpdateBrandingEntUpdateEncryptionKeyEntUpdateRegistrationEntUpdateSitesPermissions
enterprises:updateRequires the `update` action on `enterprises` for the supplied runtime context
Path parameters
enterpriseIdstringRequest body
This body is a typed union. Pick a variant to see its fields and a matching example.
typetype = "EntUpdateBranding"How an enterprise's sites look, and what the dashboards beneath it fall back to where a merchant or marketplace sets nothing of its own. Every field is optional.
typeenumrequiredEntBrandingAttributesdisplayNamestringThe product's name as a reader sees it.
Example Ada Lovelace
companyNamestringThe company behind it.
Example Ada Lovelace
supportEmailstringWhere a reader writes for help.
Example ada@example.com
websitestringThe brand's website. Must be an https link.
logoUristringThe logo. Must be an https link.
Example https://example.com/callback
logoDarkUristringThe logo on a dark background. Omit to use the one logo on both. Must be an https link.
Example https://example.com/callback
iconUristringThe square mark used where a logo will not fit. Must be an https link.
Example https://example.com/callback
logoAltTextstringText shown in place of the logo where the image cannot load.
primaryColorstringThe brand colour.
primaryColorDarkstringThe brand colour in dark mode. Omit to use the one colour in both.
curl -X PATCH https://api.tst.au.apgpay.dev/enterprises/{enterpriseId} \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "EntUpdateBranding",
"branding": {
"type": "EntBrandingAttributes",
"displayName": "Ada Lovelace",
"companyName": "Ada Lovelace",
"supportEmail": "ada@example.com",
"website": "string",
"logoUri": "https://example.com/callback",
"logoDarkUri": "https://example.com/callback",
"iconUri": "https://example.com/callback",
"logoAltText": "string",
"primaryColor": "string",
"primaryColorDark": "string"
}
}'Responses
The response is a tagged shape: type is always "EntUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.
typetype = "EntUpdateRspAttributes"The resource as it stands after the change.
typeenumrequiredEntViewAttributesenterpriseIdEntIdrequiredIdentifier of an enterprise.
Example ent_9f2Kd8QpLzXw
slugstringrequiredURL-safe identifier. Unique across the platform.
businessNamestringrequiredRegistered name of the business holding the contract.
Example Ada Lovelace
statusEntStatusrequiredEnabledDisabledUnknownwebsitestringrequiredcompanyEmailstringrequiredWhere the platform writes when it needs a person.
Example ada@example.com
companyPhonestringrequiredE.164 format, e.g. +61400000000.
Example +61400000000
encryptionKeyNamesarray of stringNames of the public keys the platform encrypts card data to for this enterprise. The keys themselves are never returned only that they are configured, and under what name.
Example Ada Lovelace
The registration the enterprise holds the contract under, once it has been given.
typeenumrequiredEntRegistrationAttributescountrystringrequiredISO 3166-1 alpha-2. The country the business is registered in.
Example AU
businessRegistrationNumberstringrequiredThe business registration number: the ABN in Australia, the NZBN in New Zealand.
taxRegistrationNumberstringThe tax registration number, where it differs: the IRD number in New Zealand. Not read in Australia, where the ABN is both.
The registered office, as the business register records it.
typeenumrequiredMchtAddressAttributesunitNumberstringUnit, shop or level, as written on the building. Free text, 12, Shop 4, Level 3. Omit where there is none.
streetNumberstringrequiredStreet number, including any range or letter, 34, 34A, 34-36.
streetNamestringrequiredStreet name, without the type, Smith, not Smith Street.
Example Ada Lovelace
streetTypestringStreet, Road, Avenue. Optional because not every address has one.
suburbstringSuburb. This is where Australia and South Africa keep what other countries call the city.
citystringCity. Required in New Zealand. In Australia and South Africa send suburb instead, the platform moves whichever you send to where that country keeps it.
statestringState, province or territory. Required in Australia.
postalCodestringrequiredExample 3000
countrystringrequiredISO 3166-1 alpha-2.
Example AU
How this enterprise's sites and the dashboards beneath it look. Absent where it has set none.
typeenumrequiredEntBrandingAttributesdisplayNamestringThe product's name as a reader sees it.
Example Ada Lovelace
companyNamestringThe company behind it.
Example Ada Lovelace
supportEmailstringWhere a reader writes for help.
Example ada@example.com
websitestringThe brand's website. Must be an https link.
logoUristringThe logo. Must be an https link.
Example https://example.com/callback
logoDarkUristringThe logo on a dark background. Omit to use the one logo on both. Must be an https link.
Example https://example.com/callback
iconUristringThe square mark used where a logo will not fit. Must be an https link.
Example https://example.com/callback
logoAltTextstringText shown in place of the logo where the image cannot load.
primaryColorstringThe brand colour.
primaryColorDarkstringThe brand colour in dark mode. Omit to use the one colour in both.
The hosts this enterprise serves, one site each. Empty where it serves none.
typeenumrequiredEntSiteAttributesdomainstringrequiredThe host, e.g. docs.example.com: no scheme, port or path. Stored lower-cased. A host belongs to one enterprise, and claiming one another serves is refused.
typeA dashboard.
A dashboard.
A documentation site: one published API surface, the parts of it this host publishes, and the guides beside it. With guideTags and guides both empty, every guide on the surface is shown.
apiSurfaceEntDocsSurfacerequiredEdgeBezelUnknownapiTagsarray of stringThe OpenAPI tags of the surface this host publishes, as its reference names them. Empty publishes all of it. An unknown tag is refused.
guideTagsarray of stringGuides on the surface in any of these domains are shown: Payments, Refunds, Customers, Merchants, Marketplaces, Identity, Settlement, Loans, Card issuing, FX, PayTo, Reference, Integration.
guidesarray of stringGuides shown by slug, besides those guideTags selects. Each must be a guide on the surface.
createdAtstring (date-time)requiredExample 2026-08-19T04:21:07Z
updatedAtstring (date-time)requiredExample 2026-08-19T04:21:07Z
{
"type": "EntUpdateRspAttributes",
"updated": {
"type": "EntViewAttributes",
"enterpriseId": "ent_9f2Kd8QpLzXw",
"slug": "string",
"businessName": "Ada Lovelace",
"status": "Enabled",
"website": "string",
"companyEmail": "ada@example.com",
"companyPhone": "+61400000000",
"encryptionKeyNames": [
"Ada Lovelace"
],
"registration": {
"type": "EntRegistrationAttributes",
"country": "AU",
"businessRegistrationNumber": "string",
"taxRegistrationNumber": "string",
"registeredAddress": {
"type": "MchtAddressAttributes",
"unitNumber": "string",
"streetNumber": "string",
"streetName": "Ada Lovelace",
"streetType": "string",
"suburb": "string",
"city": "string",
"state": "string",
"postalCode": "3000",
"country": "AU"
}
},
"branding": {
"type": "EntBrandingAttributes",
"displayName": "Ada Lovelace",
"companyName": "Ada Lovelace",
"supportEmail": "ada@example.com",
"website": "string",
"logoUri": "https://example.com/callback",
"logoDarkUri": "https://example.com/callback",
"iconUri": "https://example.com/callback",
"logoAltText": "string",
"primaryColor": "string",
"primaryColorDark": "string"
},
"sites": [
{
"type": "EntSiteAttributes",
"domain": "string",
"app": {
"type": "EntSiteAppDashboard"
}
}
],
"createdAt": "2026-08-19T04:21:07Z",
"updatedAt": "2026-08-19T04:21:07Z"
}
}Error responses
statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}statusCodeinteger (int32)requiredHTTP status code for this error
errorCodestringrequiredAn APG Pay code providing a brief explanation of the underlying error. Use this if you wish to provide custom behaviour based on the error type.
messagestringrequiredHuman readable description of the error
tracerstringAn unique identifier for the request. Provide this to the support team if you wish to query a particular error.
detailstringOptional additional details for the error.
errorTypeDescriptionstringA description of the category of errors for the given statusCode.
metadataobjectOptional key value list of metadata
{
"statusCode": 100,
"errorCode": "string",
"message": "string",
"tracer": "string",
"detail": "string",
"errorTypeDescription": "string"
}