Onerway
Scenario overview

Additional materials

Onerway asks for materials in two situations: a KYC review and inbound matching. The method is the same — read the request from the event, upload files, submit the materials, then wait for the next event.

Scenarios · This page is independent of integration method. API parameters live in the API Reference; event semantics in Events and status.

Concepts and choices

An RFI is not a failure. It means the business step needs more information. Supply what it asks for and the flow continues.

The request is in the event. Details live in data.requestedInfomation; work from actionId and documentName, not from experience.

A revocation means it is no longer needed. Stop submitting. Materials already sent do not need to be withdrawn.

Same business, same ID. A material request does not create a new case; always reference the original rechargeId or userId.

Lifecycle and notifications

  1. Receive the RFI event. KYC arrives as EMFIN.KYC_STATUS with action=COMPLIANCE_KYC_RFI; inbound payments arrive as EMFIN.TRANS_RFI.
  2. Read the request. Note which documents, and any format or deadline.
  3. Upload the files. Use multipart/form-data; fileName is at most 64 characters and each file at most 15 MB. Keep the returned fileId.
  4. Submit the materials. KYC and inbound matching each have a dedicated endpoint, carrying the original business ID and the file list.
  5. Confirm acceptance. The response means received, not approved.
  6. Wait for the next event. Another request, a revocation, or the next result.

Edge cases

SituationWhat to do
Materials incomplete or wrongExpect another RFI. It is a second round on the same case, not a new one.
Revocation receivedStop submitting; the earlier request stands as a record only.
A document cannot be obtainedOn the inbound side, explain in remark and send responseType; completeness is then not checked.
Submitting the same batch twiceIt does not speed anything up; keep the call idempotent by business ID.
File rejected on format or sizeRe-upload within the limits of the upload endpoint.
Treating RFI as a failureDo not refund or close the case; supply the materials.
No response before the deadlineThe business step may time out; the final event decides.

The two RFI types

ScenarioEventSubmission endpointWhat follows
KYC reviewEMFIN.KYC_STATUS
action=COMPLIANCE_KYC_RFI
POST /api/v2/kyc/rfi/additional/materialEMFIN.KYC_STATUS with a decision
Inbound matchingEMFIN.TRANS_RFIPOST /api/v2/deposit/rfi/additional/materialEMFIN.RECHARGE_RESULT, or another RFI

On the inbound side you may also send remark (≤512 chars) to explain a document you cannot provide; responseType is then required. CONTINUE continues the review without the materials; REJECT treats the transaction as rejected, and EMFIN.RECHARGE_RESULT then carries status=F.

Developer view

There is no sequence diagram here: the RFI path is a single line (request, submit, result), so the endpoint table is more direct.

StepEndpoint / eventKey fields
Read the requestEvent EMFIN.KYC_STATUS / EMFIN.TRANS_RFIdata.requestedInfomation, data.rechargeId / data.userId
Upload filesPOST /api/v2/upload/filefileName (≤64 chars), file (≤15 MB); returns fileId
Submit (KYC)POST /api/v2/kyc/rfi/additional/materialuserId, requestedInfomation (actionId / documentName / fileId)
Submit (inbound)POST /api/v2/deposit/rfi/additional/materialuserId, rechargeId, requestedInfomation, or remark + responseType
Confirm the real resultEvent EMFIN.KYC_STATUS / EMFIN.RECHARGE_RESULTstatus