Update the billing address for an order
curl -X PUT "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
}
}'
{
"id": "a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d",
"url": "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/",
"customer": {
"email": "customer@example.com",
"first_name": "John",
"last_name": "Doe"
},
"created": "2026-03-01T10:30:00Z",
"updated": "2026-03-01T11:45:00Z",
"billing_address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
},
"items": [
{
"id": 1,
"product": {
"id": 42,
"name": "Wireless Headphones",
"slug": "wireless-headphones"
},
"variant": 101,
"unit_price": "79.99",
"quantity": 2,
"shipping": "5.00",
"discount_amount": "10.00",
"total_price": "159.98",
"offer": 5
}
],
"items_count": 2,
"savings_on_items": "10.00",
"status": "awaiting_payment",
"subtotal": "159.98",
"amount_saved": "10.00",
"shipping": "5.00",
"total_amount": "154.98"
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/klvxn/ecommerce-api/llms.txt
Use this file to discover all available pages before exploring further.
awaiting_payment can be modified.
Show Address Fields
awaiting_payment)curl -X PUT "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
}
}'
{
"id": "a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d",
"url": "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/",
"customer": {
"email": "customer@example.com",
"first_name": "John",
"last_name": "Doe"
},
"created": "2026-03-01T10:30:00Z",
"updated": "2026-03-01T11:45:00Z",
"billing_address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
},
"items": [
{
"id": 1,
"product": {
"id": 42,
"name": "Wireless Headphones",
"slug": "wireless-headphones"
},
"variant": 101,
"unit_price": "79.99",
"quantity": 2,
"shipping": "5.00",
"discount_amount": "10.00",
"total_price": "159.98",
"offer": 5
}
],
"items_count": 2,
"savings_on_items": "10.00",
"status": "awaiting_payment",
"subtotal": "159.98",
"amount_saved": "10.00",
"shipping": "5.00",
"total_amount": "154.98"
}
awaiting_payment. Once an order is paid, delivered, or cancelled, the billing address cannot be changed.awaiting_payment - Can be updatedpaid - Cannot be updated (returns 403)delivered - Cannot be updated (returns 403)cancelled - Cannot be updated (returns 403)Address Assignment
updated timestamp is automatically set to the current timecurl -X PUT "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
}
}'
{
"id": "a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d",
"url": "https://api.example.com/api/v1/i/orders/a3d5c8e7-9b4f-4a2e-8c7d-1f3e5a6b9c0d/",
"customer": {
"email": "customer@example.com",
"first_name": "John",
"last_name": "Doe"
},
"created": "2026-03-01T10:30:00Z",
"updated": "2026-03-01T11:45:00Z",
"billing_address": {
"street_address": "456 Oak Avenue",
"postal_code": 67890,
"city": "Springfield",
"state": "IL",
"country": "United States"
},
"items": [
{
"id": 1,
"product": {
"id": 42,
"name": "Wireless Headphones",
"slug": "wireless-headphones"
},
"variant": 101,
"unit_price": "79.99",
"quantity": 2,
"shipping": "5.00",
"discount_amount": "10.00",
"total_price": "159.98",
"offer": 5
}
],
"items_count": 2,
"savings_on_items": "10.00",
"status": "awaiting_payment",
"subtotal": "159.98",
"amount_saved": "10.00",
"shipping": "5.00",
"total_amount": "154.98"
}