Sign in

Pay for an order

documented

Initiate payment for an order using a saved method.

POST /orders/{order_id}/payOrdersno implementation yet0 runs
No 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 "https://merchant.revolut.com/api/orders/{{$order_id}}/pay" \
  -X POST \
  -H "Authorization: Bearer {{REVOLUT_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"saved_payment_method": {"type": "{{$type}}", "id": "{{$payment_method_id}}", "initiator": "{{$initiator}}", "environment": {"type": "browser", "time_zone_utc_offset": {{$time_zone_utc_offset}}, "color_depth": {{$color_depth}}, "screen_width": {{$screen_width}}, "screen_height": {{$screen_height}}, "java_enabled": {{$java_enabled}}, "browser_url": "{{$browser_url}}" } } }'"