Cancellation request denied

Webhook: cancel-request-rejected — OMS API · Webhooks

Sent when a cancellation request is denied by the seller. packageStatusName is CancelRequestDenied; the reason fields in the line carry the seller's denial reason.

Delivery: OMS sends a POST to the address defined in the subscription. Responses other than 2xx are considered failures and retried up to the subscription's retry count; the same event may occur multiple times, make processing safely repeatable (idempotent).

Field names: The body is serialized without authentication or with Basic Auth subscriptions in PascalCase (HookName, PackageId) skipping null fields; with Bearer/API key subscriptions in camelCase. Read the body case-insensitively.

İstek gövdesi

  • items (object[]): The line of the concluded cancellation request (single element).
    • items.orderItemLineId (string): The sourceOrderItemLineId value you sent for the line.
    • items.packageItemStatusId (integer<int32>): Line status ID.
    • items.packageItemStatusName (string): Line status name.
    • items.packageItemStatusReasonId (integer<int64>): Reason ID for cancellation on approval, or denial reason ID on rejection.
    • items.packageItemStatusReasonDesc (string): Reason description.
    • items.packageItemStatusReasonName (string): Reason name.
    • items.packageItemCancelApproveDesc (string): Approval explanation (only in approval event).
  • orderId (string): The orderId value you sent for the order.
  • hookName (string): Event name.
  • packageId (string): The sourcePackageId value of the package.
  • packageType (string): Package type.
  • packageStatusId (integer<int32>): Package status ID.
  • parentPackageId (string): If the package was created by splitting/partial cancellation, the source package ID; otherwise, the package's own ID.
  • packageStatusName (string): Package status name (see OrderPackageStatus).
  • packageStatusUser (string): Name of the user who changed the status.

Yanıtlar

  • 200: Confirm receipt of the notification with a 2xx; the body is not read.
  • 500: Any response other than 2xx is considered a failure and retried.