Volcano API
๐Ÿš€ API Endpoints

๐Ÿช Merchant Management

Merchant account and application management endpoints. 12 endpoints available.

๐ŸŽฏ Quick Stats

๐Ÿ“Š Methods

  • ๐Ÿ“ POST: 3 endpoints
  • ๐Ÿ” GET: 6 endpoints
  • โœ๏ธ PUT: 3 endpoints

๐Ÿ” Authentication

All endpoints in this section use the same authentication methods. Choose one:

๐Ÿ”‘ Bearer Token (Recommended)

For user session authentication

Add to request headers:

Authorization: Bearer YOUR_TOKEN

๐Ÿ”ง API Key

For server-side authentication

Add to request headers:

X-API-KEY: YOUR_API_KEY

โš ๏ธ Important: Do not use both authentication methods simultaneously in the same request.

๐Ÿ”— Endpoints Overview

MethodEndpointDescription
๐Ÿ“ POST/merchantcreate a merchant
๐Ÿ” GET/merchantGet merchant list, supports filtering by merchant name
๐Ÿ” GET/merchant/{merchantId}Get merchant by merchant id
โœ๏ธ PUT/merchant/{merchantId}Update merchant
๐Ÿ“ POST/merchant/app/createCreate an app for merchant
๐Ÿ” GET/merchant/app/listGet merchant's apps by merchant id
๐Ÿ” GET/merchant/app/{appKey}Get an app by app key
๐Ÿ” GET/merchant/app/{appId}Get an app by app id
โœ๏ธ PUT/merchant/app/{appId}/suspendRevoke an app for merchant with app id
๐Ÿ” GET/merchant/app/scopesGet available permission scopes for oauth app
โœ๏ธ PUT/merchant/app/scopesUpdate application permission scopes
๐Ÿ“ POST/merchant/user/createCreate a user for merchant

๐Ÿ“– Detailed Documentation

create a merchant

POST/merchant
Full URL
https://api.market.decenctype.com/merchant

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
merchantNamestringโœ…The name of the merchant
descriptionstringโŒThe description of the merchant

Description: create a merchant

Operation ID: create

Response Status:

  • โœ… 201: Success

This endpoint is only accessible by super admin

๐Ÿ“‹ Response Examples

response.json
1{
2 "merchantId": "example-id",
3 "merchantName": "example-merchantName",
4 "description": "example-description",
5 "status": "example-status",
6 "settings": "example-settings",
7 "oauthApps": [
8 {
9 "appId": "550e8400-e29b-41d4-a716-446655440000",
10 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
11 "merchant": "example-merchant",
12 "appName": "My OAuth App",
13 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
14 "appKey": "ak_123456789",
15 "appSecret": "as_987654321",
16 "redirectUrl": "https://example.com/callback",
17 "scopes": [
18 "read",
19 "write",
20 "delete"
21 ],
22 "ipWhitelist": [
23 "192.168.1.1",
24 "10.0.0.1"
25 ],
26 "status": "active",
27 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
28 }
29 ],
30 "cardProducts": [
31 {
32 "cardProductId": "example-id",
33 "issuerId": "example-id",
34 "issuer": "example-issuer",
35 "channelId": "example-id",
36 "channel": "example-channel",
37 "status": "example-status",
38 "product": "example-product",
39 "price": 1,
40 "currency": "example-currency",
41 "type": "example-type",
42 "cardDesign": "example-cardDesign",
43 "designId": "example-id",
44 "country": "example-country",
45 "bin": "example-bin",
46 "description": "example-description",
47 "isGlobal": true,
48 "settings": "example-settings"
49 }
50 ]
51}

๐Ÿ“ Example Request

curl -X POST "https://api.market.decenctype.com/merchant" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "merchantName": "Merchant 1"
}'

Get merchant list, supports filtering by merchant name

GET/merchant
Full URL
https://api.market.decenctype.com/merchant

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
namestringโŒNo description
sortFieldstringโŒๆŽ’ๅบๅญ—ๆฎต
sortstringโŒๆŽ’ๅบๆ–นๅผ
pagenumberโŒ้กต็ ๏ผˆไปŽ1ๅผ€ๅง‹๏ผ‰
pageSizenumberโŒๆฏ้กตๆกๆ•ฐ

Description: Get merchant list, supports filtering by merchant name

Operation ID: getByName

Response Status:

  • โœ… 200: The list of merchants.

