POST /merchants/create

Create Merchant ---- [auth scope: admin, grandparent, parent]

post
Authorizations
Body
redirectUrlstringRequired

The new merchant URL

merchantNamestringRequired

The new merchant name

statusbooleanRequired

The new merchant status

parentIdstringRequired

The new merchant parent

themeall ofRequired

The new merchant theme

preferredDisplayModestringRequired

The new merchant Preferred display mode for payment

paymentStatusFetchEnabledbooleanRequired

Whether to fetch payment status after processing

popupOverlayConfigall ofOptional

Configuration for popup overlay content

Example: {"title":"Payment in progress","message":"Click anywhere to continue payment!"}
Responses
200

Merchant created successfully

application/json
post
POST /merchants/create HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 463

{
  "redirectUrl": "text",
  "merchantName": "text",
  "status": true,
  "parentId": "text",
  "theme": {
    "logo": "text",
    "leftSidebarBgColor": "text",
    "leftSidebarActiveColor": "text",
    "leftSidebarHoverColor": "text",
    "leftSidebarTextColor": "text",
    "topBarTextColor": "text",
    "topBarBgColor": "text",
    "paymentLinkMenuAlias": "text"
  },
  "preferredDisplayMode": "text",
  "paymentStatusFetchEnabled": true,
  "popupOverlayConfig": {
    "title": "Payment in progress",
    "message": "Click anywhere to continue payment!"
  }
}
200

Merchant created successfully

{
  "merchantId": "text",
  "redirectUrl": "text",
  "merchantName": "text",
  "status": true,
  "parentId": "text",
  "authClientId": "text",
  "authClientSecret": "text",
  "hmacKey": "text",
  "theme": {
    "logo": "text",
    "leftSidebarBgColor": "text",
    "leftSidebarActiveColor": "text",
    "leftSidebarHoverColor": "text",
    "leftSidebarTextColor": "text",
    "topBarTextColor": "text",
    "topBarBgColor": "text",
    "paymentLinkMenuAlias": "text"
  },
  "partnerMerchantId": "text"
}

Last updated