curl --request PUT \
--url https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"city": "Dubai",
"country": "AE",
"emirate": "Dubai",
"line1": "1 Example Street",
"name": "Test Shopper",
"phone": "+971500000000"
}
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address"
payload = { "address": {
"city": "Dubai",
"country": "AE",
"emirate": "Dubai",
"line1": "1 Example Street",
"name": "Test Shopper",
"phone": "+971500000000"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
city: 'Dubai',
country: 'AE',
emirate: 'Dubai',
line1: '1 Example Street',
name: 'Test Shopper',
phone: '+971500000000'
}
})
};
fetch('https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
city: 'Dubai',
country: 'AE',
emirate: 'Dubai',
line1: '1 Example Street',
name: 'Test Shopper',
phone: '+971500000000'
}
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address"
payload := strings.NewReader("{\n \"address\": {\n \"city\": \"Dubai\",\n \"country\": \"AE\",\n \"emirate\": \"Dubai\",\n \"line1\": \"1 Example Street\",\n \"name\": \"Test Shopper\",\n \"phone\": \"+971500000000\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Set an agent cart's delivery address
Replaces the delivery address on the delegated shopper’s cart. Payment details are never accepted here. Requires an agent delegation credential with cart:write; the cart must belong to the delegated shopper. Incomplete addresses fail with 422.
Raw HTTP template
Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write’s original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings.
PUT /v1/agent/carts/{cart_id}/address HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <AgentDelegation-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>
{
"address": {}
}
HTTP/2 header equivalent
Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See HTTP and transport.
:method: PUT
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/agent/carts/{cart_id}/address
authorization: Bearer <AgentDelegation-credential>
content-type: application/json
{
"address": {}
}
curl --request PUT \
--url https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"city": "Dubai",
"country": "AE",
"emirate": "Dubai",
"line1": "1 Example Street",
"name": "Test Shopper",
"phone": "+971500000000"
}
}
'import requests
url = "https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address"
payload = { "address": {
"city": "Dubai",
"country": "AE",
"emirate": "Dubai",
"line1": "1 Example Street",
"name": "Test Shopper",
"phone": "+971500000000"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
city: 'Dubai',
country: 'AE',
emirate: 'Dubai',
line1: '1 Example Street',
name: 'Test Shopper',
phone: '+971500000000'
}
})
};
fetch('https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address';
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
city: 'Dubai',
country: 'AE',
emirate: 'Dubai',
line1: '1 Example Street',
name: 'Test Shopper',
phone: '+971500000000'
}
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/agent/carts/{cart_id}/address"
payload := strings.NewReader("{\n \"address\": {\n \"city\": \"Dubai\",\n \"country\": \"AE\",\n \"emirate\": \"Dubai\",\n \"line1\": \"1 Example Street\",\n \"name\": \"Test Shopper\",\n \"phone\": \"+971500000000\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
Body
Delivery address for the cart's market. For AE: name, line1, city, emirate, country (must equal the cart country) and phone are required; line2 and postal_code are optional.
{ "city": "Dubai", "country": "AE", "emirate": "Dubai", "line1": "1 Example Street", "name": "Test Shopper", "phone": "+971500000000" }
Response
Successful Response