๐Ÿ“‹ Response Examples

response.json
1{
2 "items": [
3 {
4 "merchantId": "example-id",
5 "merchantName": "example-merchantName",
6 "description": "example-description",
7 "status": "example-status",
8 "settings": "example-settings",
9 "oauthApps": [
10 {
11 "appId": "550e8400-e29b-41d4-a716-446655440000",
12 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
13 "merchant": "example-merchant",
14 "appName": "My OAuth App",
15 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
16 "appKey": "ak_123456789",
17 "appSecret": "as_987654321",
18 "redirectUrl": "https://example.com/callback",
19 "scopes": [
20 "read",
21 "write",
22 "delete"
23 ],
24 "ipWhitelist": [
25 "192.168.1.1",
26 "10.0.0.1"
27 ],
28 "status": "active",
29 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
30 }
31 ],
32 "cardProducts": [
33 {
34 "cardProductId": "example-id",
35 "issuerId": "example-id",
36 "issuer": "example-issuer",
37 "channelId": "example-id",
38 "channel": "example-channel",
39 "status": "example-status",
40 "product": "example-product",
41 "price": 1,
42 "currency": "example-currency",
43 "type": "example-type",
44 "cardDesign": "example-cardDesign",
45 "designId": "example-id",
46 "country": "example-country",
47 "bin": "example-bin",
48 "description": "example-description",
49 "isGlobal": true,
50 "settings": "example-settings"
51 }
52 ]
53 }
54 ],
55 "meta": "example-meta"
56}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get merchant by merchant id

GET/merchant/{merchantId}
Full URL
https://api.market.decenctype.com/merchant/{merchantId}

๐ŸŽฏ Path Parameters

  • merchantId (string) - โœ… Required: No description

Description: Get merchant by merchant id

Operation ID: getById

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "merchantId": "example-id",
3 "merchantName": "example-merchantName",
4 "description": "example-description",
5 "status": "example-status",
6 "settings": "example-settings",
7 "oauthApps": [
8 {
9 "appId": "550e8400-e29b-41d4-a716-446655440000",
10 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
11 "merchant": "example-merchant",
12 "appName": "My OAuth App",
13 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
14 "appKey": "ak_123456789",
15 "appSecret": "as_987654321",
16 "redirectUrl": "https://example.com/callback",
17 "scopes": [
18 "read",
19 "write",
20 "delete"
21 ],
22 "ipWhitelist": [
23 "192.168.1.1",
24 "10.0.0.1"
25 ],
26 "status": "active",
27 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
28 }
29 ],
30 "cardProducts": [
31 {
32 "cardProductId": "example-id",
33 "issuerId": "example-id",
34 "issuer": "example-issuer",
35 "channelId": "example-id",
36 "channel": "example-channel",
37 "status": "example-status",
38 "product": "example-product",
39 "price": 1,
40 "currency": "example-currency",
41 "type": "example-type",
42 "cardDesign": "example-cardDesign",
43 "designId": "example-id",
44 "country": "example-country",
45 "bin": "example-bin",
46 "description": "example-description",
47 "isGlobal": true,
48 "settings": "example-settings"
49 }
50 ]
51}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant/example-id" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Update merchant

PUT/merchant/{merchantId}
Full URL
https://api.market.decenctype.com/merchant/{merchantId}

๐ŸŽฏ Path Parameters

  • merchantId (string) - โœ… Required: No description

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
merchantNamestringโœ…The name of the merchant
descriptionstringโŒThe description of the merchant

Description: Update merchant

Operation ID: updateMerchant

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "merchantId": "example-id",
3 "merchantName": "example-merchantName",
4 "description": "example-description",
5 "status": "example-status",
6 "settings": "example-settings",
7 "oauthApps": [
8 {
9 "appId": "550e8400-e29b-41d4-a716-446655440000",
10 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
11 "merchant": "example-merchant",
12 "appName": "My OAuth App",
13 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
14 "appKey": "ak_123456789",
15 "appSecret": "as_987654321",
16 "redirectUrl": "https://example.com/callback",
17 "scopes": [
18 "read",
19 "write",
20 "delete"
21 ],
22 "ipWhitelist": [
23 "192.168.1.1",
24 "10.0.0.1"
25 ],
26 "status": "active",
27 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
28 }
29 ],
30 "cardProducts": [
31 {
32 "cardProductId": "example-id",
33 "issuerId": "example-id",
34 "issuer": "example-issuer",
35 "channelId": "example-id",
36 "channel": "example-channel",
37 "status": "example-status",
38 "product": "example-product",
39 "price": 1,
40 "currency": "example-currency",
41 "type": "example-type",
42 "cardDesign": "example-cardDesign",
43 "designId": "example-id",
44 "country": "example-country",
45 "bin": "example-bin",
46 "description": "example-description",
47 "isGlobal": true,
48 "settings": "example-settings"
49 }
50 ]
51}

