---
search:
  tags:
    - Surfaces
    - POST
seo:
  description: >-
    Starts enrollment and immediately evaluates the… Reference for the POST
    /stores/{store_id}/surfaces/{surface_id}/enroll endpoint in the Sarvex V1
    API.
sidebar:
  label: Begin enrollment on a surface
  badge: POST
title: Begin enrollment on a surface
type: openapi-operation
---
Starts enrollment and immediately evaluates the surface's prerequisites, so the
response already says what is outstanding.

Returns 409 if the store has not reached `active` — the one cross-lifecycle
dependency in the system. It is a conflict rather than a validation error: the
request is well-formed and the merchant may be entitled to it, the store simply
is not there yet.

`POST /stores/{store_id}/surfaces/{surface_id}/enroll`

**Responses**

- `200` — Enrollment state after evaluation.
- `404` — Resource not found within the caller's tenant.
- `409` — Store is not UCP active, or the transition is not legal from the current state.

Response example, 200:

```json
{
  "surface_id": "string",
  "store_id": "string",
  "state": "available",
  "prerequisites": [
    {
      "check_id": "string",
      "label_key": "string",
      "passed": true,
      "reason": "string",
      "remediation_key": "string",
      "remediation_url": "http://example.com",
      "evaluated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "artifacts": [
    {
      "artifact_id": "string",
      "label_key": "string",
      "url": "http://example.com",
      "detail": {
        "property1": "string",
        "property2": "string"
      },
      "generated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "config": {
    "property1": "string",
    "property2": "string"
  },
  "enrolled_at": "2019-08-24T14:15:22Z",
  "last_verified_at": "2019-08-24T14:15:22Z",
  "suspension_reason": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "descriptor": {
    "surface_id": "string",
    "display_name_key": "string",
    "description_key": "string",
    "protocol": "ucp",
    "required_connectors": [
      "commerce"
    ],
    "required_capabilities": [
      "string"
    ],
    "prerequisite_checks": [
      "string"
    ],
    "artifacts": [
      "string"
    ],
    "config_schema": [
      {
        "key": "string",
        "type": "text",
        "label_key": "string",
        "help_key": "string",
        "required": true
      }
    ],
    "external_steps": [
      {
        "step_id": "string",
        "label_key": "string",
        "url": "http://example.com",
        "owner": "merchant"
      }
    ],
    "verification_signal": "string",
    "auto_enroll": true
  },
  "blocked": true,
  "blocked_reason": "string"
}
```

Response example, 404:

```json
{
  "error": {
    "code": "not_found",
    "message": "Resource not found.",
    "details": null
  }
}
```
