Get a std labor rate card
Módulo Canon
GET/canon/std/labor-rate-cards/{rate_card_id}canonStdLaborRateCards.get
A labor rate card line. Standard Library row, copied into each new org as editable org data. Returns one std labor rate card with its `ETag`. A std labor rate card the caller may not see returns 404.
- Requiere la capacidad canon.taxonomy.read.
- Alcances de OAuth: canon.
- Estados de error: 400, 401, 404, 429. Los errores son detalles de problema RFC 9457.
Parámetros de ruta y de consulta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| rate_card_id | string | Sí | Canon rate card identifier.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| fields | Fields | No | Sparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Restricciones: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$ |
Respuesta 200: StdLaborRateCard
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| rate_card_id | string | Sí | Canon rate card identifier.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| role_code | RoleCode | Sí | Workforce role code from `xpms.dim_role`, on URID grammar.Restricciones: pattern ^[0-9]000\.[0-9]{2}\.[0-9]{2}$ |
| job_title | string | null | Sí | Job title of the role.Restricciones: length 1 to 300 |
| class_code | DeptCode | Sí | Department class code from `xpms.dim_department` (Section 3.2).Restricciones: pattern ^[0-9]000$ |
| department | string | Sí | Department of the role.Restricciones: length 1 to 200 |
| worker_classification | string | Sí | Worker classification label.Restricciones: length 1 to 200 |
| pay_basis | string | Sí | Pay basis.Restricciones: length 1 to 200 |
| arrangement | string | Sí | Arrangement.Restricciones: length 1 to 200 |
| standard_rate_minor | integer (int64) | null | Sí | Standard rate. Integer minor units of the resource currency; null means unpriced, never zero. |
| min_grade_rate_minor | integer (int64) | null | Sí | Lowest grade rate. Integer minor units of the resource currency; null means unpriced, never zero. |
| max_grade_rate_minor | integer (int64) | null | Sí | Highest grade rate. Integer minor units of the resource currency; null means unpriced, never zero. |
| per_diem_rate_minor | integer (int64) | null | Sí | Per diem rate. Integer minor units of the resource currency; null means unpriced, never zero. |
| currency_code | string | Sí | ISO 4217 currency of the rates.Restricciones: pattern ^[A-Z]{3}$ |
| overtime_rule_id | string | Sí | Canon overtime rule.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| ot_multiplier | number | Sí | Overtime multiplier. |
| dt_multiplier | number | Sí | Double time multiplier. |
| gl_account | string | null | Sí | Expense GL account of the role's department.Restricciones: length 1 to 50 |
| gl_account_name | string | null | Sí | Name of that GL account.Restricciones: length 1 to 300 |
{
"rate_card_id": "LRC-001",
"role_code": "5000.50.01",
"job_title": "Head Rigger",
"class_code": "4000",
"department": "Production",
"worker_classification": "Employee",
"pay_basis": "Hourly",
"arrangement": "Per Engagement",
"standard_rate_minor": 4500,
"min_grade_rate_minor": 3800,
"max_grade_rate_minor": 5200,
"per_diem_rate_minor": 6500,
"currency_code": "USD",
"overtime_rule_id": "OTR-001",
"ot_multiplier": 1.5,
"dt_multiplier": 2,
"gl_account": "5400",
"gl_account_name": "Production Labor"
}Ejemplos de código
curl -X GET "$XOS_BASE_URL/canon/std/labor-rate-cards/LRC-001" \
-H "Authorization: Bearer $XOS_API_KEY"const { data, etag } = await xos.canonStdLaborRateCards.get("LRC-001");response = xos.canon_std_labor_rate_cards.get("LRC-001")xos canon-std-labor-rate-cards get LRC-001