๐Ÿ“ Example Request

curl -X PUT "https://api.market.decenctype.com/merchant/example-id" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "merchantName": "Merchant 1"
}'

Create an app for merchant

POST/merchant/app/create
Full URL
https://api.market.decenctype.com/merchant/app/create

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
appNamestringโœ…The name of the app
descriptionstringโŒThe description of the app
redirectUristringโŒThe redirect uri of the app
ipWhiteliststringโŒThe ip whitelist of the app

Description: Create an app for merchant

Operation ID: createOauthApp

Response Status:

  • โœ… 201: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "appId": "550e8400-e29b-41d4-a716-446655440000",
3 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
4 "merchant": "example-merchant",
5 "appName": "My OAuth App",
6 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
7 "appKey": "ak_123456789",
8 "appSecret": "as_987654321",
9 "redirectUrl": "https://example.com/callback",
10 "scopes": [
11 "read",
12 "write",
13 "delete"
14 ],
15 "ipWhitelist": [
16 "192.168.1.1",
17 "10.0.0.1"
18 ],
19 "status": "active",
20 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
21}

๐Ÿ“ Example Request

curl -X POST "https://api.market.decenctype.com/merchant/app/create" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "appName": "My App"
}'

Get merchant's apps by merchant id

GET/merchant/app/list
Full URL
https://api.market.decenctype.com/merchant/app/list

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
sortFieldstringโŒๆŽ’ๅบๅญ—ๆฎต
sortstringโŒๆŽ’ๅบๆ–นๅผ
pagenumberโŒ้กต็ ๏ผˆไปŽ1ๅผ€ๅง‹๏ผ‰
pageSizenumberโŒๆฏ้กตๆกๆ•ฐ

Description: Get merchant's apps by merchant id

Operation ID: getOauthApps

Response Status:

  • โœ… 200: The list of merchant apps.

๐Ÿ“‹ Response Examples

response.json
1{
2 "items": [
3 {
4 "appId": "550e8400-e29b-41d4-a716-446655440000",
5 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
6 "merchant": "example-merchant",
7 "appName": "My OAuth App",
8 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
9 "appKey": "ak_123456789",
10 "appSecret": "as_987654321",
11 "redirectUrl": "https://example.com/callback",
12 "scopes": [
13 "read",
14 "write",
15 "delete"
16 ],
17 "ipWhitelist": [
18 "192.168.1.1",
19 "10.0.0.1"
20 ],
21 "status": "active",
22 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
23 }
24 ],
25 "meta": "example-meta"
26}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant/app/list" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get an app by app key

GET/merchant/app/{appKey}
Full URL
https://api.market.decenctype.com/merchant/app/{appKey}

๐ŸŽฏ Path Parameters

  • appKey (string) - โœ… Required: No description

Description: Get an app by app key

Operation ID: getOauthAppByKey

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "appId": "550e8400-e29b-41d4-a716-446655440000",
3 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
4 "merchant": "example-merchant",
5 "appName": "My OAuth App",
6 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
7 "appKey": "ak_123456789",
8 "appSecret": "as_987654321",
9 "redirectUrl": "https://example.com/callback",
10 "scopes": [
11 "read",
12 "write",
13 "delete"
14 ],
15 "ipWhitelist": [
16 "192.168.1.1",
17 "10.0.0.1"
18 ],
19 "status": "active",
20 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
21}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant/app/example-appKey" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get an app by app id

GET/merchant/app/{appId}
Full URL
https://api.market.decenctype.com/merchant/app/{appId}

๐ŸŽฏ Path Parameters

  • appId (string) - โœ… Required: No description

Description: Get an app by app id

