Skip to main content
Contents

Reseller

Customer accounts of a reseller organization and their usage.

Examples marked as generated are built from the schema with synthetic values.

GET/api/v2/reseller/customers

List customers

Returns the customer accounts of your reseller organization.

Authentication
API token or portal session
Required permission
tenant.customers_read

Parameters

Parameters listCustomers
NameInTypeRequiredRules
limitQueryintegerNo
  • Minimum 1
  • Maximum 200
  • Default: 50
cursorQuerystringNo
  • At most 512 characters

Responses

  • 200OKapplication/json

    Fields (13)
    Responses listCustomers 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].idstringYes
    data[].typestringYes
    • One of: platform, reseller, customer
    data[].namestringYes
    data[].statusstringYes
    data[].default_localestringYes
    • One of: en, es
    data[].timezonestringYes
    data[].accounting_refstringYes
    • Can be null
    data[].created_atstringYes
    • Format: date-time
    data[].updated_atstringYes
    • Format: date-time
    paginationobjectYes
    pagination.next_cursorstringYes
    • Can be null
    pagination.has_morebooleanYes
    Example (generated from the schema)
    {
      "data": [
        {
          "id": "id_example",
          "type": "platform",
          "name": "Example",
          "status": "string",
          "default_locale": "en",
          "timezone": "UTC",
          "accounting_ref": "string",
          "created_at": "2026-01-15T10:00:00Z",
          "updated_at": "2026-01-15T10:00:00Z"
        }
      ],
      "pagination": {
        "next_cursor": "string",
        "has_more": false
      }
    }
  • 400Bad requestapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/malformed_request",
      "title": "Malformed request",
      "status": 400,
      "code": "malformed_request",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 401Unauthorizedapplication/problem+json

    Headers: WWW-Authenticate

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/unauthenticated",
      "title": "Authentication required",
      "status": 401,
      "code": "unauthenticated",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 403Forbiddenapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/insufficient_scope",
      "title": "Insufficient permissions",
      "status": 403,
      "code": "insufficient_scope",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
curl
curl 'https://api.cdnify.lat/api/v2/reseller/customers' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/reseller/customers

Create a customer

Creates a customer account under your reseller organization.

Authentication
API token or portal session
Required permission
tenant.customers_manage

Parameters

Parameters createCustomer
NameInTypeRequiredRules
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Request body

Content types: application/json

Request body createCustomer
FieldTypeRequiredRules
namestringYes
  • At most 120 characters
default_localestringNo
  • One of: en, es
timezonestringNo
accounting_refstringNo
  • At most 120 characters
Example (generated from the schema)
{
  "name": "Example",
  "default_locale": "en",
  "timezone": "Europe/Madrid",
  "accounting_ref": "string"
}

Responses

  • 201Createdapplication/json

    Headers: Location

    Fields (9)
    Responses createCustomer 201
    FieldTypeRequiredRules
    idstringYes
    typestringYes
    • One of: platform, reseller, customer
    namestringYes
    statusstringYes
    default_localestringYes
    • One of: en, es
    timezonestringYes
    accounting_refstringYes
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    Example (generated from the schema)
    {
      "id": "id_example",
      "type": "platform",
      "name": "Example",
      "status": "string",
      "default_locale": "en",
      "timezone": "UTC",
      "accounting_ref": "string",
      "created_at": "2026-01-15T10:00:00Z",
      "updated_at": "2026-01-15T10:00:00Z"
    }
  • 401Unauthorizedapplication/problem+json

    Headers: WWW-Authenticate

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/unauthenticated",
      "title": "Authentication required",
      "status": 401,
      "code": "unauthenticated",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 403Forbiddenapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/insufficient_scope",
      "title": "Insufficient permissions",
      "status": 403,
      "code": "insufficient_scope",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 409Conflictapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/alias_in_use",
      "title": "Site name already in use",
      "status": 409,
      "code": "alias_in_use",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 422Unprocessable contentapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/validation_failed",
      "title": "Validation failed",
      "status": 422,
      "code": "validation_failed",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
