Adding items
Last updated
Last updated
The instructions below provide the details for adding items using the API. You can also add an item via the Company Dashboard by going to the Subscriptions page and clicking "Add a subscription", or going to the one-time payments page and clicking "Create a one-time payment".
The name of the item
The Professional Plan
The amount of the item, denoted in USD. Setting the value to 0 means the item's price is variable rate, and the price will be displayed as "Price varies" on the checkout page
29.99
The frequency with which to charge the item. Valid values: [HOUR, DAY, WEEK, MONTH, YEAR]
WEEK
The frequency count with which to charge the item. Used in combination with frequency e.g. every 2 weeks, every 1 month. A frequency count of 0 denotes a one time payment
2
A hash where the keys are the networkIds and the values are arrays of token addresses for each of the network (see example below). The token addresses will be a subset of the initial tokens accepted as payment specified per network. If omitted, the full list of tokens will be used that was defined when the contract was deployed to a particular network
The ID of the entity. Found on your company dashboard
4d1f3191-935b-40c5-b91e-37e1e3700bac
External subscription ID if applicable. E.g Stripe Subscription ID
orbf9e15-e54b-11ec-b21b-06d24995f946
True means agreements can still be made with this item.
true
Optional details related to the payment amount displayed in the cart on the hosted payment page
Increases to $200 after 2 weeks
Classification of the item. See the GET call to get the most current list
1
The merchant category code (also known as an MCC) ID
10
Defaults to false. If true, then invoices will be automatically generated via the auto-invoicing feature. Delegated signing must be turned on for the entity and an inbound treasury wallet. Please contact Loop (support@loopcrypto.xyz) to have these enabled
false
Specified in days. Says when the first invoice should be created relative to the date/time of the Item's creation
1