Operation ID: getOauthAppById

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "appId": "550e8400-e29b-41d4-a716-446655440000",
3 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
4 "merchant": "example-merchant",
5 "appName": "My OAuth App",
6 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
7 "appKey": "ak_123456789",
8 "appSecret": "as_987654321",
9 "redirectUrl": "https://example.com/callback",
10 "scopes": [
11 "read",
12 "write",
13 "delete"
14 ],
15 "ipWhitelist": [
16 "192.168.1.1",
17 "10.0.0.1"
18 ],
19 "status": "active",
20 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
21}

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant/app/example-id" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Revoke an app for merchant with app id

PUT/merchant/app/{appId}/suspend
Full URL
https://api.market.decenctype.com/merchant/app/{appId}/suspend

๐ŸŽฏ Path Parameters

  • appId (string) - โœ… Required: No description

Description: Revoke an app for merchant with app id

Operation ID: suspendOauthApp

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "appId": "550e8400-e29b-41d4-a716-446655440000",
3 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
4 "merchant": "example-merchant",
5 "appName": "My OAuth App",
6 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
7 "appKey": "ak_123456789",
8 "appSecret": "as_987654321",
9 "redirectUrl": "https://example.com/callback",
10 "scopes": [
11 "read",
12 "write",
13 "delete"
14 ],
15 "ipWhitelist": [
16 "192.168.1.1",
17 "10.0.0.1"
18 ],
19 "status": "active",
20 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
21}

๐Ÿ“ Example Request

curl -X PUT "https://api.market.decenctype.com/merchant/app/example-id/suspend" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Get available permission scopes for oauth app

GET/merchant/app/scopes
Full URL
https://api.market.decenctype.com/merchant/app/scopes

๐Ÿ” Authentication: Required (see authentication section above)

Description: Get available permission scopes for oauth app

Operation ID: getAvailableScopes

Response Status:

  • โœ… 200: The available permission scopes for oauth app.

๐Ÿ“‹ Response Examples

response.json
1[
2 {
3 "permissionId": 1,
4 "action": {},
5 "resource": "example-resource",
6 "name": "example-name",
7 "description": "example-description",
8 "scope": {},
9 "roles": [
10 {
11 "roleId": 1,
12 "name": "example-name",
13 "description": "example-description",
14 "permissions": [],
15 "users": [
16 {
17 "basicKyc": 3,
18 "userId": "example-id",
19 "username": "example-username",
20 "firstName": "example-firstName",
21 "lastName": "example-lastName",
22 "email": "user@example.com",
23 "emailVerified": true,
24 "number": 1,
25 "path": "example-path",
26 "inviteCode": "example-inviteCode",
27 "parentInviteCode": "example-parentInviteCode",
28 "level": 1,
29 "status": {},
30 "merchantId": "example-id",
31 "lastLoginIp": "example-lastLoginIp",
32 "lastLoginAt": "2024-01-01T12:00:00Z",
33 "permissions": [],
34 "merchant": "example-merchant",
35 "groupMemberships": [
36 {
37 "membershipId": "123e4567-e89b-12d3-a456-426614174000",
38 "userId": "123e4567-e89b-12d3-a456-426614174000",
39 "groupId": "123e4567-e89b-12d3-a456-426614174000",
40 "role": "member",
41 "status": "active",
42 "user": "example-user",
43 "userGroup": "example-userGroup"
44 }
45 ]
46 }
47 ]
48 }
49 ],
50 "users": [
51 {
52 "basicKyc": 3,
53 "userId": "example-id",
54 "username": "example-username",
55 "firstName": "example-firstName",
56 "lastName": "example-lastName",
57 "email": "user@example.com",
58 "emailVerified": true,
59 "number": 1,
60 "path": "example-path",
61 "inviteCode": "example-inviteCode",
62 "parentInviteCode": "example-parentInviteCode",
63 "level": 1,
64 "status": {},
65 "merchantId": "example-id",
66 "lastLoginIp": "example-lastLoginIp",
67 "lastLoginAt": "2024-01-01T12:00:00Z",
68 "permissions": [],
69 "merchant": "example-merchant",
70 "groupMemberships": [
71 {
72 "membershipId": "123e4567-e89b-12d3-a456-426614174000",
73 "userId": "123e4567-e89b-12d3-a456-426614174000",
74 "groupId": "123e4567-e89b-12d3-a456-426614174000",
75 "role": "member",
76 "status": "active",
77 "user": "example-user",
78 "userGroup": "example-userGroup"
79 }
80 ]
81 }
82 ]
83 }
84]

