Create Payment Consent
POST https://{{env_url}}/payment_initiation/consent/create
Request Body
{"client_id"=>"{{client_id}}", "secret"=>"{{secret_key}}", "recipient_id"=>"{{recipient_id}}", "reference"=>"Test recurring", "scopes"=>["ME_TO_ME"], "constraints"=>{"max_payment_amount"=>{"currency"=>"GBP", "value"=>10}, "periodic_amounts"=>[{"amount"=>{"currency"=>"GBP", "value"=>50}, "alignment"=>"CALENDAR", "interval"=>"MONTH"}, {"amount"=>{"currency"=>"GBP", "value"=>130}, "alignment"=>"CONSENT", "interval"=>"YEAR"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"consent_id":"payment-consent-id-sandbox-dc2a1e9a-6c69-4e44-8dd3-39eaac7db64a","request_id":"XgeoW8PAUtgIGze","status":"UNAUTHORISED"}