Onerway
POST

Update Ethoca enrollment status

Use this endpoint to request an Ethoca enrollment status transition, such as withdrawing a pending application, disabling an enrolled service, or resubmitting after a failed review.

Request

ApiKey
API key for the merchant account. Send it in the ApiKey request header. See Authentication.
Example:
merchantNo
Merchant number assigned by Onerway. It limits the transition to applications under one merchant account.
Example:
id
Enrollment application ID identifying the Ethoca service application to transition.
Example:
billDesc
Merchant billing descriptor. Provide it when resubmitting or supplementing application information.
Example:
resellerSubMerchantId
Condition: Provide this field when an agency operator transitions a sub-merchant application.
Sub-merchant identifier assigned by the agency operator.
enrollmentStatus
Expected current enrollment status. If provided, it must match the current status of the application. If omitted, Onerway uses the current status stored for the application. The event determines the next status.
Allowed values
PENDING_SUBMISSION
Pending submission. The application has been created but has not been submitted for review.
SUBMITTED_AND_PENDING_ENROLLMENT
Submitted and pending enrollment. The application has been submitted and is waiting for review and enrollment processing.
ENROLLING
Enrolling. The application passed review and alert-service enrollment configuration is in progress.
Constraints
Rule
Only the state and event combinations described in enrollmentEvent are supported. Merchant transitions are unavailable while the status is ENROLLING or DISENROLLING.
Rule
When submitting from PENDING_SUBMISSION or ENROLLMENT_FAILED, the application must contain billDesc.
enrollmentEvent
Enrollment status transition event, expressing the action requested by this call.
Example:
Allowed values
MERCHANT_SUBMIT
Submit an enrollment application from PENDING_SUBMISSION, ENROLLMENT_FAILED, or DISENROLLED; the next status is SUBMITTED_AND_PENDING_ENROLLMENT. From ENROLLED, submit a request to close the service; the next status is SUBMITTED_AND_PENDING_DISENROLLMENT.
MERCHANT_WITHDRAW
Withdraw an enrollment request from SUBMITTED_AND_PENDING_ENROLLMENT, returning it to PENDING_SUBMISSION; or withdraw a closure request from SUBMITTED_AND_PENDING_DISENROLLMENT, returning it to ENROLLED.
notes
Status transition note for the requested action, including withdrawal reasons, resubmission explanations, or supplementary material descriptions.
Example:

Request example

curl -X POST 'https://sandbox-payment-api.onerway.com/ethoca/agency-cw/enrollment/transition' \
  -H 'ApiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "merchantNo": "replace_with_merchant_no",
  "id": "replace_with_enrollment_id",
  "enrollmentStatus": "ENROLLMENT_FAILED",
  "enrollmentEvent": "MERCHANT_SUBMIT",
  "billDesc": "EXAMPLE STORE US",
  "notes": "Updated application details"
}'

Response

respCode
20000 means the transition request was processed successfully. Other values are error codes. See Response codes.
respMsg
Human-readable message for the response code.
Business data object indicating whether this status transition request was accepted and executed by the system.

Response example

Example code is unavailable.

No error responses are documented for this endpoint.