Draft of api spec for paypal payments