Skip to main content
POST
/
subscriptions
Criar Assinatura
curl --request POST \
  --url https://homolog.clubfix.com.br/webservice/subscriptions \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>'
{
  "id": 19,
  "customer": {
    "id": 11,
    "name": "Sergio Danilo Jr.",
    "document": "31815134070",
    "phone": "32863751018",
    "email": "[email protected]",
    "address": {
      "street": "Beco João Veloso",
      "number": 770,
      "complement": null,
      "zipcode": "82820320",
      "neighborhood": "Bairro Alto",
      "city": "Curitiba",
      "state": "PR"
    }
  },
  "device": {
    "id": 2,
    "name": "onetouch|5017E PIXI3 4.5 DS",
    "brand": {
      "id": 1,
      "name": "Alcatel",
      "meta": {
        "link": "https://homolog.clubfix.com.br/webservice/brands/1"
      }
    },
    "meta": {
      "link": "https://homolog.clubfix.com.br/webservice/models/2"
    },
    "serial_number": "356133319339510"
  },
  "valor": 7.75,
  "franchise": 93.33,
  "is_used": true,
  "status": {
    "id": 18,
    "assinatura_id": 19,
    "status": "protegido",
    "created_at": "2023-07-26T12:06:30.000000Z",
    "updated_at": "2023-07-26T12:06:30.000000Z"
  },
  "created_at": "2023-07-26 09:06:30"
}
Authorization
string
required
Token de autenticação do tipo Bearer obtido através do endpoint de login.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
string
required

Response

201 - application/json

Assinatura criada com sucesso