apiSubmitListing
MutationKey requiredShop API: lists one shop SKU. Attaches an offer to a known product, or opens a new product in the moderation pipeline exactly like a dashboard draft (contract §5). Idempotent by idempotencyKey.
Arguments
| Name | Type | Description |
|---|---|---|
| idempotencyKey | String! | required |
| input | ApiListingInput! | required |
Returns
Example
mutation ApiSubmitListing($idempotencyKey: String!, $input: ApiListingInput!) {
apiSubmitListing(idempotencyKey: $idempotencyKey, input: $input) {
availableQty
buyBox
draftId
mediaState
missingFields
moderationNotes {
code
field
message
}
offerId
priceMillimes
productId
sku
state
updatedAt
variantId
wamiaSku
}
}curl -sS https://api.wamia.tn/connect/graphql \
-H 'content-type: application/json' \
-H 'x-api-key: wamia_…' \
-H 'user-agent: my-integration/1.0.0 (+https://shop.example.tn)' \
-H 'wamia-idempotency-key: 6f0e1a2b-…' \
--data '{"query":"mutation ApiSubmitListing($idempotencyKey: String!, $input: ApiListingInput!) { apiSubmitListing(idempotencyKey: $idempotencyKey, input: $input) { availableQty buyBox draftId mediaState missingFields moderationNotes { code field message } offerId priceMillimes productId sku state updatedAt variantId wamiaSku } }"}'