---
updatedAt: 2026-08-07T22:09:02.000Z
agentTools:
  projectIndex: https://developer-docs.rivo.io/llms.txt
---

# Create a customer preference

Create a customer preference

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Rivo Developer API",
    "description": "Extensibility to suit your needs",
    "termsOfService": "https://www.rivo.io/terms",
    "contact": {
      "email": "developers@rivo.io",
      "url": "https://developers.rivo.io"
    },
    "version": "0.0.1"
  },
  "tags": [
    {
      "name": "customer_preferences",
      "description": "Operations about customer_preferences"
    }
  ],
  "paths": {
    "/v1/customer_preferences": {
      "post": {
        "summary": "Create a customer preference",
        "description": "Create a customer preference",
        "parameters": [
          {
            "in": "header",
            "name": "Authorization",
            "description": "Merchant Auth Token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer_id": {
                    "description": "Shopify Customer ID",
                    "type": "integer",
                    "format": "int32"
                  },
                  "preference_question_id": {
                    "description": "Preference Question ID",
                    "type": "integer",
                    "format": "int32"
                  },
                  "value": {
                    "description": "Preference value",
                    "type": "string"
                  },
                  "survey_id": {
                    "description": "Survey ID",
                    "type": "integer",
                    "format": "int32"
                  }
                },
                "required": [
                  "customer_id",
                  "preference_question_id",
                  "value"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Create a customer preference"
          }
        },
        "tags": [
          "customer_preferences"
        ],
        "operationId": "create-customer-preference"
      }
    }
  },
  "servers": [
    {
      "url": "//developer-api.rivo.io/merchant_api"
    }
  ]
}
```