Skip to main content
POST
/
subscriptions
/
{subscriptionId}
/
payment
Processar Pagamento
curl --request POST \
  --url https://homolog.clubfix.com.br/webservice/subscriptions/{subscriptionId}/payment \
  --header 'Accept: <accept>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "creditCard": {
    "number": "5448280000000007",
    "expirate_at": "1228",
    "cvv": "123"
  }
}
'
{
  "id": 2,
  "plan": {
    "id": 1,
    "name": "Proteção Clubfix",
    "coverages": [
      "Quebra de Tela",
      "Danos Líquidos",
      "Oxidação",
      "Alto Falantes",
      "Microfone",
      "Danos Internos",
      "Conector de Carga",
      "Wi-Fi/Sinal"
    ]
  },
  "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": 1,
    "name": "onetouch|5017A PIXI3 4.5 SS",
    "brand": {
      "id": 1,
      "name": "Alcatel",
      "meta": {
        "link": "https://homolog.clubfix.com.br/webservice/brands/1"
      }
    },
    "meta": {
      "link": "https://homolog.clubfix.com.br/webservice/models/1"
    },
    "serial_number": "356133319339502",
    "is_used": true
  },
  "valor": 7.04,
  "franchise": 84.83,
  "status": "PROTECTED",
  "created_at": "2023-07-26 08:43:56"
}
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

Body

application/json
creditCard
object

Response

200 - application/json

Find a subscription by ID

id
integer
plan
object
customer
object
device
object
valor
number
franchise
number
status
string
created_at
string