Ir al contenido
Developers
Entorno
Not signed in
POST/api/v2.0/OptionGroups/{shopCode}No pagination

Crea un grupo de opciones.

Un grupo agrupa adicionales o gustos y define cuántos se pueden elegir. canSetPrice distingue los adicionales, que llevan precio, de los gustos, que no.

Parameters

shopCodestring · pathrequired

Código numérico del comercio. Tiene que pertenecer a la credencial que firmó el token.

Request body

  • Request bodyobject
    • namestringrequired
    • canSetPriceboolean

      `true` para adicionales, que llevan precio; `false` para gustos, que no.

    • minQtyinteger · int32
    • maxQtyinteger · int32

      No puede ser menor que `minQty`.

    • shouldSyncWithFdsboolean

Responses

200Grupo creado. Devuelve su identificador.
  • CreateOptionGroupResponseunknown
    • All of these variants combined
      • ApiResponseobject
      • allOf 2object
400

No schema documented.

401

No schema documented.

curl --request POST \
     --url https://preprod-ar-apigw-oauth.bistrosoft.com/products/OptionGroups/shopCode \
     --header 'accept: application/json' \
     --header 'authorization: Bearer TU_TOKEN' \
     --header 'content-type: application/json'

Try this endpoint

`true` para adicionales, que llevan precio; `false` para gustos, que no.

No puede ser menor que `minQty`.

Current host

https://preprod-ar-apigw-oauth.bistrosoft.com/products

Response

You have not tried this endpoint yet.