Skip to main content

UPowr Retail Offer API (1.0.0)

Download OpenAPI specification:Download

Create a new retail offer

Authorizations:
session
Request Body schema: application/json
required
name
required
string <= 40 characters

The name of the Retail Offer.

tags
Array of strings

A list of tags for filtering purposes

customerId
string

The unique identifier for the customer this Retail Offer is related to.

required
object (RetailOfferData)

This which will contain all charges and their related information (supply, usage, other, export)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "tags": [
    ],
  • "customerId": "string",
  • "data": {
    }
}

Response samples

Content type
application/json

Retail Offer created

{
  • "id": "ABC123456DE"
}

Update an existing retail offer

Authorizations:
session
path Parameters
offerId
required
string

The Retail Offer ID

Request Body schema: application/json
required
Any of
name
required
string <= 40 characters

The name of the Retail Offer.

tags
Array of strings

A list of tags for filtering purposes

customerId
string

The unique identifier for the customer this Retail Offer is related to.

object (RetailOfferData)

This which will contain all charges and their related information (supply, usage, other, export)

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "tags": [
    ],
  • "customerId": "string",
  • "data": {
    }
}

Response samples

Content type
application/json

Retail Offer actioned

{
  • "ok": true
}

Delete an existing retail offer

Authorizations:
session
path Parameters
offerId
required
string

The Retail Offer ID

Responses

Response samples

Content type
application/json

Retail Offer actioned

{
  • "ok": true
}