Skip to main content

addSurchargesToProduct

Associate surcharges with a specific product.

Links one or more surcharges to a product, enabling additional fees to be applied during pricing calculations and order processing. The associations take effect immediately.

Possible errors:

  • FORBIDDEN: Insufficient permissions to modify product surcharges
  • NOT_FOUND_SURCHARGE_ERROR: One or more surcharges with the provided IDs were not found
  • ADD_SURCHARGE_TO_PRODUCT_ERROR: Database insertion failures or general errors while creating product-surcharge associations

AUTH: Role=[pricing.OWNER,pricing.EDITOR]

addSurchargesToProduct(
input: AddSurchargesToProductInput!
): ConfirmationResponse!

Arguments

addSurchargesToProduct.input ● AddSurchargesToProductInput! non-null input

Product and surcharge association data.

Contains the product ID and list of surcharge IDs to associate with the product for pricing calculations.

Type

ConfirmationResponse object

Response confirming the successful completion of an operation.

Provides status information and descriptive messages for operations that modify surcharge data or associations.