Update Checkout Settings
Endpoint: https://api.youcan.shop/settings/checkout/settings/
Method: POST
Required Scopes
edit-checkout-settings
Parameters
Param Name | Param Type | Description | Required |
---|---|---|---|
shipping_address_enabled | boolean | Shipping address visibility on checkout | no |
billing_address_enabled | boolean | Billing address visibility on checkout | no |
default_shipping_zone_id | string | Default shipping zone id (UUID) | no |
Response
[422] Unprocessable Entity
json
{
"status": 422,
"detail": "Shipping zone not found",
"meta": {
"default_shipping_zone_id": [
"Shipping zone not found"
]
}
}
[200] Updated
json
{
"status": 200,
"detail": "Checkout settings successfully updated",
"meta": []
}