Skip to main content
POST
Batch Apply Submerchant Markup

Batch Apply Submerchant Markup

Use this endpoint to apply the same markup configuration to up to 500 submerchants in one request. Each submerchant is processed on its own. If one of them fails, the others are still saved, and the response reports the result for each submerchant.
The configuration is replaced for each submerchant. Like Configure Submerchant Markup, each listed submerchant keeps only the items sent in markups. Any product and payment method you leave out goes back to the global markup.

Path Parameters

integer
required
ID of the merchant (parent account). It must be one of the authenticated user’s companies.

Request Body

array[integer]
required
IDs of the submerchants that will receive the markup. Send between 1 and 500 IDs. Duplicate IDs are ignored.
array[object]
required
Markup configurations to apply. Same fields and rules as the markups field of Configure Submerchant Markup.

Request Examples

Response

The response is 200 OK even when some submerchants fail. Check failed and results to find them.
integer
Number of submerchants processed.
integer
Number of submerchants saved.
integer
Number of submerchants that failed.
array[object]
Result for each submerchant.

List Submerchant Markups

Find the submerchants to update

Configure Submerchant Markup

Set the markup of a single submerchant