Orchestration API
Payments
Create a payment
code examples curl location '/api/payments' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "amount" 1000, "currency" "gbp", "capturemethod" "automatic", "connectioninformation" { "customerip" "192 168 1 1" }, "browserinfo" { "useragent" "mozilla/5 0 (macintosh; intel mac os x 10 15 7) applewebkit/537 36" }, "cartitems" \[ { "name" "wireless mouse", "price" 2999, "quantity" 2, "type" "tangible" } ], "primarydeliverydetails" { "deliverymethod" "fedex overnight", "deliverytype" "physical" }, "customer" { "email" "john doe\@example com", "firstname" "john", "lastname" "doe" }, "paymentmethod" {} }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "amount" 1000, "currency" "gbp", "capturemethod" "automatic", "connectioninformation" { "customerip" "192 168 1 1" }, "browserinfo" { "useragent" "mozilla/5 0 (macintosh; intel mac os x 10 15 7) applewebkit/537 36" }, "cartitems" \[ { "name" "wireless mouse", "price" 2999, "quantity" 2, "type" "tangible" } ], "primarydeliverydetails" { "deliverymethod" "fedex overnight", "deliverytype" "physical" }, "customer" { "email" "john doe\@example com", "firstname" "john", "lastname" "doe" }, "paymentmethod" {} }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/api/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("/api/payments") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "amount" 1000, "currency" "gbp", "capturemethod" "automatic", "connectioninformation" { "customerip" "192 168 1 1" }, "browserinfo" { "useragent" "mozilla/5 0 (macintosh; intel mac os x 10 15 7) applewebkit/537 36" }, "cartitems" \[ { "name" "wireless mouse", "price" 2999, "quantity" 2, "type" "tangible" } ], "primarydeliverydetails" { "deliverymethod" "fedex overnight", "deliverytype" "physical" }, "customer" { "email" "john doe\@example com", "firstname" "john", "lastname" "doe" }, "paymentmethod" {} }) response = http request(request) puts response read body import requests import json url = "/api/payments" payload = json dumps({ "amount" 1000, "currency" "gbp", "capturemethod" "automatic", "connectioninformation" { "customerip" "192 168 1 1" }, "browserinfo" { "useragent" "mozilla/5 0 (macintosh; intel mac os x 10 15 7) applewebkit/537 36" }, "cartitems" \[ { "name" "wireless mouse", "price" 2999, "quantity" 2, "type" "tangible" } ], "primarydeliverydetails" { "deliverymethod" "fedex overnight", "deliverytype" "physical" }, "customer" { "email" "john doe\@example com", "firstname" "john", "lastname" "doe" }, "paymentmethod" {} }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // payment created { "id" "", "amount" 9876, "amountreceived" 9876, "created" "2025 07 14t12 34 56 789z", "currency" "gbp", "status" "succeeded", "nextaction" {}, "connector" "", "capturemethod" "automatic", "paymentmethod" "card", "paymentmethodtype" "", "metadata" {} }// bad request // unauthorized