Managing Offers
Operations related to Offers, the bundles of Services that can be exchanged (free or paid) on the marketplace by Providers to Consumers.
locale
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_categories/{category_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"description": "text",
"id": "text",
"provider_id": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}
}0Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/service_categories/{category_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"description": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}{
"status": "ok",
"data": {
"description": "text",
"id": "text",
"provider_id": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/service_categories/{category_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Organisation ID
Subscriber ID
Has a signed agreement or not
Conditions ID
Keywords
Order by
First result
Max results
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/device_technical_id_registry_service_offers HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"automatic_on": "AUDIENCE_SEGMENT",
"custom": false,
"name": "text",
"provider_id": "text",
"credited_account_name": "text",
"provider_name": "text",
"credited_account_id": "text",
"id": "text",
"device_id_registries": [
{
"created_by": "text",
"default_expiration_duration": "text",
"id": "text",
"creation_ts": 0,
"drop_before_reduction": false,
"image_uri": "text",
"type": "INSTALLATION_ID",
"organisation_id": "text",
"last_modified_by": "text",
"description": "text",
"ignored_in_identity_resolution": false,
"last_modified_ts": 0,
"name": "text",
"token": "text"
}
]
}
],
"status": "ok",
"first_result": 1,
"max_results": 1,
"count": 1,
"total": 1
}The keywords to match
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_offers/{offer_id}/service_item_conditions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"first_result": 1,
"total": 1,
"max_results": 1,
"data": [
{
"fixed_value": 0,
"min_value": 0,
"percent_value": 0,
"currency": "EUR",
"id": "text",
"service_item_id": "text"
}
],
"count": 1
}Organisation ID
Subscriber ID
Has a signed agreement or not
Conditions ID
Keywords
Order by
First result
Max results
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/user_account_compartment_service_offers HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"user_account_compartments": [
{
"id": "text",
"default": false,
"organisation_id": "text",
"token": "text",
"type": "CUSTOM_COMPARTMENT_ID",
"name": "text",
"archived": false,
"image_uri": "text"
}
],
"provider_id": "text",
"provider_name": "text",
"credited_account_id": "text",
"custom": false,
"id": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"name": "text",
"credited_account_name": "text"
}
],
"max_results": 1,
"first_result": 1,
"total": 1,
"count": 1,
"status": "ok"
}The ID of the requested offer
locale
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Fields used to order the result
The keywords to match with organisations locale names
Whether to filter with archived or not
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_offers/{offer_id}/locale HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"total": 1,
"count": 1,
"max_results": 1,
"data": [
{
"locale": "fr-FR",
"id": "text",
"name": "text",
"service_item_offer_id": "text",
"description": "text"
}
],
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/service_offers/{offer_id}/locale HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"locale": "fr-FR",
"name": "text",
"description": "text"
}{
"status": "ok",
"data": {
"locale": "fr-FR",
"id": "text",
"name": "text",
"service_item_offer_id": "text",
"description": "text"
}
}locale
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_categories?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"total": 1,
"status": "ok",
"data": [
{
"description": "text",
"id": "text",
"provider_id": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}
],
"max_results": 1,
"first_result": 1
}0Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/service_categories?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"description": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}{
"status": "ok",
"data": {
"description": "text",
"id": "text",
"provider_id": "text",
"locale": "fr-FR",
"list_weight": 0,
"parent_category_id": "text",
"name": "text",
"category_subtype": {}
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/service_categories/{category_id}/locales/{locale_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_offers/{offer_id}/locale/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"locale": "fr-FR",
"id": "text",
"name": "text",
"service_item_offer_id": "text",
"description": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/service_offers/{offer_id}/locale/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"locale": "fr-FR",
"name": "text",
"description": "text"
}{
"status": "ok",
"data": {
"locale": "fr-FR",
"id": "text",
"name": "text",
"service_item_offer_id": "text",
"description": "text"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/service_offers/{offer_id}/locale/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Add an offer to an agreement
Organisation ID
Success response
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/organisations/{organisation_id}/agreements/{agreement_id}/offers/{offer_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Remove an offer from an agreement
Organisation ID
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/organisations/{organisation_id}/agreements/{agreement_id}/offers/{offer_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Organisation ID
Subscriber ID
Conditions ID
Keywords
Order by
First result
Max results
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_offers?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"status": "ok",
"total": 1,
"first_result": 1,
"data": [
{
"provider_id": "text",
"custom": false,
"name": "text",
"id": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text",
"provider_name": "text"
}
],
"count": 1
}Organisation ID
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/service_offers?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"custom": false,
"name": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text"
}{
"status": "ok",
"data": {
"provider_id": "text",
"custom": false,
"name": "text",
"id": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text",
"provider_name": "text"
}
}Organisation ID
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/organisations/{organisation_id}/agreements/{agreement_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"signed": false,
"debited_account_id": "text",
"agreement_type": "RESELLER"
}{
"status": "ok",
"data": {
"id": "text",
"signed": false,
"debited_account_id": "text",
"signing_organisation_id": "text",
"agreement_type": "RESELLER"
}
}Organisation ID
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/organisations/{organisation_id}/agreements/{agreement_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The ID of the requested service offer
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_offers/{offer_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"provider_id": "text",
"custom": false,
"name": "text",
"id": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text",
"provider_name": "text"
}
}The ID of the requested service offer
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/service_offers/{offer_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 124
{
"custom": false,
"name": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text"
}{
"status": "ok",
"data": {
"provider_id": "text",
"custom": false,
"name": "text",
"id": "text",
"automatic_on": "AUDIENCE_SEGMENT",
"credited_account_name": "text",
"credited_account_id": "text",
"provider_name": "text"
}
}Organisation ID
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/organisations/{organisation_id}/agreements HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"id": "text",
"signed": false,
"debited_account_id": "text",
"signing_organisation_id": "text",
"agreement_type": "RESELLER"
}
],
"max_results": 1,
"first_result": 1,
"total": 1,
"status": "ok",
"count": 1
}Organisation ID
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/organisations/{organisation_id}/agreements HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"signed": false,
"debited_account_id": "text",
"agreement_type": "RESELLER"
}{
"status": "ok",
"data": {
"id": "text",
"signed": false,
"debited_account_id": "text",
"signing_organisation_id": "text",
"agreement_type": "RESELLER"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/service_offers/{offer_id}/service_item_conditions/{conditions_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Remove a condition from an offer
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/service_offers/{offer_id}/service_item_conditions/{conditions_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/service_categories/{category_id}/locales HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": [
{
"locale": "fr-FR",
"service_category_id": "text",
"name": "text",
"id": "text",
"description": "text"
}
],
"total": 1,
"first_result": 1,
"max_results": 1,
"count": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/service_categories/{category_id}/locales HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"locale": "fr-FR",
"service_category_id": "text",
"name": "text",
"description": "text"
}{
"status": "ok",
"data": {
"locale": "fr-FR",
"service_category_id": "text",
"name": "text",
"id": "text",
"description": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/service_categories/{category_id}/locales HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"locale": "fr-FR",
"service_category_id": "text",
"name": "text",
"description": "text"
}{
"status": "ok",
"data": {
"locale": "fr-FR",
"service_category_id": "text",
"name": "text",
"id": "text",
"description": "text"
}
}Last updated
Was this helpful?