Update a fulfilment
1 min
PATCH
https://api.fictive.com/REST/api/accounts/{accountReference}/fulfilments/{fulfilmentReference}
Path Parameters
- accountReferencestringrequiredDescription
- fulfilmentReferencestringrequiredDescription
Header Parameters
- X-TokenIdstringDescription
- X-SessionIdstringDescription
- X-VersionstringrequiredDescription
- OriginstringDescription
Body Parameters
- patchRequestMicrosoft.AspNet.JsonPatch.JsonPatchDocument[FictiveGlobal.Api.Rest.Dtos.v1.Patch.PaymentInstructions.FulfilmentPatchModel]required
- valueSystem.Object
- pathstring
- opstring
- fromstring
Responses
204
400
401
404
curl
curl --request PATCH \
--url https://api.fictive.com/REST/api/accounts/{accountReference}/fulfilments/{fulfilmentReference} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-version: string' \
--data '[
{}
]'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-version", "string");
var raw = JSON.stringify([
{}
]);
var requestOptions = {
method: 'PATCH',
headers: myHeaders,
body: raw,
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));ruby
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::Patch.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-version"] = "string"
request.body = JSON.dump([
{}
])
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.fictive.com/REST/api/accounts/{accountReference}/fulfilments/{fulfilmentReference}"
payload = json.dumps([
{}
])
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-version': 'string'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)
204
// No Content
400
// • The following custom parameter(s) are not configured:
• Cannot provide the same parameter name multiple times
• Unable to amend or remove the following parameter(s) as no value currently exists:
• Unable to add the following parameter(s) as a value already exists:
401
// API Authentication Failure: Invalid Authentication Type/Credentials Provided
404
// • Account cannot be found
• 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.