Money

Create a shop product (one_time, metered, or subscription)

post/api/v1/products

Request

  • Base URL: https://saltapp.ai
  • URL: https://saltapp.ai/api/v1/products
  • Auth: one of:
    • API key in header api-key
    • OAuth 2 (authorization code, authorization URL https://saltapp.ai/oauth2/authorize, token URL https://saltapp.ai/api/oauth2/token, scopes: money)

Request body

wallet_idstring required
namestring required
descriptionstring
kind'one_time' | 'metered' | 'subscription' required
pricestring required
unitstring

Required if kind is metered.

intervalstring

Required if kind is subscription.

activeboolean
covers_messagesboolean

Response

OK

idstring uuid required
seller_idstring uuid required
namestring required
descriptionstring nullable
kind'one_time' | 'metered' | 'subscription' required
pricestring required

A plain human-decimal amount, e.g. "1.50" -- never a float, never scientific notation.

unitstring nullable
intervalstring nullable
covers_messagesboolean
activeboolean

Changes

No recorded changes to this operation across all 3 revisions of this API.