Custom Attributes

Custom attributes - Users

GET /account/custom-attributes

List custom attribute's definitions

Parameter

Type

Required

Description

text

query

No

Search by attribute's name or attribute's label

limit

query

No

Items per page returned. Default 25, max 100

page

query

No

Number of page. First page is 0

Example

curl -X GET \
  -H "Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Accept: application/json" \
  -H 'cache-control: no-cache' \
  'https://api.woowup.com/apiv3/account/custom-attributes'

Response

{
    "payload": [
        {
            "label": "Fecha de vigencia",
            "name": "vigencia",
            "field_type": "datetime",
            "data_type": "timestamp",
            "group": null
        },
        {
            "label": "Nro Socio",
            "name": "nro_socio",
            "field_type": "text",
            "data_type": "string",
            "group": "Datos del socio"
        },
        {
            "label": "Tipo de Documento",
            "name": "tipo_documento",
            "field_type": "select",
            "data_type": "string",
            "group": "Datos del socio"
            "options": [
                {
                    "value": "CI",
                    "text": "CI"
                },
                {
                    "value": "DNI",
                    "text": "DNI"
                },
                {
                    "value": "LC",
                    "text": "LC"
                },
                {
                    "value": "PASS",
                    "text": "PASS"
                },
                {
                    "value": "LE",
                    "text": "LE"
                },
                {
                    "value": "S/D",
                    "text": "S/D"
                }
            ]
        },
        {
            "label": "Sede",
            "name": "sede",
            "field_type": "select",
            "data_type": "string",
            "group": null,
            "options": [
                {
                    "value": "Palermo",
                    "text": "Palermo"
                },
                {
                    "value": "Belgrano",
                    "text": "Belgrano"
                }
            ]
        }
    ],
    "message": "ok",
    "code": "ok",
    "time": "22ms"

POST /account/custom-attributes

Create custom attribute's definition. The name property is the key of the attribute that you can use on the /users endpoint to send custom attributes data.

Request content format

Example

These example creates a custom attribute definition to save the document type of the user

Response

PUT /account/custom-attributes/{name}

Update custom attribute's definition. Please be carefull whith data type's changes, you may loose information

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Request content format

Example

These example updates a custom attribute definition to save the document type of the user

Response

DELETE /account/custom-attributes/{name}

Delete custom attribute's definition

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Example

Response

Custom attributes - Products

GET /account/product-custom-attributes

List custom attribute's definitions

Parameter

Type

Required

Description

text

query

No

Search by attribute's name or attribute's label

limit

query

No

Items per page returned. Default 25, max 100

page

query

No

Number of page. First page is 0

Example

Response

POST /account/product-custom-attributes

Create custom attribute's definition. The name property is the key of the attribute.

Request content format

Example

These example creates a custom attribute definition to save the "network" of the product

Response

PUT /account/product-custom-attributes/{name}

Update custom attribute's definition. Please be carefull whith data type's changes, you may loose information

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Request content format

Example

These example updates a custom attribute definition to save the "network" of the product

Response

DELETE /account/product-custom-attributes/{name}

Delete custom attribute's definition

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Example

Response

Custom attributes - Purchases

GET /account/purchase-custom-attributes

List custom attribute's definitions

Parameter

Type

Required

Description

text

query

No

Search by attribute's name or attribute's label

limit

query

No

Items per page returned. Default 25, max 100

page

query

No

Number of page. First page is 0

Example

Response

POST /account/purchase-custom-attributes

Create custom attribute's definition. The name property is the key of the attribute.

Request content format

Example

These example creates a custom attribute definition to save the "nombre_promocion" of the purchase

Response

PUT /account/purchase-custom-attributes/{name}

Update custom attribute's definition. Please be carefull whith data type's changes, you may loose information

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Request content format

Example

These example updates a custom attribute definition to save the "codigo_promocion" of the purchase

Response

DELETE /account/purchase-custom-attributes/{name}

Delete custom attribute's definition

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Example

Response

Custom attributes - Purchases Detail

GET /account/purchase-item-custom-attributes

List custom attribute's definitions

Parameter

Type

Required

Description

text

query

No

Search by attribute's name or attribute's label

limit

query

No

Items per page returned. Default 25, max 100

page

query

No

Number of page. First page is 0

Example

Response

POST /account/purchase-item-custom-attributes

Create custom attribute's definition. The name property is the key of the attribute.

Request content format

Example

These example creates a custom attribute definition to save the "garantia_fabricante" of the purchase detail

Response

PUT /account/purchase-item-custom-attributes/{name}

Update custom attribute's definition. Please be carefull whith data type's changes, you may loose information

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Request content format

Example

These example updates a custom attribute definition to save the garantia_fabricante" of the purchase detail

Response

DELETE /account/purchase-item-custom-attributes/{name}

Delete custom attribute's definition

Parameter

Type

Required

Description

name

URI

YES

Custom attribute's name (key)

Example

Response

Last updated

Was this helpful?