Listings

Remove variant binding

Removes one offer line, local record only.

DELETE
/v1/listings/{listingId}/variant-bindings/{bindingId}

Removes only the line. The MarketplaceProduct variant and the Variant stay as they are, and the marketplace is not called.

  • The id leaves syncPolicy.inventory.eligibleBindingIds.
  • linkState is recalculated: with no lines left, it becomes unlinked.
  • The Listing becomes publicationState: dirty and emits listing.updated.

Responds 204 with no body. A missing binding, or one from another Listing, returns 404 NOT_FOUND.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

listingId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
bindingId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The line was removed locally and left syncPolicy.inventory.eligibleBindingIds. The listing becomes dirty, or unlinked without lines; nothing is published.

curl -X DELETE "https://example.com/v1/listings/497f6eca-6276-4993-bfeb-53cbbbba6f08/variant-bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty