Skip to content

Marketplace Public Api

Operations Summary

Method Endpoint Description
POST /api/marketplace-public-api/check_signature/ Check signature
POST /api/marketplace-public-api/set_usage/ Set usage

Check signature

1
2
3
4
5
6
http \
  POST \
  https://api.example.com/api/marketplace-public-api/check_signature/ \
  Authorization:"Token YOUR_API_TOKEN" \
  customer="a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  data="string-value"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.service_provider_signature_request import ServiceProviderSignatureRequest # (1)
from waldur_api_client.api.marketplace_public_api import marketplace_public_api_check_signature # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = ServiceProviderSignatureRequest(
    customer="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    data="string-value"
)
response = marketplace_public_api_check_signature.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: ServiceProviderSignatureRequest
  2. API Source: marketplace_public_api_check_signature
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import { marketplacePublicApiCheckSignature } from 'waldur-js-client';

try {
  const response = await marketplacePublicApiCheckSignature({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "customer": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "data": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required
customer string (uuid)
data string
dry_run boolean

200 -

Field Type
customer string (uuid)
data string
dry_run boolean

Set usage

1
2
3
4
5
6
http \
  POST \
  https://api.example.com/api/marketplace-public-api/set_usage/ \
  Authorization:"Token YOUR_API_TOKEN" \
  customer="a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  data="string-value"
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.service_provider_signature_request import ServiceProviderSignatureRequest # (1)
from waldur_api_client.api.marketplace_public_api import marketplace_public_api_set_usage # (2)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)

body_data = ServiceProviderSignatureRequest(
    customer="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    data="string-value"
)
response = marketplace_public_api_set_usage.sync(
    client=client,
    body=body_data
)

print(response)
  1. Model Source: ServiceProviderSignatureRequest
  2. API Source: marketplace_public_api_set_usage
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import { marketplacePublicApiSetUsage } from 'waldur-js-client';

try {
  const response = await marketplacePublicApiSetUsage({
  auth: "Token YOUR_API_TOKEN",
  body: {
    "customer": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "data": "string-value"
  }
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Field Type Required
customer string (uuid)
data string
dry_run boolean

200 -

Field Type
customer string (uuid)
data string
dry_run boolean