القائمة

apiMyOrdersPage

استعلاميتطلب مفتاحًا

Shop API: slices ordered by last change with a keyset cursor (contract §7). Poll with updatedSince and the last nextCursor; a slice is never skipped or repeated.

الوسائط

الاسمالنوعالوصف
cursorString
limitInt
statuses[String!]
updatedSinceDateTime

يُرجع

SellerOrderSlicePage!

مثال

GraphQL
query ApiMyOrdersPage($cursor: String, $limit: Int, $statuses: [String!], $updatedSince: DateTime) {
  apiMyOrdersPage(cursor: $cursor, limit: $limit, statuses: $statuses, updatedSince: $updatedSince) {
    items {
      codAmountMillimes
      contactName
      contactPhone
      customerNote
      orderId
      orderNo
      orderStatus
      paymentMethod
      placedAt
    }
    nextCursor
  }
}
curl
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":"query ApiMyOrdersPage($cursor: String, $limit: Int, $statuses: [String!], $updatedSince: DateTime) { apiMyOrdersPage(cursor: $cursor, limit: $limit, statuses: $statuses, updatedSince: $updatedSince) { items { codAmountMillimes contactName contactPhone customerNote orderId orderNo orderStatus paymentMethod placedAt } nextCursor } }"}'