Skip to content

reseller-pricelist ​

← All modules

2 endpoints.

POST /api/v1/reseller-pricelist/request ​

Request Pricelist

Email the reseller pricelist to the address supplied.

Always answers the same way once the input is valid — throttled, already sent, or delivered — so the endpoint cannot be used to probe which addresses have asked before.

Request body

json
{
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "company": {
      "type": "string",
      "maxLength": 160,
      "title": "Company",
      "default": ""
    },
    "website": {
      "type": "string",
      "maxLength": 200,
      "title": "Website",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "name",
    "email"
  ],
  "title": "PricelistRequest"
}

200 — Successful Response

json
{
  "additionalProperties": true,
  "type": "object",
  "title": "Response Request Pricelist Api V1 Reseller Pricelist Request Post"
}

422 — Validation Error

json
{
  "properties": {
    "detail": {
      "items": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}

POST /api/v1/reseller-pricelist/download ​

Download Pricelist

The form on www.cloudtools.co.za/reseller-pricelist-download (owner, 2026-11-02: "add a form to cloudtools.co.za to download the reseller pricelist in pdf, create a lead from the form and fill the lead source"). Records the lead on the books, then answers with the PDF itself.

The lead is committed before the render, so a render failure loses the file for a moment but never the prospect. No Customer is created: they have bought nothing. Someone who is already a customer or a lead keeps their row.

Request body

json
{
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "company": {
      "type": "string",
      "maxLength": 160,
      "title": "Company",
      "default": ""
    },
    "website": {
      "type": "string",
      "maxLength": 200,
      "title": "Website",
      "default": ""
    },
    "phone": {
      "type": "string",
      "maxLength": 32,
      "minLength": 7,
      "title": "Phone"
    }
  },
  "type": "object",
  "required": [
    "name",
    "email",
    "phone"
  ],
  "title": "PricelistDownload"
}

200 — Successful Response

json
{}

422 — Validation Error

json
{
  "properties": {
    "detail": {
      "items": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}

Lubb Business Documentation