Skip to main content
POST
cURL

Auf einen Blick

Betriebsverhalten

Gibt eine Bestellung in HR-Prüfung frei oder lehnt sie ab. Eine Freigabe wendet die dokumentierten Standardwerte für Vertragsdaten an und sendet die entsprechenden Benachrichtigungen. Mit dryRun=true gibt die API die projizierte Bestellung zurück, ohne die Entscheidung anzuwenden oder Benachrichtigungen zu senden.
  • Nur eine Bestellung im Status under_review ist für diese öffentliche Decision-Operation zulässig.
  • Eine finale Entscheidung kann über diesen Endpoint nicht überschrieben werden.
  • Lesen Sie die Bestellung nach einem Timeout erneut, bevor Sie einen Retry erwägen.

Häufige Fehler

Die Response-Liste der Operation und die Seite Fehlerbehandlung sind für die vollständige Behandlung maßgeblich.

Vor der Implementierung

  • Erzeugen und protokollieren Sie für den Versuch eine neue X-Request-ID.
  • Behandeln Sie jeden dokumentierten Response-Status.
  • Protokollieren Sie weder X-API-Key noch unnötige personenbezogene Daten.
  • Gleichen Sie den aktuellen Ressourcenstatus ab, bevor Sie einen mehrdeutigen Write wiederholen.

Zugehöriger Integrationsleitfaden

Prüfen Sie den vollständigen Prozess sowie Status-, Retry- und Betriebsmuster für diese Operation.

Autorisierungen

X-API-Key
string
header
erforderlich

JobHandy integration API key. Send the credential in the X-API-Key header. Treat the key as a secret and use it only from trusted server-side environments.

Header

X-Tenant-ID
string
inactive
optional
not sent by default

Narrows the operation to one tenant in the API key's scope. Any referenced or target resource must be accessible through that tenant. In interactive clients, use the {{tenantId}} variable when a tenant must be selected. Keep the header disabled when tenant selection is not required.

Pattern: ^[0-9a-fA-F]{24}$
X-Request-ID
string<uuid>
inactive
optional
not sent by default

Optional request identifier. If supplied, it must be a UUID v4 or v7 and is returned unchanged in every response. If omitted, the API generates one. Invalid values return 400 INVALID_REQUEST_ID. If your client uses a {{requestId}} variable, refresh it with a new UUID version 4 or 7 for every HTTP request attempt. Keep the header disabled to let the API generate the request identifier.

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[47][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$

Pfadparameter

id
string
erforderlich

Order ID.

Pattern: ^[0-9a-fA-F]{24}$
Beispiel:

"69eb125feddfff1d13676751"

Abfrageparameter

dryRun
boolean
inactive
optional
server default: false
not sent by default

When true, the API validates the request without applying the change. The operation's responses specify the returned representation. When omitted, the server uses false.

Beispiel:

true

Body

application/json

The JSON request body must not exceed 5,242,880 bytes.

Approval or rejection to record for an order under HR review.

decision
enum<string>
erforderlich

Target decision. Values are case-sensitive.

Verfügbare Optionen:
approved,
rejected
Minimum string length: 1

Antwort

Returns the decided order, or the projected order when dryRun=true.

Order details.

id
string
erforderlich
read-only

Unique order identifier.

Pattern: ^[0-9a-fA-F]{24}$
Beispiel:

"69eb125feddfff1d13676751"

status
enum<string>
erforderlich
read-only

Current order lifecycle status. Values are case-sensitive.

Verfügbare Optionen:
under_review,
rejected,
approved,
active,
archived,
withdrawn
Minimum string length: 1
Beispiel:

"approved"

employee
string
erforderlich

Identifier of the employee who placed or owns the order.

Pattern: ^[0-9a-fA-F]{24}$
Beispiel:

"68a000000000000000000001"

orderNumber
integer
erforderlich
read-only

Human-readable numeric order number.

Muss ein Vielfaches sein von 1
Beispiel:

10495

createdAt
string<date-time>
erforderlich
read-only

UTC timestamp at which the order was created.

Minimum string length: 1
Pattern: Z$
Beispiel:

"2026-07-01T10:00:00.000Z"

updatedAt
string<date-time>
erforderlich
read-only

UTC timestamp of the latest order update.

Minimum string length: 1
Pattern: Z$
Beispiel:

"2026-07-02T12:15:00.000Z"

products
object[]
erforderlich

Products and accessories included in the order.

deliveryAddress
object | null
erforderlich
nullable

Delivery address for the order, or null when no delivery address is available.

Beispiel:
hrHistory
object
erforderlich

HR review request and decision history.

Beispiel:
contractDurationInMonths
number | null
erforderlich
nullable

Contract duration in whole months, or null when not determined.

Muss ein Vielfaches sein von 1
Beispiel:

24

contractStartDate
string<date-time> | null
erforderlich
nullable

UTC contract start date, or null when not determined.

Minimum string length: 1
Pattern: Z$
Beispiel:

"2026-08-01T00:00:00.000Z"

contractEndDate
string<date-time> | null
erforderlich
nullable

UTC contract end date, or null when not determined.

Minimum string length: 1
Pattern: Z$
Beispiel:

"2028-07-31T23:59:59.999Z"

attachments
object[]
erforderlich

Order contract documents available through the order attachment download endpoint.

Zuletzt geändert am 27. August 2026