Backend API
Create a new promotion use.
Arguments
parent_idobjectIdrequired
Unique identifier of the parent promotion.
idobjectId
ID of the promotion use.
order_idobjectId
Unique identifier for the order that the promotion use is applied to.
subscription_idobjectId
ID of the subscription plan.
account_idobjectId
ID of the account connected to the promotion use.
date_createddate
Date and time the promotion use was created.
date_updateddate
Date and time the promotion use was last updated.
orderOrder
parentPromotion
subscriptionSubscription
POST/promotions:uses
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.post('/promotions:uses', {
order_id: '62bf11bb4b738e00141c51d6'
});The promotion use model
{
"parent_id": "6285746dd0fc72001a6a2f4e",
"account_id": "628fb3c90f42a10014f04787",
"order_id": "62a09d0317f83f001975b491",
"date_created": "2022-06-08T13:08:10.445Z",
"id": "62a09f3a17f83f001975b4d1"
},