لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Issue gift card
POST
/ admin/ v1/ stores/ {store_id}/ gift-cards- customers:write
- يدعم Idempotency-Key
Issues a gift card and, with notify, emails the recipient its code. The response is the only time the code is shown.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
valueintegerمطلوبMinor units of the store currency.
expires_ondate · أو nullYYYY-MM-DD: the last day it can be used.customer_idstring · أو nullTypeID with the
cusprefix.recipient_emailstring · أو nullrecipient_namestring · أو nullmessagestring · أو nullShown in the email.
sender_namestring · أو nullWho gives it, shown with the message ("From Faisal").
notestring · أو nullFor staff only.
notifybooleanEmail the recipient the code.
ما يُرجعه
201 Issued, with its code.
الأخطاء
- 422
validation_failedInvalid value, date or recipient.