HPH Integrations APIv1 · Customer Testing
Customer Testing. Available to the Customer Testing group. Production is not available.
Developer guide

Idempotency, retries, and recovery

Prevent duplicate business operations and recover ambiguous outcomes without changing identity.

Create and retain request identity

Operations that change state require exactly one Idempotency-Key header: submitting an item for mapping, candidate expansion, review, ignore, release, setting or restoring a company item mapping, adding a catalog item, and selecting an alternative. The key is 1 to 128 visible ASCII characters. Create a fresh opaque key for each new business operation, do not place it in the JSON body, and do not derive business meaning from it.

Recover an ambiguous result

After a timeout or lost response, retry only when the operation guidance permits it. Reuse the same key and byte-equivalent business content. Never generate a new key merely because the first outcome is unknown; that could create a second operation.

Concurrency

Candidate expansion and mapping actions use result_revision, and review or release also uses expected_mapping_revision. Setting a company item mapping accepts an optional expected_mapping_revision, and restoring one requires it. Retrieve the current state when a stale revision is reported, then make an explicit new decision with a new idempotency key.