תשלום שאושר ב-Grow (לשעבר משולם) מפיק אוטומטית חשבונית מס קבלה.
התקנה (5 דקות)#
- ב-SLK Invoices: חיבורים → סליקה ותשלומים → Grow (משולם), והעתיקו את הכתובת.
- הגדירו סוד (טוקן) משלכם. Grow לא חותמת על ההודעה, והטוקן הוא ההגנה.
- הוסיפו לסוף הכתובת
?token=ואחריו הסוד:https://invoice.slk.co.il/api/billing/ecommerce/meshulam/<hookId>?token=<הסוד>. - אם אתם עובדים מול ה-API של Grow: ב-
createPaymentProcessהגדירוnotifyUrlעם הכתובת המלאה. - אם אתם עובדים עם דפי תשלום, קישורי תשלום או פלאגין: פנו לתמיכה של Grow וביקשו להפעיל Webhook לחשבון עם הכתובת המלאה.
- את מספר ההזמנה שלכם העבירו באחד משדות
customFields. הוא יופיע בנושא המסמך. - בחרו סוג מסמך ולחצו על "שליחת הזמנת בדיקה".
Developer reference#
- Endpoint:
POST /api/billing/ecommerce/meshulam/<hookId>?token=<secret>. Two shapes are accepted, form-encoded (bracketed keys such asdata[sum]) or JSON. - Docs: server-to-server callback https://developers.grow.business/reference/server-response (form-encoded, not JSON;
status,err,data.*); account webhooks https://developers.grow.business/docs/overview-7 (JSON:transactionCode,paymentSum,paymentDesc,fullName,payerEmail,cardSuffix,paymentDate,webhookKey). Neither page documents a signature. - Auth: shared token (
?token=orx-slk-token). - Issues a document when: for the callback shape
status=1,errempty anddata.statusCode=2(paid); for the webhook shape a transaction code and a sum exist and it is not a failed recurring charge (error_message/charges_attempts). The sum must be > 0. - Idempotency:
externalId=data.transactionId(ortransactionCode);apiIdentifier=meshulam-<id>. Grow retries the callback; a redelivery returns the same document. Calling Grow'sApproveTransactionis the caller's job; the document is issued whether or not it is called.
| Grow field | Document |
|---|---|
data.sum / paymentSum (shekels) | one line + one credit-card payment, ×100 → agorot, taxIncluded: true |
data.description / paymentDesc | line name (fallback "תשלום באתר") |
data.fullName / fullName | customer name |
data.payerEmail / payerEmail | customer email |
data.cardSuffix / cardSuffix | payment cardLast4 |
data.paymentDate (DD/MM/YY) | issue date |
first data.customFields.* | subject / comments |
curl -X POST "https://invoice.slk.co.il/api/billing/ecommerce/meshulam/<hookId>?token=<secret>" \
-H "content-type: application/x-www-form-urlencoded" \
--data-urlencode "status=1" --data-urlencode "err=" \
--data-urlencode "data[transactionId]=145111110" --data-urlencode "data[sum]=269" \
--data-urlencode "data[statusCode]=2" --data-urlencode "data[fullName]=Michal Avraham" \
--data-urlencode "data[payerEmail][email protected]" --data-urlencode "data[paymentDate]=21/12/21"Troubleshooting#
- 401: הטוקן בכתובת לא זהה לסוד שהגדרתם ב-SLK Invoices.
- 404: מזהה ה-hook שגוי. העתיקו את הכתובת מחדש.
- 200 עם
skipped: התשלום לא הושלם (statusשונה מ-1 אוstatusCodeשונה מ-2), או שזה כשל בחיוב חוזר. - לא מגיעה שום הודעה: Webhook בחשבון מופעל רק דרך התמיכה של Grow.
notifyUrlנשלח רק בקריאה שיצרה את התשלום. - "חסום" / "רדום": החבילה או המכסה החודשית לא מאפשרות הפקה. נסו שוב ידנית מיומן ההזמנות.