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
}
}
]
}'