Skip to main content
POST
/
v1
/
public
/
meters
Create Meter
curl --request POST \
  --url https://api.sanka.com/v1/public/meters \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "contactId": "<string>",
  "contactExternalId": "<string>",
  "companyId": "<string>",
  "companyExternalId": "<string>",
  "itemId": "<string>",
  "itemExternalId": "<string>",
  "subscriptionId": "<string>",
  "subscriptionExternalId": "<string>",
  "usage": 123,
  "usageStatus": "<string>",
  "usageAt": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "meter_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
externalId
string | null
contactId
string | null
contactExternalId
string | null
companyId
string | null
companyExternalId
string | null
itemId
string | null
itemExternalId
string | null
subscriptionId
string | null
subscriptionExternalId
string | null
usage
number | null
usageStatus
string | null
usageAt
string | null

Response

OK

ok
boolean
required
status
string
required
external_id
string | null
meter_id
string | null
ctx_id
string | null