API Reference
Fulfilment
Retrieve a fulfilment for an account
1min
code examples curl location globoff 'https //api fictive com/rest/api/accounts/{accountreference}/fulfilments/{fulfilmentreference}' \\ \ 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/accounts/{accountreference}/fulfilments/{fulfilmentreference}", 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}/fulfilments/{fulfilmentreference}") 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/accounts/{accountreference}/fulfilments/{fulfilmentreference}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "fulfilmentreference" "0010ls7zf3ve8oaoop", "datecreated" "2021 09 21t05 33 18 1353937", "datelastupdated" "2021 09 21t05 33 18 1353937", "cartreference" "0010kqb9l0fqhczoop", "fulfilmentdate" "2021 09 21t05 33 18 1353937", "suppliernotificationdate" "2021 09 21t05 33 18 1353937", "expecteddeliverydate" "2021 09 22t05 33 18 1353937", "status" "pending", "type" "physical", "subscriptionreference" "0010spg7k4o2a5uoop", "paymentinstructionreference" "0010jp6uisy1zr0oop", "addressreference" "0010dpg7k4o2a5uoop", "paymentreference" "0010ofa69sihzw8oop", "fulfilmentitems" \[ { "description" "fulfilment line item description ", "quantity" 5, "productreference" "0010b6g7k4o2a5uoop", "customfulfilmentlineitemparameters" { "parametername" "value" } } ], "customfulfilmentparameters" { "parametername" "value" } }// β’ api authentication failure invalid authentication type/credentials provided // β’ account cannot be found \<br /> β’ fulfilment cannot be found
π€
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.