Register Account to PLS
code examples curl request post \\ \ url https //api pay monoova com/v1/api/payment links/register account \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api pay monoova com/v1/api/payment links/register account", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api pay monoova com/v1/api/payment links/register account") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api pay monoova com/v1/api/payment links/register account" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successfully registered account to monoova pls { "paymentagreementsubscriptionid" "sub agreement 12345", "paymentinstructionsubscriptionid" "sub instruction 67890" }// failed to register account with monoova pls { "type" "https //tools ietf org/html/rfc7231#section 6 5 1", "title" "problem details", "status" 400, "detail" "bearer token is required " }// unauthorized bearer token is required { "type" "https //tools ietf org/html/rfc7231#section 6 5 1", "title" "problem details", "status" 400, "detail" "bearer token is required " }