API Reference
Bundles
Retrieve a Bundle by reference
1min
code examples curl location globoff 'https //api fictive com/rest/api/bundles/{bundlereference}' \\ \ 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 'get', headers myheaders, redirect 'follow' }; fetch("https //api fictive com/rest/api/bundles/{bundlereference}", 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/bundles/{bundlereference}") https = net http new(url host, url port) https use ssl = true request = net http get 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/bundles/{bundlereference}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "bundlereference" "001pb4pi6ktxcyr8r4", "carts" \[ { "cartreference" "0010k4pi6ktxcyft82", "active" true, "contractreference" "0010c4pi6ktxcyb8r9", "lineitems" \[ { "lineitemreference" "0010i4pi6ktevry8r2", "description" "the first line item in the cart", "pricing" { "grossamount" 2 5, "netamount" 2 08, "taxamount" 0 42, "currency" "gbp" }, "quantity" 1, "productinfo" { "title" "example product", "productreference" "0010b4pi6ktxcyr8r4" }, "customlineitemparameters" {} } ] } ], "name" "third bundle (with tag & cart)", "description" "the third bundle, featuring a tag & single cart", "tag" "a002", "status" "active" }// not found \<br />β’ bundle reference does not correspond to a bundle id \<br />β’ bundle does not exist for the affiliate // internal server error
π€
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.