curl
curl -X POST 'https://api.cdnify.lat/api/v2/reseller/customers' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example","default_locale":"en","timezone":"Europe/Madrid","accounting_ref":"string"}'
GET/api/v2/reseller/customers/{customer_id}

Get a customer

Returns one customer account of your reseller organization.

Authentication
API token or portal session
Required permission
tenant.customers_read

Parameters

Parameters getCustomer
NameInTypeRequiredRules
customer_idPathstringYes

Responses

  • 200OKapplication/json

    Fields (9)
    Responses getCustomer 200
    FieldTypeRequiredRules
    idstringYes
    typestringYes
    • One of: platform, reseller, customer
    namestringYes
    statusstringYes
    default_localestringYes
    • One of: en, es
    timezonestringYes
    accounting_refstringYes
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    Example (generated from the schema)
    {
      "id": "id_example",
      "type": "platform",
      "name": "Example",
      "status": "string",
      "default_locale": "en",
      "timezone": "UTC",
      "accounting_ref": "string",
      "created_at": "2026-01-15T10:00:00Z",
      "updated_at": "2026-01-15T10:00:00Z"
    }
  • 401Unauthorizedapplication/problem+json

    Headers: WWW-Authenticate

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/unauthenticated",
      "title": "Authentication required",
      "status": 401,
      "code": "unauthenticated",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 404Not foundapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/not_found",
      "title": "Not found",
      "status": 404,
      "code": "not_found",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
curl
curl 'https://api.cdnify.lat/api/v2/reseller/customers/customer_example' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/reseller/customers/{customer_id}/usage

Usage of a customer

Returns the open usage period of one of your customers.

Authentication
API token or portal session
Required permission
tenant.customers_read

Parameters

Parameters getCustomerUsage
NameInTypeRequiredRules
customer_idPathstringYes

Responses

  • 200OKapplication/json

    Fields (13)
    Responses getCustomerUsage 200
    FieldTypeRequiredRules
    period_numberintegerYes
    starts_atstringYes
    • Format: date-time
    ends_atstringYes
    • Format: date-time
    • Can be null
    bytes_usedintegerYes
    • Format: int64
    bytes_limitintegerYes
    • Format: int64
    • Can be null
    requests_usedintegerYes
    • Format: int64
    metering_policystringYes
    • One of: actual_bytes, uncached_multiplier, legacy_x4
    metered_untilstringYes
    • Format: date-time
    • Can be null
    blocksarray<object>Yes
    blocks[].kindstringYes
    blocks[].bytes_limitintegerYes
    • Format: int64
    blocks[].bytes_usedintegerYes
    • Format: int64
    blocks[].expires_atstringYes
    • Format: date-time
    Example (generated from the schema)
    {
      "period_number": 1,
      "starts_at": "2026-01-15T10:00:00Z",
      "ends_at": "2026-01-15T10:00:00Z",
      "bytes_used": 1,
      "bytes_limit": 1,
      "requests_used": 1,
      "metering_policy": "actual_bytes",
      "metered_until": "2026-01-15T10:00:00Z",
      "blocks": [
        {
          "kind": "string",
          "bytes_limit": 1,
          "bytes_used": 1,
          "expires_at": "2026-01-15T10:00:00Z"
        }
      ]
    }
  • 401Unauthorizedapplication/problem+json

    Headers: WWW-Authenticate

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/unauthenticated",
      "title": "Authentication required",
      "status": 401,
      "code": "unauthenticated",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 403Forbiddenapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/insufficient_scope",
      "title": "Insufficient permissions",
      "status": 403,
      "code": "insufficient_scope",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
  • 404Not foundapplication/problem+json

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/not_found",
      "title": "Not found",
      "status": 404,
      "code": "not_found",
      "request_id": "req_01EXAMPLE00000000000000000"
    }
curl
curl 'https://api.cdnify.lat/api/v2/reseller/customers/customer_example/usage' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"