/api/stores/configure
Register or update CSP configuration for the store. If the store does not yet exist, this endpoint will create it and store the key.
Authorization
| Header | Required |
|---|---|
X-Store-Key | Yes |
X-Store-Hash | Yes |
Parameters
| Parameter | Type | Description |
|---|---|---|
is_first_time | boolean | Optional. Set true for first-time setup so the store key is registered. |
store_name | string | Optional. Friendly name for the store. |
store_url | url | Optional. Store website URL. |
csp_api_endpoint | url | Required. CSP API base endpoint. |
csp_api_user | string | Required. CSP API username. |
csp_api_password | string | Required. CSP API password. |
Request example
{
"is_first_time": true,
"store_name": "My Store",
"store_url": "https://example.com",
"csp_api_endpoint": "https://csp.example.com/api",
"csp_api_user": "apiuser",
"csp_api_password": "apipassword"
}
Success response
{
"success": true,
"message": "Store configuration saved and store key registered successfully",
"data": {
"store_id": 123,
"store_hash": "abc123...",
"is_first_time": true
}
}