GET /api-v1/billing/billing-plan-with-price

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • billingPlan array[object]
      Hide billingPlan attributes Show billingPlan attributes object
      • id integer
      • contactId integer
      • billingUnitAmount integer
      • availableBillingUnitsAmount integer
      • billingUnitType string

        Values are ORGANIZATION, EMPLOYEE, or PERSON.

    • price number
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/billing/billing-plan-with-price
curl \
 --request GET 'https://wyzio.app/api-v1/billing/billing-plan-with-price' \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
{
  "billingPlan": [
    {
      "id": 42,
      "contactId": 42,
      "billingUnitAmount": 42,
      "availableBillingUnitsAmount": 42,
      "billingUnitType": "ORGANIZATION"
    }
  ],
  "price": 42.0
}