Pular para o conteúdo
Produtos

POST /v1/products

POST
/v1/products

Autenticação

bearer
headerAuthorizationBearer <API key>

Chave de API da empresa (gck_live_...)

URL base

https://api-gclient.4go.company

Escopos requeridos

  • products:write
Como funcionam os escopos

Corpo da requisição

application/json
  1. body
name*string
type*string
Value in"recurring""sporadic"
price*number
customer_type*string
Value in"cpf""cnpj"
overview*string
icon?string
included_items?array<string>
excluded_items?array<string>
created_by_id*string

Corpo da resposta

application/json
  1. response
id*string
name*string
type*|
Value in"recurring""sporadic"
customer_type*string|null
price*number
category*string|null
icon*string|null
overview*string|null
included_items*array<string>
excluded_items*array<string>
Exemplo de requisição
curl -X POST 'https://api-gclient.4go.company/v1/products' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "type": "recurring",  "price": 0,  "customer_type": "cpf",  "overview": "string",  "created_by_id": "string"}'
Exemplo de resposta201
{  "id": "string",  "name": "string",  "type": "recurring",  "customer_type": "string",  "price": 0,  "category": "string",  "icon": "string",  "overview": "string",  "included_items": [    "string"  ],  "excluded_items": [    "string"  ]}