Contents
Merchant catalog, pricing, and provider configuration
/api/applications/{application_id}/merchantsList all merchants configured for an account. Returns payment providers like Stripe, Polar, etc.
Responses
200application/json
schemaobject
dataarrayrequired
configobjectrequired
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
/api/applications/{application_id}/merchantsCreate a new merchant (payment provider) for an account. Each account can have one merchant per provider.
Bodyapplication/json
configobjectrequired
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
secretsobject
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
Responses
201application/json
schemaobject
configobjectrequired
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
409
schemaProblemDetails
/api/merchants/{merchant_id}Delete a merchant and all associated products, prices, and features. This is irreversible.
Responses
204
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
schemaProblemDetails
/api/merchants/{merchant_id}Retrieve a merchant by ID. Returns the merchant’s provider and configuration.
Responses
200application/json
schemaobject
configobjectrequired
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
schemaProblemDetails
/api/merchants/{merchant_id}Update a merchant’s configuration or secrets. Provider cannot be changed after creation.
Bodyapplication/json
configobject
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
secretsobject
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
Responses
200application/json
schemaobject
configobjectrequired
Option 1object
Option 2object
Option 3object
Option 4object
Option 5object
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
schemaProblemDetails
/api/merchants/{merchant_id}/productsList all products for a merchant. Each product can have multiple prices.
Responses
200application/json
schemaobject
dataarrayrequired
upgrades_toarray | nullrequired
downgrades_toarray | nullrequired
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
schemaProblemDetails
/api/merchants/{merchant_id}/productsCreate a new product for a merchant. Products have a unique product_key within the merchant.
Bodyapplication/json
Responses
201application/json
schemaobject
upgrades_toarray | nullrequired
downgrades_toarray | nullrequired
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
409
schemaProblemDetails
/api/merchants/{merchant_id}/products/{product_id}Update a merchant product. Fields managed by Stripe sync are immutable for Stripe merchants.
Bodyapplication/json
upgrades_toarray | null
downgrades_toarray | null
Responses
200application/json
schemaobject
upgrades_toarray | nullrequired
downgrades_toarray | nullrequired
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
409
schemaProblemDetails
/api/merchants/{merchant_id}/products/{product_id}/prices/{price_id}Update a merchant price. Fields managed by Stripe sync are immutable for Stripe merchants.
Bodyapplication/json
Responses
200application/json
schemaobject
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
409
schemaProblemDetails
/api/merchants/{merchant_id}/products/{product_id}/prices/{price_id}/features/{feature_id}Update a merchant price feature template.
Bodyapplication/json
Responses
200application/json
schemaobject
linksobjectrequired
schemaValidationProblemDetails
invalid_paramsarray
itemobjectrequired
schemaProblemDetails
409
schemaProblemDetails
/api/merchants/{merchant_id}/syncSync billing data from the merchant’s payment provider. Fetches all active subscriptions and updates local billing records.