Customiser length pricings
Validate a length pricing duplicate
Dry-runs the duplicate without copying anything: the same body and the same problems the duplicate would return, or a 200 verdict when it would succeed. Nothing is written, no idempotency key is consumed, and no option-write budget is spent.
Overview
The verdict is advisory. Requires
pricing:write.
Authorisation
Bearer token required. Include it in the Authorization header.
Required scope: pricing:write
Path parameters
customiser_idrequired
The customiser id.
Example: 1
length_pricing_idrequired
The id of the length pricing to copy.
Example: 1
Request body
name
Request body example
application/json
{
"name": "Standard (AI Sign Designer)"
}Validate a length pricing duplicate
curl https://web.signcustomiser.com/api/v3/customisers/1/length-pricings/1/validate-duplicate \
--request POST \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Standard (AI Sign Designer)"
}'Response
{
"data": {
"object": "length_pricing_validation",
"operation": "duplicate",
"customiser_id": 42,
"length_pricing_id": 9,
"valid": true
},
"links": {
"self": "https://web.signcustomiser.com/api/v3/customisers/42/length-pricings/9/validate-duplicate",
"documentation": "https://www.signcustomiser.com/help/api/"
},
"meta": {
"api_version": "v3",
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}
}{
"type": "https://www.signcustomiser.com/help/api/problems/missing_api_key",
"title": "Missing API key",
"status": 401,
"code": "missing_api_key",
"detail": "Provide a store API key as a bearer token.",
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/insufficient_scope",
"title": "Insufficient scope",
"status": 403,
"code": "insufficient_scope",
"detail": "This operation requires the pricing:write scope.",
"required_scopes": [
"pricing:write"
],
"granted_scopes": [
"pricing:read"
],
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/resource_not_found",
"title": "Resource not found",
"status": 404,
"code": "resource_not_found",
"detail": "The requested resource does not exist or does not belong to the authenticated store.",
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/request_too_large",
"title": "Request too large",
"status": 413,
"code": "request_too_large",
"detail": "The request body must not exceed 2 MiB.",
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/validation_failed",
"title": "Validation failed",
"status": 422,
"code": "validation_failed",
"detail": "Through the API a frame-fit customiser holds one price list, because the customiser pricing document holds exactly one. Update the existing one instead.",
"errors": [
{
"pointer": "",
"code": "price_list_limit_reached",
"detail": "This customiser already has the one price list the API allows for its pricing model."
}
],
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/pricing_model_mismatch",
"title": "Pricing model mismatch",
"status": 422,
"code": "pricing_model_mismatch",
"detail": "A length pricing is used only by a customiser that prices by advanced_letter or frame_fit, and this customiser prices by simple_letter.",
"errors": [
{
"pointer": "",
"code": "pricing_model_mismatch",
"detail": "This customiser's pricing model does not use length pricing rows."
}
],
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/validation_failed",
"title": "Validation failed",
"status": 422,
"code": "validation_failed",
"detail": "The request payload failed validation.",
"errors": [
{
"pointer": "/name",
"code": "max",
"detail": "The name field must not be greater than 255 characters."
}
],
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}{
"type": "https://www.signcustomiser.com/help/api/problems/rate_limited",
"title": "Too many requests",
"status": 429,
"code": "rate_limited",
"detail": "You have exceeded the request limit for this API key.",
"retry_after": 60,
"request_id": "req_01jz9x2k7c8f3m5n6p7q8r9s0t"
}