Skip to content

Create a Revolut payment draft.

Synopsis

gln [global-options] revolut payment-drafts create --file <payment-draft.json>

Options

Argument or flagTypeRequiredDefaultDescription
--filepathyes-Payment draft JSON request file.

Description

Reads the payment-draft request file, validates the expected public fields, and passes them to the public Revolut payment-draft C API.

Request fields: title, source_iban, source_bic, source_name, recipient_iban, recipient_bic, recipient_name, amount, currency, purpose, end_to_end_reference, requested_execution_date. Optional fields may be omitted when they do not apply.

Provider rejection is returned as a rejected JSON envelope with provider status details in issues; it is not reported as success.

Requirements

  • Profile: required
  • Backend prerequisites: Revolut profile with stored OAuth token and approved Revolut plugin

Status and exit codes

StatusExitMeaning
ok0Payment draft was created.
error1Local validation, profile, token, plugin, or transport failure.
rejected1Provider rejected the request; provider status details are in issues.

Result keys: draft_id, responses

Examples

gln --profile rev revolut payment-drafts create --file .\payment-draft.json

See also