APG PayAPG Paydocs

Marketplaces

Update marketplace fee structure

PATCH/marketplace-fee-structures/{marketplaceFeeStructureId}

Replace the rates, change who it covers, or stop earning on it. One change per call.

4 actionsMktpfeestructUpdateDisableMktpfeestructUpdateEnableMktpfeestructUpdateFeesMktpfeestructUpdateSubject

Permissions

Required permission
marketplaces:update

Requires the `update` action on `marketplaces` for the supplied runtime context

Path parameters

marketplaceFeeStructureIdstring
required

Request body

This body is a typed union. Pick a variant to see its fields and a matching example.

Discriminated by type
type = "MktpfeestructUpdateDisable"

This variant has no additional fields.

curl -X PATCH https://api.tst.au.apgpay.dev/marketplace-fee-structures/{marketplaceFeeStructureId} \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "MktpfeestructUpdateDisable"
}'

Responses

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

Discriminated by type
type = "MktpfeestructUpdateRspAttributes"

The resource as it stands after the change.

Example
{
  "type": "MktpfeestructUpdateRspAttributes",
  "updated": {
    "type": "MktpfeestructViewAttributes",
    "feeStructureId": "mktpfeestruct_9f2Kd8QpLzXw",
    "marketplaceId": "mktp_9f2Kd8QpLzXw",
    "marketplaceMerchantId": "mcht_9f2Kd8QpLzXw",
    "subMerchantId": "mcht_9f2Kd8QpLzXw",
    "fees": {
      "type": "FeesByPaymentForm",
      "fees": {
        "type": "FeeStructAttributes",
        "split": {
          "type": "FeeTableAttributes",
          "domestic": {
            "type": "FeeAttributes",
            "rate": 0.9412,
            "fixed": 1250,
            "cards": [
              {
                "type": "CardFeeAttributes",
                "cardFunding": "Credit",
                "cardBrand": "Visa",
                "rate": 0.9412,
                "fixed": 1250
              }
            ]
          },
          "international": {
            "type": "FeeAttributes",
            "rate": 0.9412,
            "fixed": 1250,
            "cards": [
              {
                "type": "CardFeeAttributes",
                "cardFunding": "Credit",
                "cardBrand": "Visa",
                "rate": 0.9412,
                "fixed": 1250
              }
            ]
          }
        },
        "full": {
          "type": "FeeTableAttributes",
          "domestic": {
            "type": "FeeAttributes",
            "rate": 0.9412,
            "fixed": 1250,
            "cards": [
              {
                "type": "CardFeeAttributes",
                "cardFunding": "Credit",
                "cardBrand": "Visa",
                "rate": 0.9412,
                "fixed": 1250
              }
            ]
          },
          "international": {
            "type": "FeeAttributes",
            "rate": 0.9412,
            "fixed": 1250,
            "cards": [
              {
                "type": "CardFeeAttributes",
                "cardFunding": "Credit",
                "cardBrand": "Visa",
                "rate": 0.9412,
                "fixed": 1250
              }
            ]
          }
        }
      }
    },
    "enabled": true,
    "createdAt": "2026-08-19T04:21:07Z",
    "updatedAt": "2026-08-19T04:21:07Z"
  }
}

Error responses