Create payment
documentedCreate a payment (uses an order or customer data).
POST /paymentsPaymentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "{{$revolut_base_url}}/payment-drafts" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Idempotency-Key: {{$idempotency_key}}" \
-d '{"title": "{{$title}}", "schedule_for": "{{$schedule_for}}", "payments": [ { "account_id": "{{$account_id}}", "receiver": { "counterparty_id": "{{$counterparty_id}}", "account_id": "{{$receiver_account_id}}", "card_id": "{{$receiver_card_id}}" }, "amount": {{$amount}}, "currency": "{{$currency}}", "reference": "{{$reference}}" } ] }'