Skip to main content

Update Source Code Mapping

PUT 

/api/veracore/integration-instances/:integration_instance/source-code-mappings/:source_code_mapping

Update a source code mapping. Only the fields provided are changed; null values are ignored.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Body fields

  • sub_sales_channel_id (optional, integer) — move the mapping to a different sub sales channel; must exist when provided. Note: because null values are ignored, a sub-channel mapping cannot be converted to a catch-all here — delete it and create a new one instead.
  • source_code (optional, string) — the Veracore source code to stamp on matching orders.

The sales channel of a mapping cannot be changed.

Errors

  • 404 when the mapping or integration instance does not exist.
  • 422 when sub_sales_channel_id does not reference an existing sub sales channel.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type