post https://restapi.ordergroove.com/products//resource_grants/manage/
This API allows you to take an existing standard product and configure it into a valid digital plan product or to manage an existing configuration.
Authentication
How to manage a digital plan product using this API
- Choose an existing Standard or Plan Product, if you don’t have one yet you will need to create one before you proceed with this configuration.
- Decide which resource_grants you want to add, update or delete:
- resource_grants determine how much of a given resource will be credited to a customer
- resources must already exist (please see: https://developer.ordergroove.com/reference/resource-create)
- currently only time_amounts can be granted, and are configured in terms of seconds
- there must always be at least one valid resource_grant for a digital plan product configuration
- Hit our API with your configuration, and your digital plan product setup is complete!
- the product will be associated with the resource grants as defined
- the product will now be of type: plan
Response Body Definitions
Name | Type | Description | Example |
---|---|---|---|
array of objects | Array of object that reflect the current rotation configurations | see below |
[
{
"resource": "c84a13fc8e904e0f80e6377b15f0464a",
"product": "53485191069987",
"public_id": "c0de05637e6e4828b8dc60cf1dc7af6f",
"time_amount": 2592000,
"created": "2025-05-28 13:56:05",
"last_updated": "2025-05-29 16:46:20"
},
{
"resource": "DSHUIGsgshuigsg80e89gffgh977758",
"product": "53485191069987",
"public_id": "7o8gh87fsf7dh87dhd7d988006ajjklf",
"time_amount": 2592000,
"created": "2025-05-28 13:56:05",
"last_updated": "2025-06-09 20:12:43"
}
]
To get the all the resource grants from the digital plan product use get product or list product endpoints with
?include_product_resource_grants=true
as a query param