fishbowlAPI API

Batch Create Subscriptions

Queues multiple subscription items for asynchronous processing. Each item requires a brandUuid and at least one of email or phoneNumber. Items are processed via RabbitMQ, not immediately.

OpenAPI definition

{
  "openapi": "3.1.0",
  "info": {
    "title": "Fishbowl Public API",
    "version": "1.0",
    "description": "The Fishbowl Public API provides programmatic access to manage guests, loyalty programs, subscriptions, tags, and more within the Fishbowl GRM platform."
  },
  "servers": [
    {
      "url": "https://api.fishbowl.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Fishbowl API key for authentication and rate limiting."
      }
    },
    "parameters": {
      "ClientUuid": {
        "name": "X-Delightable-Client-Uuid",
        "in": "header",
        "required": true,
        "description": "Identifies the client context.",
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "schemas": {
      "SubscriptionBatchItem": {
        "type": "object",
        "required": [
          "brandUuid"
        ],
        "properties": {
          "brandUuid": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "At least one of email or phoneNumber is required."
          },
          "phoneNumber": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "storeUuid": {
            "type": "string",
            "format": "uuid"
          },
          "listUuid": {
            "type": "string",
            "format": "uuid"
          },
          "zipCode": {
            "type": "string"
          },
          "birthdayMonth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12
          },
          "birthdayDay": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31
          },
          "receiveEmails": {
            "type": "boolean"
          },
          "receiveSms": {
            "type": "boolean"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Subscription API",
      "description": "Create and manage email/SMS subscriptions."
    }
  ],
  "paths": {
    "/api/public/subscription/batch": {
      "post": {
        "summary": "Batch Create Subscriptions",
        "description": "Queues multiple subscription items for asynchronous processing. Each item requires a brandUuid and at least one of email or phoneNumber. Items are processed via RabbitMQ, not immediately.",
        "operationId": "batchCreateSubscriptions",
        "tags": [
          "Subscription API"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ClientUuid"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SubscriptionBatchItem"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Number of items queued.",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "message": "Success",
                  "data": {
                    "queued": 25
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}