Get checkout fields
Retrieve all checkout field definitions and their current enabled/required settings.
AuthorizationBasic <token>
WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).
In: header
Response Body
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/checkout-fields/get-fields"{
"fields": {
"basic_info": {
"property1": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
},
"property2": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
}
},
"billing_address": {
"property1": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
},
"property2": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
}
},
"shipping_address": {
"property1": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
},
"property2": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
}
},
"agree_terms": {
"label": "string",
"type": "string",
"can_alter": "yes",
"help_text": "string"
}
},
"settings": {
"basic_info": {
"property1": {
"required": "yes",
"enabled": "yes",
"text": "string"
},
"property2": {
"required": "yes",
"enabled": "yes",
"text": "string"
}
},
"billing_address": {
"property1": {
"required": "yes",
"enabled": "yes",
"text": "string"
},
"property2": {
"required": "yes",
"enabled": "yes",
"text": "string"
}
},
"shipping_address": {
"property1": {
"required": "yes",
"enabled": "yes",
"text": "string"
},
"property2": {
"required": "yes",
"enabled": "yes",
"text": "string"
}
},
"agree_terms": {}
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}