انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Discount share

GET/admin/v1/stores/{store_id}/discounts/{discount_id}/share
  • discounts:read

A discount's link and QR code.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • discount_idstringمطلوب

    معرّف من نوع disc، مثل disc_01k8qs5s….

معاملات الاستعلام

  • redirectstring

    Where the link lands: a path on this store.

الترويسات

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

ما يُرجعه

200 The link and QR code.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such discount.
  • 409Only a discount with one code has one link.
  • 422validation_failedThe landing page isn't a path on this store.