curl --request PATCH \
--url https://staging.crossmint.com/api/2022-06-09/orders/{orderId} \
--header 'Content-Type: application/json' \
--data '
{
"payment": {
"method": "bank-transfer",
"receiptEmail": "jsmith@example.com"
},
"recipient": {
"email": "jsmith@example.com"
}
}
'import requests
url = "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}"
payload = {
"payment": {
"method": "bank-transfer",
"receiptEmail": "jsmith@example.com"
},
"recipient": { "email": "jsmith@example.com" }
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
payment: {method: 'bank-transfer', receiptEmail: 'jsmith@example.com'},
recipient: {email: 'jsmith@example.com'}
})
};
fetch('https://staging.crossmint.com/api/2022-06-09/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'payment' => [
'method' => 'bank-transfer',
'receiptEmail' => 'jsmith@example.com'
],
'recipient' => [
'email' => 'jsmith@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}"
payload := strings.NewReader("{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}")
.header("Content-Type", "application/json")
.body("{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}"
response = http.request(request)
puts response.read_body{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}Edit order
curl --request PATCH \
--url https://staging.crossmint.com/api/2022-06-09/orders/{orderId} \
--header 'Content-Type: application/json' \
--data '
{
"payment": {
"method": "bank-transfer",
"receiptEmail": "jsmith@example.com"
},
"recipient": {
"email": "jsmith@example.com"
}
}
'import requests
url = "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}"
payload = {
"payment": {
"method": "bank-transfer",
"receiptEmail": "jsmith@example.com"
},
"recipient": { "email": "jsmith@example.com" }
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
payment: {method: 'bank-transfer', receiptEmail: 'jsmith@example.com'},
recipient: {email: 'jsmith@example.com'}
})
};
fetch('https://staging.crossmint.com/api/2022-06-09/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'payment' => [
'method' => 'bank-transfer',
'receiptEmail' => 'jsmith@example.com'
],
'recipient' => [
'email' => 'jsmith@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}"
payload := strings.NewReader("{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}")
.header("Content-Type", "application/json")
.body("{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"payment\": {\n \"method\": \"bank-transfer\",\n \"receiptEmail\": \"jsmith@example.com\"\n },\n \"recipient\": {\n \"email\": \"jsmith@example.com\"\n }\n}"
response = http.request(request)
puts response.read_body{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}Path Parameters
Body
Locale for the checkout, in IETF BCP 47. It impacts the email receipt language. Ensure your UI is set to the same language as specified here. Throws an error if passed an invalid language.
Klingon, de-DE, en-US, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-PT, ru-RU, th-TH, tr-TR, uk-UA, vi-VN, zh-CN, zh-TW - Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
- Option 62
- Option 63
- Option 64
- Option 65
- Option 66
- Option 67
- Option 68
- Option 69
- Option 70
- Option 71
- Option 72
- Option 73
- Option 74
- Option 75
- Option 76
- Option 77
- Option 78
- Option 79
- Option 80
- Option 81
- Option 82
- Option 83
- Option 84
- Option 85
- Option 86
Show child attributes
Show child attributes
Recipient of the items being purchased. You can specify a wallet address, email, or payment method id, either explicitly or using a 'locator'. If you pass an email, Crossmint will create a custodial wallet address for the user on the fly, that they can later log in to. If no recipient is passed, an order will be created with the status 'missing-recipient', until you pass one.
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Response
Order updated successfully
The License Terms ID
"1"
The PIL terms details as per retrieved from story
Show child attributes
Show child attributes
{
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
If true, the license terms will be disabled. Effectively preventing future mints with this license.
false
{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}
Was this page helpful?