๐Ÿ“ Example Request

curl -X GET "https://api.market.decenctype.com/merchant/app/scopes" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json"

Update application permission scopes

PUT/merchant/app/scopes
Full URL
https://api.market.decenctype.com/merchant/app/scopes

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
appIdstringโœ…ๅบ”็”จID
scopesarrayโœ…ๆƒ้™่Œƒๅ›ดIDๅˆ—่กจ

Description: Update application permission scopes

Operation ID: updateOauthAppScopes

Response Status:

  • โœ… 200: Success

๐Ÿ“‹ Response Examples

response.json
1{
2 "appId": "550e8400-e29b-41d4-a716-446655440000",
3 "merchantId": "550e8400-e29b-41d4-a716-446655440000",
4 "merchant": "example-merchant",
5 "appName": "My OAuth App",
6 "description": "่ฟ™ๆ˜ฏไธ€ไธชOAuthๅบ”็”จ็š„ๆ่ฟฐ",
7 "appKey": "ak_123456789",
8 "appSecret": "as_987654321",
9 "redirectUrl": "https://example.com/callback",
10 "scopes": [
11 "read",
12 "write",
13 "delete"
14 ],
15 "ipWhitelist": [
16 "192.168.1.1",
17 "10.0.0.1"
18 ],
19 "status": "active",
20 "reason": "ๅบ”็”จๆš‚ๅœไฝฟ็”จๅŽŸๅ› ่ฏดๆ˜Ž"
21}

๐Ÿ“ Example Request

curl -X PUT "https://api.market.decenctype.com/merchant/app/scopes" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "appId": "550e8400-e29b-41d4-a716-446655440000",
  "scopes": [
    1,
    2,
    3
  ]
}'

Create a user for merchant

POST/merchant/user/create
Full URL
https://api.market.decenctype.com/merchant/user/create

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
emailstringโœ…email
passwordstringโœ…password
usernamestringโœ…็”จๆˆทๅ
merchantIdstringโœ…merchantId

Description: Create a user for merchant

Operation ID: createUser

Response Status:

  • โœ… 201: The user has been successfully created.

๐Ÿ“‹ Response Examples

response.json
1{
2 "basicKyc": 3,
3 "advancedKyc": 0,
4 "userId": "example-id",
5 "username": "example-username",
6 "firstName": "example-firstName",
7 "lastName": "example-lastName",
8 "email": "user@example.com",
9 "emailVerified": true,
10 "password": "example-password",
11 "number": 1,
12 "path": "example-path",
13 "inviteCode": "example-inviteCode",
14 "parentInviteCode": "example-parentInviteCode",
15 "level": 1,
16 "status": {},
17 "merchantId": "example-id",
18 "lastLoginIp": "example-lastLoginIp",
19 "lastLoginAt": "2024-01-01T12:00:00Z",
20 "role": "example-role",
21 "roles": [
22 {
23 "roleId": 1,
24 "name": "example-name",
25 "description": "example-description",
26 "permissions": [
27 {
28 "permissionId": 1,
29 "action": {},
30 "resource": "example-resource",
31 "name": "example-name",
32 "description": "example-description",
33 "scope": {},
34 "roles": [],
35 "users": []
36 }
37 ],
38 "users": []
39 }
40 ],
41 "permissions": [
42 {
43 "permissionId": 1,
44 "action": {},
45 "resource": "example-resource",
46 "name": "example-name",
47 "description": "example-description",
48 "scope": {},
49 "roles": [
50 {
51 "roleId": 1,
52 "name": "example-name",
53 "description": "example-description",
54 "permissions": [],
55 "users": []
56 }
57 ],
58 "users": []
59 }
60 ],
61 "merchant": "example-merchant",
62 "groupMemberships": [
63 {
64 "membershipId": "123e4567-e89b-12d3-a456-426614174000",
65 "userId": "123e4567-e89b-12d3-a456-426614174000",
66 "groupId": "123e4567-e89b-12d3-a456-426614174000",
67 "role": "member",
68 "status": "active",
69 "user": "example-user",
70 "userGroup": "example-userGroup"
71 }
72 ]
73}

๐Ÿ“ Example Request

curl -X POST "https://api.market.decenctype.com/merchant/user/create" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "email": "mail@example.com",
  "password": "123456",
  "username": "john doe",
  "merchantId": "1234567890"
}'