Setting up Callback
All of Esign products are processed asynchronously.
With that in mind, callbacks (webhook) will be the primary communication between our platform and your system to make sure integration is seamless.
Details To Share With DigiSign Team
- Callback endpoint URL
- HTTP method (
POST,PUT, orPATCH) - Optional callback authentication (Basic Auth, Bearer token, etc.)
- Optional callback source IP whitelist
Callback Endpoint Requirements
Your callback endpoint should:
- Accept JSON payloads
- Respond
200 OKquickly - Process business logic asynchronously
- Be idempotent by a combination of
submissionIdstatusandresultfields.
Recommended Callback Handling Logic
- Verify callback authenticity based on your configured method.
- Parse
submissionId,status,result,reasonCode. - Return
200 OKimmediately.
Fallback Polling
In the extremely rare case where callback is delayed or not sent, you can also poll our Submission details API.
API doc: https://docs.midtrans.com/reference/getsubmissions
curl -X GET \
"https://onekyc.ky.id.staging.gopayapi.com/esign-partner/v1/submissions" \
-H "x-onekyc-token: <TOKEN>" \
-H "x-partner-user-id: user-123" \
-H "x-partner-user-id-type: CLIENT_USER_ID" \
-H "x-partner-session-id: session-005"Updated about 1 hour ago