1. Pagamentos
rockty
  • Módulo predefinido
    • API
      • Autenticação
        • Token
      • Afiliados
        • Affiliations
        • Links
        • Search
      • Pagamentos
        • Consulta
          GET
        • Cartão
          POST
        • PIX
          POST
      • Pedidos
        • Orders
    • SDK
      • RockSDK — Métodos Headless
      • Documentação RockSDK v2.1
  • Apresentação
    • home
  • SDK
    • Introdução
  1. Pagamentos

Cartão

Em desenvolvimento
POST
https://api.rockty.com/payments/v1/card

Requisição

Parâmetros Bodyapplication/jsonNecessário

Examples

Respostas

🟢200Sucesso
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.rockty.com/payments/v1/card' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId": "tenant-abc123",
    "freight": {
        "type": "fixed",
        "value": 1500,
        "subtype": "fixed"
    },
    "customerInfo": {
        "name": "João Silva",
        "email": "joao.silva@email.com",
        "document": {
            "number": "12345678901",
            "countryCode": "BR"
        },
        "telephone": {
            "number": "11999998888",
            "dialCode": "55",
            "countryCode": "BR"
        },
        "metadata": [],
        "address": {
            "street": "Rua das Flores",
            "number": "123",
            "district": "Centro",
            "city": "São Paulo",
            "state": "SP",
            "postalCode": "01310100",
            "country": "BR",
            "complement": "Apto 42"
        },
        "visitorId": {
            "fingerprint": "fp_xyz987",
            "affiliationId": "aff_456"
        }
    },
    "cards": [
        {
            "tokens": [
                {
                    "acquirer": "PAGARME",
                    "value": "tok_abc123def456",
                    "session": "sess_789",
                    "customerId": "cus_111"
                }
            ],
            "statementDescriptor": "rockty",
            "installments": 3,
            "amount": 15000
        }
    ],
    "products": [
        {
            "productId": "prod-001",
            "productName": "Curso Premium",
            "precificationId": "prec-001",
            "precificationName": "Plano Anual",
            "amount": 13500,
            "metadata": [
                {
                    "key": "category",
                    "value": "education"
                }
            ],
            "freight": {
                "type": "FREE",
                "value": 0,
                "subtype": null
            }
        }
    ]
}'
Response Response Example
{
    "id": "",
    "status": ""
}
Modificado em 2026-04-06 20:35:40
Página anterior
Consulta
Próxima página
PIX
Built with