APG PayAPG Paydocs

Merchants

Act on merchant

POST/merchants/{merchantId}

Do something to a merchant whose effect goes beyond its fields: check and activate it, submit it for review, onboard it at the gateway, suspend it or turn its checkout off or on, or change its Apple Pay domains. Selected by the body's type. Every action reads the merchant first, under Merchants_Query, and answers with the merchant as it now stands.

6 actionsMchtCmdActivateMchtCmdActivationMchtCmdOnboardMchtCmdRegisterApplePayMchtCmdSubmitForReviewMchtCmdUnregisterApplePay

Permissions

Required permission

Required action depends on the request variant. Select a variant in the request body below to see the permission it requires.

Path parameters

merchantIdstring
required

Request body

This body is a typed union. Pick a variant to see its fields, the permission it requires, and a matching example.

Discriminated by type
type = "MchtCmdActivate"
Required permission
merchants:verify

Activate the merchant

skipUboEntrybooleanrequired

Whether to activate without a complete ultimate-beneficial-owner record. Required, not defaulted: skipping UBO entry is a compliance decision and the platform records who asked for it.

Example true

curl -X POST https://api.tst.au.apgpay.dev/merchants/{merchantId} \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "MchtCmdActivate",
  "skipUboEntry": true
}'

Responses

The response is a tagged shape: type is always "MchtUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "MchtUpdateRspAttributes"

The resource as it stands after the change.

Example
{
  "type": "MchtUpdateRspAttributes",
  "updated": {
    "type": "MchtViewStandard",
    "merchantId": "mcht_9f2Kd8QpLzXw",
    "organisationId": "org_9f2Kd8QpLzXw",
    "referenceMerchantId": "your-own-reference",
    "slug": "string",
    "status": "Onboarding",
    "verification": {
      "type": "MchtVerificationAttributes",
      "status": "Pending",
      "errorCodes": [
        "string"
      ],
      "details": [
        "string"
      ]
    },
    "business": {
      "type": "MchtBusinessAttributes",
      "legalName": "Ada Lovelace",
      "brandName": "Ada Lovelace",
      "businessRegistrationNumber": "string",
      "taxRegistrationNumber": "string",
      "country": "AU",
      "website": "string",
      "contactEmail": "ada@example.com"
    },
    "timeZone": "string",
    "publicProfile": {
      "type": "MchtPublicProfileAttributes",
      "brandName": "Ada Lovelace",
      "cardStatementName": "Ada Lovelace",
      "smsSenderName": "Ada Lovelace",
      "website": "string",
      "supportSite": "string"
    },
    "contact": {
      "type": "MchtContactAttributes",
      "firstName": "Ada Lovelace",
      "lastName": "Ada Lovelace",
      "title": "string",
      "contactEmail": "ada@example.com",
      "supportEmail": "ada@example.com",
      "phoneNumber": "+61400000000",
      "address": {
        "type": "MchtAddressAttributes",
        "unitNumber": "string",
        "streetNumber": "string",
        "streetName": "Ada Lovelace",
        "streetType": "string",
        "suburb": "string",
        "city": "string",
        "state": "string",
        "postalCode": "3000",
        "country": "AU"
      }
    },
    "payoutSettings": {
      "type": "MchtPayoutSettingsAttributes",
      "schedule": "Daily",
      "dayOfWeek": "string",
      "dayOfMonth": 6,
      "delayDays": 1250,
      "statementDescriptor": "ADA COFFEE",
      "payoutsEnabled": true,
      "automatedPayoutsEnabled": true,
      "automatedDisbursementsEnabled": true,
      "notificationEmails": [
        "ada@example.com"
      ],
      "remitterName": "Ada Lovelace"
    },
    "billingSettings": {
      "type": "MchtBillingSettingsAttributes",
      "notificationEmails": [
        "ada@example.com"
      ],
      "notificationsEnabled": true,
      "address": {
        "type": "MchtAddressAttributes",
        "unitNumber": "string",
        "streetNumber": "string",
        "streetName": "Ada Lovelace",
        "streetType": "string",
        "suburb": "string",
        "city": "string",
        "state": "string",
        "postalCode": "3000",
        "country": "AU"
      },
      "paymentSourceId": "psrc_9f2Kd8QpLzXw"
    },
    "branding": {
      "type": "MchtBrandingAttributes",
      "logoFileId": "lfile_9f2Kd8QpLzXw",
      "iconFileId": "lfile_9f2Kd8QpLzXw",
      "logoAltText": "string",
      "brandColour": "string"
    },
    "orderSettings": {
      "type": "MchtOrderSettingsAttributes",
      "customFields": [
        {
          "type": "MchtOrderCustomFieldAttributes",
          "key": "string",
          "label": "string",
          "required": true,
          "visibleToPayer": true
        }
      ],
      "notificationEmails": [
        "ada@example.com"
      ],
      "notifyOnPaid": true
    },
    "sourceRules": [
      {
        "type": "MchtRuleAttributes",
        "criterion": {
          "type": "MchtRuleAlways"
        },
        "actions": [
          {
            "type": "MchtRuleAllow"
          }
        ]
      }
    ],
    "usageRules": {
      "type": "MchtUsageRulesAttributes",
      "currencies": {
        "type": "MchtCurrencyAllow",
        "currencies": [
          "AUD"
        ]
      },
      "issuerCountries": {
        "type": "MchtIssuerCountryAllow",
        "countries": [
          "AU"
        ]
      }
    },
    "riskSettings": {
      "type": "MchtRiskSettingsAttributes",
      "settlementType": "Net",
      "bankAccountVerificationRequired": true,
      "bankAccountVerification": {
        "type": "MchtVerificationPolicyAttributes",
        "accept": [
          "Match"
        ],
        "includeResultInResponse": true
      },
      "sourceVerificationEnabled": true,
      "supportedCustomerTypes": [
        "Consumer"
      ],
      "paymentLimits": {
        "type": "MchtPaymentLimitsAttributes",
        "currency": "AUD",
        "minimumPaymentAmount": 1250,
        "maximumPaymentAmount": 1250
      },
      "disputesWaived": true,
      "payoutPriority": 10,
      "showPlatformLogoInTerms": true,
      "showSavedPaymentMethodsInCheckout": true,
      "showReferenceOrderIdToCustomer": true,
      "emailPaymentReceipt": true,
      "emailPaymentFailure": true
    },
    "bankAccounts": [
      {
        "type": "MchtBankAccountAttributes",
        "externalAccountId": "xacc_9f2Kd8QpLzXw",
        "accountName": "Ada Lovelace",
        "last4": "4242",
        "currency": "AUD",
        "isPrimary": true,
        "status": "Active",
        "verificationStatus": "Active"
      }
    ],
    "capabilityTags": [
      "DirectDebit"
    ],
    "createdAt": "2026-08-19T04:21:07Z",
    "updatedAt": "2026-08-19T04:21:07Z"
  }
}

Error responses