This guide uses basic authentication for the walkthrough. DVM supports other authentication options, which can be agreed during onboarding.
What you will build
In this guide, you will simulate a consumer taking a subscription offer for Bango Music in the DVM Sandbox. This is two-party testing: your Reseller integration connects to DVM using a Bango test Content Provider. The guide covers:Offer discovery
Retrieve the available offers from the your Offer catalog in DVM.
Provisioning an offer
Create a consumer offer to simulate a reseller purchase flow.
Provisioning the entitlement
Confirm that DVM creates a pending entitlement for the consumer.
Back Office verification
Verify the flow using Dashboard and Care.
Before you start
You need:- DVM API credentials for the Sandbox integration
- Access to Postman, or another API testing tool.
- (optionally) have the DVM postman collection to get started quicker.
- DVM user access to your Partner in the Sandbox environment to track performance.
Request sandbox access
Submit the sandbox access request form to begin onboarding.
Open API documentation
Use the DVM API documentation while testing the flow.
Go to Sandbox for more information.
Quick start bundle use cases
The DVM Sandbox can be used to test core subscription bundling flows. This guide describes the minimum needed to build your first bundle- Discover your catalog of products and offers
- Provision an offer for a consumer
- Retrieve activation URL for consumer to activate entitlement
- Activating the entitlement is handled by the content provider
- Cancel at the end of the billing period
- Track performance
- Care for consumers
DVM recommends OAuth as the authentication mechanism. This guide uses Basic Authentication purely for example and speed purposes in the sandbox.
Step-by-step guide
In this example, the following example values are usedView your DVM catalog of offers
Confirm access to your Partner in Sandbox
Request access to the DVM Sandbox if you have not already done so.
Import the sample collection
Import the DVM Postman collection into your workspace.Configure the username and password environment variables for your sandbox API credentials.Confirm the collection is pointing to the correct sandbox endpoint.
You can use another API testing tool if you do not use Postman.Contact support@bango.com if you wish to use the Postman collection
View available offers
Use the Offer API to confirm the credentials are working and retrieve the offers available to your Partner in Sandbox.Example request:Your Sandbox setup includes the Bango Music product and a simple offer. In the example flow, the offer is a forever-free subscription to Bango Music Premium.Use the response to identify the
offerId needed for the next step.Example response (simplified to show important information only):Provision an offer for a consumer
When a consumer chooses an offer, the reseller sends a request to the Consumer offers API. DVM then orchestrates the downstream actions needed to create the subscription. At a high level, DVM:- Accepts the consumer offer request asynchronously
- Creates the consumer offer
- Creates the related entitlement in a pending state
- Sends the entitlement creation request to the content provider
- Returns enough information for the reseller to continue the consumer journey
Go to provision an offer for a consumer for more details on this use case.
Create a consumer offer
Use the Consumer Offers API to simulate a consumer choosing the offer.Example request:Example body:A successful request returns an HTTP DVM has orchestrated the provision of the entitlements and begun the plan lifecycle in the background in this single request.
202 Accepted response. The response is again simplified for example purposes.You have achieved the outcome and provisioned an offer for a consumer.
Activating the entitlement in the offer
This step also covers the outcome activating the entitlement, as this is handled by the content provider, which happens automatically with Bango Music.Check consumer offer provisioning status
Use the Check that the response includes the consumer offer, the related entitlement, and activation information.
consumerOfferIdentifier from the create response to retrieve the consumer offer.Example request:Simulate consumer experience by activating entitlement
Open the activationUrl returned in checking the status the consumer offer provisioning step. This URL redirect the consumer to the content provider site to activate.
With Bango Music, there is no activation form to fill in, this step happens automatically.

You have achieved the outcome of activating an entitlement for a consumer.
Verify in DVM by tracking the performance of the offer
Sign in to DVM your user credentials.Check the Dashboard metrics and confirm that a new pending entitlement has been created.
Tracking performance in DVM provides near-real-time operational visibility. Depending on the environment, you may need to wait up to 30 minutes for the request to appear.
Verify in entitlement DVM Supporting consumers
Already signed into DVM, open Supporting consumers.Search using the
entitlementIdentifier returned by the Consumer Offer API.Confirm that:- The entitlement exists
- The entitlement is linked to the expected consumer
- The entitlement is for the expected product
- The entitlement state is
ACTIVE
Supporting consumers in DVM provides near-real-time operational visibility. Depending on the environment, you may need to wait up to 30 minutes for the request to appear.
You have achieved the outcomes of tracking the performance and resolving consumer issue.
Cancel the consumer offer
The most common cancel scenario to support for your consumers is the end of term cancelation. This will allow your consumer to maintain access to the product or service until the end of the current period or phase (collectively known as the term).You have achieved the outcome of setting the consumer’s entitlement to cancel at the end of the current term.
Verification checklist
Use this checklist to confirm the outcomes are all achieved and working correctly.What happens next
You have now built your first subscription bundle and you’ve built the minimum needed to launch some real offers to your consumers! Once the required flows have been tested, follow the DVM testing path and complete any testing or certification activities agreed with Bango before moving toward production.Outcome
Using DVM Sandbox helps resellers and content providers test integration quality before launch. The main benefits are:Faster launch
Validate core flows earlier and reduce integration delays.
Higher reliability
Catch issues before they affect consumers.
More confidence
Prove the integration before moving to production traffic.

