fishbowlAPI API

Update Subscription

Updates an existing subscription by member UUID. Requires the X-Delightable-Brand-Uuid header.

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": {
      "ApiResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "data": {},
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "error_code": {
            "type": "integer",
            "nullable": true
          },
          "total": {
            "type": "integer",
            "nullable": true
          },
          "cache_hit": {
            "type": "boolean"
          }
        }
      },
      "SubscriptionCreate": {
        "type": "object",
        "required": [
          "firstName",
          "email",
          "listUuid",
          "source"
        ],
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phoneNumber": {
            "type": "string",
            "description": "Required if receiveSms is true. Must be 10-15 digits."
          },
          "zipCode": {
            "type": "string"
          },
          "birthdayMonth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 12
          },
          "birthdayDay": {
            "type": "integer",
            "minimum": 1,
            "maximum": 31
          },
          "birthdayYear": {
            "type": "integer"
          },
          "birthdate": {
            "type": "string",
            "format": "date",
            "description": "Alternative to month/day/year. Format: Y-m-d."
          },
          "weddingAnniversary": {
            "type": "string"
          },
          "brandUuid": {
            "type": "string",
            "format": "uuid"
          },
          "storeUuid": {
            "type": "string",
            "format": "uuid"
          },
          "listUuid": {
            "type": "string",
            "format": "uuid",
            "description": "Engagement list UUID."
          },
          "receiveEmails": {
            "type": "boolean"
          },
          "receiveSms": {
            "type": "boolean",
            "description": "If true and phoneNumber is valid, triggers SMS opt-in flow."
          },
          "source": {
            "type": "string",
            "description": "Acquisition source identifier."
          },
          "createdDate": {
            "type": "string",
            "format": "date"
          },
          "campaignUuid": {
            "type": "string",
            "format": "uuid",
            "description": "Triggers single-send campaign email."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Tag UUIDs to assign."
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Subscription API",
      "description": "Create and manage email/SMS subscriptions."
    }
  ],
  "paths": {
    "/api/public/subscription/{muuid}": {
      "put": {
        "summary": "Update Subscription",
        "description": "Updates an existing subscription by member UUID. Requires the X-Delightable-Brand-Uuid header.",
        "operationId": "updateSubscription",
        "tags": [
          "Subscription API"
        ],
        "parameters": [
          {
            "name": "muuid",
            "in": "path",
            "required": true,
            "description": "Member UUID.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/ClientUuid"
          },
          {
            "name": "X-Delightable-Brand-Uuid",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse"
                }
              }
            }
          },
          "400": {
            "description": "Member not found or validation error."
          }
        }
      }
    }
  }
}