APIReferênciaGift cards
Criar gift card
Cria um gift card com saldo e, se quiser, manda por e-mail.
Permissão da chave: Catálogo › escrever.
bearerheader
AuthorizationBearer <chave de API>Chave de API da loja (Painel › Integrações › Chaves de API)
Idempotency-Key?stringChave única por operação (ex.: o id do pedido no seu sistema). Repetir a chamada com a mesma chave devolve a mesma resposta, sem duplicar.
Padrão (regex)
^[A-Za-z0-9._:-]+$Tamanho
8 <= length <= 255application/json- body
amountCents*numberIntervalo
100 <= value <= 1000000expiresAt?stringnote?stringTamanho
length <= 200recipientEmail?stringFormato
emailTamanho
length <= 254recipientName?stringTamanho
1 <= length <= 80message?stringTamanho
1 <= length <= 200curl -X POST "https://api.rivoo.gg/v1/gift-cards" \ -H "Authorization: Bearer $RIVOO_API_KEY" \ -H "Idempotency-Key: pedido_123" \ -H "Content-Type: application/json" \ -d '{"amountCents":100}'Exemplo de resposta
Vazio