SellAuth

Custom Fields

Get Custom Fields

Retrieves the custom fields.

GET
/v1/shops/{shopId}/custom-fields

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/custom-fields" \
  -H "Authorization: Bearer <token>"

{
  "message": "No query results for model [App\\Models\\Shop] 1"
}

Create Custom Field

Creates a new custom field.

POST
/v1/shops/{shopId}/custom-fields

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
nameRequiredstring
placeholderstring
hintstring
typeRequiredstring
optionsstring
defaultstring
regexstring
is_requiredboolean

Path Parameters

shopIdRequiredinteger
curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/custom-fields" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "in",
    "placeholder": "quas",
    "hint": "assumenda",
    "type": "voluptatum",
    "options": "necessitatibus",
    "default": "enim",
    "regex": "error",
    "is_required": true
  }'

Delete Custom Field

Deletes a custom field.

DELETE
/v1/shops/{shopId}/custom-fields/{customFieldId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
customFieldIdRequiredstring
curl -X DELETE "https://api.sellauth.com/v1/shops/{shopId}/custom-fields/quia" \
  -H "Authorization: Bearer <token>"

Update Custom Field

Updates an existing custom field.

PUT
/v1/shops/{shopId}/custom-fields/{customFieldId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
nameRequiredstring
placeholderstring
hintstring
typeRequiredstring
optionsstring
defaultstring
regexstring
is_requiredboolean

Path Parameters

shopIdRequiredinteger
customFieldIdRequiredstring
curl -X PUT "https://api.sellauth.com/v1/shops/{shopId}/custom-fields/quia" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "molestias",
    "placeholder": "iure",
    "hint": "voluptatem",
    "type": "eveniet",
    "options": "quibusdam",
    "default": "omnis",
    "regex": "omnis",
    "is_required": true
  }'