curl --request POST \
--url https://api.rivoopay.com/charge/payment-link \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"total": 100000,
"customerId": "customer_123456",
"successUrl": "https://example.com/success",
"failedUrl": "https://example.com/failed",
"needShipping": false,
"notifyCustomer": true,
"devMode": false,
"externalId": "ext_123456",
"items": [
{
"productId": "prod_123456",
"quantity": 2
}
],
"allowedMethods": [
"PIX",
"CREDIT_CARD"
]
}
'{
"status": 123,
"message": "<string>",
"data": {
"id": "charge_123456",
"url": "https://pay.rivoopay.com/c/charge_123456",
"devMode": false,
"total": 100000,
"externalId": "woovi_123456"
}
}Cria um link de pagamento para uma cobrança. Suporta idempotência via header Idempotency-Key.
curl --request POST \
--url https://api.rivoopay.com/charge/payment-link \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"total": 100000,
"customerId": "customer_123456",
"successUrl": "https://example.com/success",
"failedUrl": "https://example.com/failed",
"needShipping": false,
"notifyCustomer": true,
"devMode": false,
"externalId": "ext_123456",
"items": [
{
"productId": "prod_123456",
"quantity": 2
}
],
"allowedMethods": [
"PIX",
"CREDIT_CARD"
]
}
'{
"status": 123,
"message": "<string>",
"data": {
"id": "charge_123456",
"url": "https://pay.rivoopay.com/c/charge_123456",
"devMode": false,
"total": 100000,
"externalId": "woovi_123456"
}
}Chave de Idempotência.
Valor total em centavos. Mínimo: R$ 5,00 (500 centavos). Se não informado, será calculado a partir dos produtos
100000
ID do cliente existente
"customer_123456"
Dados do cliente para criar nova conta
Show child attributes
URL de redirecionamento em caso de sucesso
"https://example.com/success"
URL de redirecionamento em caso de falha
"https://example.com/failed"
Se precisa de envio
false
Se deve notificar o cliente
true
Se está em modo desenvolvimento
false
ID externo para rastreamento da charge
"ext_123456"
Itens da cobrança (opcional)
Show child attributes
Métodos de pagamento aceitos. Padrão: [PIX]
PIX, CREDIT_CARD ["PIX", "CREDIT_CARD"]Link de pagamento já existe (resposta cacheada via idempotência)