API Reference
Orders

Initiate a purchase V2

1min
code examples curl location globoff request post 'https //api fictive com/rest/api/accounts/{accountreference}/payments' \\ \ header 'accept application/json' \\ \ header 'content type 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 fictive com/rest/api/accounts/{accountreference}/payments", 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 fictive com/rest/api/accounts/{accountreference}/payments") 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 fictive com/rest/api/accounts/{accountreference}/payments" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses { "basketnumber" "433m098765", "orders" \[ { "orderid" 154874, "externalorderreference" "134order" } ], "asynchronousprocessingparameters" { "threedsecureacsurl" "https%3a%2f%2fwww secpay com%2fjava bin%2facssimulator%3fpartner%3dsecpay%26vaa%3db", "threedsecureenrolled" "false", "threedsecurehtml" "\<head>\<title> 3 d secure verification\</title>\</head>", "threedsecuremd" "2058804607", "threedsecurepareq" "ejxvuctuwjaqvpcronwa65g32hilbkkcqtm2qtrjzfyqrai4tgl/xztnefiytdp27i5mcv7nb+exvjkdc9/1esydixdmdooo/cjzkriyuvmmw3kyje9ynpxm2gdexq7aopiks8bwloy6xxe6ahrk7tjcc0zl+xw1fompnzkg0elmsa1cwz4pwj+nrzqtiolysajutidlsso0qknja9rvtpgioqnyqypyax2aasbygha3eve2ko24zjyi2gfee7i9rmofy/oabfel2/ur7a/cpjoez96itdnq8qazpp/1xwgnj2lupwqvsdwcpnkzwepli4mmt0wf7gx3ckk+hqsyp0x8txrh7njxzkou2utyvv/ykfnw0yfv2ygb0nbitakcma9pyqgclug7jwjxakqn9f4bgd6mtq==", "threedsecurestatus" "redirectiontoauthsiterequired" } }// not authorized // forbidden // not found // internal server error // unable to validate the 3d secure process due to downstream partners
πŸ€”
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

ο»Ώ