post
https://revamp-api.edfapay.com/api/v1/merchant-onboard/approve/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Approve a merchant onboarding request and create a live merchant.
Endpoint
POST https://demo-api.edfapay.com/api/v1/merchant-onboard/approve/{merchant_id}
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| merchant_id | UUID | Yes | Onboarding merchant ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | String | Yes | Merchant name |
| emailAddress | String | Yes | |
| mobileNumber | String | Yes | Phone |
| nameAR | String | Yes | Arabic name |
| country | String | Yes | Country |
| city | String | Yes | City |
| active | Boolean | Yes | Status |
| registeredMobileNumber | String | Yes | Phone |
| currencyCode | String | Yes | Currency |
| businessCategoryId | UUID | Yes | Category |
Request Example
curl --location 'https://demo-api.edfapay.com/api/v1/merchant-onboard/approve//xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"name": "Test User",
"emailAddress": "[email protected]",
"mobileNumber": "+966-500000000",
"nameAR": "Test User",
"country": "682",
"city": "1",
"active": true,
"registeredMobileNumber": "+966-500000000",
"currencyCode": "682",
"businessCategoryId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"parentBusinessUnitId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}'Response Body
| Field | Type | Description |
|---|---|---|
| code | Integer | Status |
| message | String | Message |
| data | Object | Merchant data |
Response Example
{
"code": 200,
"message": "Success",
"errorCode": null,
"data": "Successfuly approved"
}Important
Approval will create the merchant and activate it immediately