๐ฆ Order Management
Order creation, query, and status management endpoints. 21 endpoints available.
๐ฏ Quick Stats
- Total Endpoints: 21
- Base URL:
https://api.market.decenctype.com - Authentication: Bearer Token / API Key
๐ Methods
- ๐ POST: 8 endpoints
- ๐ GET: 11 endpoints
- ๐๏ธ DELETE: 1 endpoints
- โ๏ธ PUT: 1 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
| Method | Endpoint | Description |
|---|---|---|
๐ POST | /order/card/create | Create card order |
๐ POST | /order/card/bulk-create | Create bulk card order |
๐ GET | /order/card/{orderId} | Get card order by id |
๐ GET | /order/card | Get card order list |
๐ POST | /order/card/{orderId}/pay | Pay Card order |
๐๏ธ DELETE | /order/card/{orderId}/cancel | Cancel card order |
๐ POST | /order/transfer | Create transfer order |
๐ GET | /order/transfer/list | Get transfer order list |
๐ GET | /order/transfer/user-stats | Get transfer user statistics |
๐ GET | /order/transfer/{orderId} | Get transfer order by id |
๐ POST | /order/exchange | Create exchange order |
๐ GET | /order/exchange/list | Get exchange order list |
๐ GET | /order/exchange/{orderId} | Get exchange order by id |
๐ POST | /order/deposit | Create deposit order |
๐ GET | /order/deposit/list | Get deposit order list |
๐ GET | /order/deposit/{orderId} | Get deposit order by id |
๐ POST | /order/kyc | Create KYC order |
๐ GET | /order/kyc/list | Get KYC order list |
๐ GET | /order/kyc/{orderId} | Get KYC order by id |
โ๏ธ PUT | /order/kyc/{orderId}/review | Review KYC order |
๐ POST | /order/kyc/seed | Seed KYC orders for testing |
๐ Detailed Documentation
Create card order
/order/card/createhttps://api.market.decenctype.com/order/card/create๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string (uuid) | โ | ็จๆทID |
cardProductId | string (uuid) | โ | ๅก็ไบงๅID |
quantity | number | โ | ๆฐ้, ็จไบๆน้ๅๅปบๅก็ (้ป่ฎค: 1) (ๆๅฐ: 1, ๆๅคง: 10) |
promotionCodeId | string | โ | ไฟ้ไปฃ็ , ็จไบๅๅกๅๅปบไฝฟ็จ |
paymentMethod | string (crypto, fiat) | โ | ๆฏไปๆนๅผ |
currency | string (USD, EUR, BTC, ETH, USDT, USDC) | โ | ่ดงๅธ ็จไบๆฏไป (้ป่ฎค: ๅ ๅฏ่ดงๅธไฝฟ็จUSDT๏ผๆณๅธไฝฟ็จUSD) |
remark | string | โ | ๅคๆณจ |
Description: Create card order
Operation ID: createCardOrder
Response Status:
- โ 200: The detail of card order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "example-id",6 "type": "standard",7 "kycType": "standard",8 "cardProductId": "example-id",9 "cardId": "example-id",10 "quantity": 1,11 "price": 1,12 "priceTotal": 1,13 "priceCurrency": "example-priceCurrency",14 "discount": 0,15 "promotionCodeId": "example-id",16 "paymentMethod": "crypto",17 "orderSnapshot": {},18 "kycOrderIds": [19 "example-item"20 ],21 "remark": "example-remark",22 "reason": "Risk control",23 "user": "example-user",24 "cardProduct": "example-cardProduct",25 "card": "example-card",26 "bulkCardRecords": [27 {28 "recordId": "123e4567-e89b-12d3-a456-426614174000",29 "orderId": "123e4567-e89b-12d3-a456-426614174000",30 "status": "pending"31 }32 ]33}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/card/create" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"userId": "12345678-1234-1234-1234-123456789abc",
"cardProductId": "12345678-1234-1234-1234-123456789abc",
"paymentMethod": "crypto"
}'Create bulk card order
/order/card/bulk-createhttps://api.market.decenctype.com/order/card/bulk-create๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string (uuid) | โ | ็จๆทID |
cardProductId | string (uuid) | โ | ๅก็ไบงๅID |
quantity | number | โ | ๆฐ้, ็จไบๆน้ๅๅปบๅก็ (้ป่ฎค: 1) (ๆๅฐ: 1, ๆๅคง: 10) |
promotionCodeId | string | โ | ไฟ้ไปฃ็ , ็จไบๅๅกๅๅปบไฝฟ็จ |
paymentMethod | string (crypto, fiat) | โ | ๆฏไปๆนๅผ |
currency | string (USD, EUR, BTC, ETH, USDT, USDC) | โ | ่ดงๅธ ็จไบๆฏไป (้ป่ฎค: ๅ ๅฏ่ดงๅธไฝฟ็จUSDT๏ผๆณๅธไฝฟ็จUSD) |
remark | string | โ | ๅคๆณจ |
kycType | string (standard, specify, pool) | โ | KycType (้ป่ฎค: pool) |
kycOrderIds | array | โ | Kyc Order Id, for existing KYC orders, for bulk card creation, only required if kycType is "specify" |
Description: Create bulk card order
Operation ID: createBulkCardOrder
Response Status:
- โ 200: The detail of bulk card order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "example-id",6 "type": "standard",7 "kycType": "standard",8 "cardProductId": "example-id",9 "cardId": "example-id",10 "quantity": 1,11 "price": 1,12 "priceTotal": 1,13 "priceCurrency": "example-priceCurrency",14 "discount": 0,15 "promotionCodeId": "example-id",16 "paymentMethod": "crypto",17 "orderSnapshot": {},18 "kycOrderIds": [19 "example-item"20 ],21 "remark": "example-remark",22 "reason": "Risk control",23 "user": "example-user",24 "cardProduct": "example-cardProduct",25 "card": "example-card",26 "bulkCardRecords": [27 {28 "recordId": "123e4567-e89b-12d3-a456-426614174000",29 "orderId": "123e4567-e89b-12d3-a456-426614174000",30 "status": "pending"31 }32 ]33}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/card/bulk-create" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"userId": "12345678-1234-1234-1234-123456789abc",
"cardProductId": "12345678-1234-1234-1234-123456789abc",
"paymentMethod": "crypto"
}'Get card order by id
/order/card/{orderId}https://api.market.decenctype.com/order/card/{orderId}๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Get card order by id
Operation ID: getCardOrder
Response Status:
- โ 200: The detail of card order
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "example-id",6 "type": "standard",7 "kycType": "standard",8 "cardProductId": "example-id",9 "cardId": "example-id",10 "quantity": 1,11 "price": 1,12 "priceTotal": 1,13 "priceCurrency": "example-priceCurrency",14 "discount": 0,15 "promotionCodeId": "example-id",16 "paymentMethod": "crypto",17 "orderSnapshot": {},18 "kycOrderIds": [19 "example-item"20 ],21 "remark": "example-remark",22 "reason": "Risk control",23 "user": "example-user",24 "cardProduct": "example-cardProduct",25 "card": "example-card",26 "bulkCardRecords": [27 {28 "recordId": "123e4567-e89b-12d3-a456-426614174000",29 "orderId": "123e4567-e89b-12d3-a456-426614174000",30 "status": "pending"31 }32 ]33}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/card/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get card order list
/order/cardhttps://api.market.decenctype.com/order/card๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
orderId | string | โ | Order ID (็คบไพ: 123456) |
status | string | โ | Order status (็คบไพ: pending) |
userId | string | โ | User ID (็คบไพ: user123) |
startDate | string | โ | Start date for order creation (็คบไพ: 2023-01-01T00:00:00Z) |
endDate | string | โ | End date for order creation (็คบไพ: 2023-12-31T23:59:59Z) |
transferDirection | string | โ | Transfer direction (only for transfer orders) (็คบไพ: in) |
Description: Get card order list
Operation ID: getAllCardOrder
Response Status:
- โ 200: The list of card orders
๐ Response Examples
1{2 "items": [3 {4 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",5 "status": "pending",6 "userId": "example-id",7 "type": "standard",8 "cardProductId": "example-id",9 "quantity": 1,10 "price": 1,11 "priceTotal": 1,12 "priceCurrency": "example-priceCurrency",13 "discount": 0,14 "paymentMethod": "crypto",15 "orderSnapshot": {},16 "user": "example-user",17 "cardProduct": "example-cardProduct"18 }19 ],20 "meta": "example-meta"21}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/card" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Pay Card order
/order/card/{orderId}/payhttps://api.market.decenctype.com/order/card/{orderId}/pay๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Pay Card order
Operation ID: payCardOrder
Response Status:
- โ 201: Success
๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/card/example-id/pay" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Cancel card order
/order/card/{orderId}/cancelhttps://api.market.decenctype.com/order/card/{orderId}/cancel๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Cancel card order
Operation ID: deleteCardOrder
Response Status:
- โ 200: Success
๐ Example Request
curl -X DELETE "https://api.market.decenctype.com/order/card/example-id/cancel" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Create transfer order
/order/transferhttps://api.market.decenctype.com/order/transfer๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transferType | string (email, phone, user_id, invite_code) | โ | Transfer Type |
type | string (user, merchant) | โ | Type |
paymentMethod | string (crypto, fiat) | โ | ๆฏไปๆนๅผ |
currency | string (USD, EUR, BTC, ETH, USDT, USDC) | โ | ่ดงๅธ |
toEmail | string (email) | โ | Target User Email |
toPhone | string (phone) | โ | Target User Phone |
toId | string | โ | Target ็จๆทID |
toInviteCode | string | โ | Target User Invite Code |
amount | number | โ | Amount |
Description: Create transfer order
Operation ID: createTransferOrder
Response Status:
- โ 200: The detail of transfer order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "transferType": "email",7 "paymentMethod": "crypto",8 "fromAccountId": "example-id",9 "toAccountId": "example-id",10 "amount": 1,11 "currency": "USD"12}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/transfer" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"transferType": "email",
"type": "user",
"paymentMethod": "crypto",
"currency": "USD",
"toEmail": "user@example.com",
"toPhone": "example-toPhone",
"toId": "example-id",
"toInviteCode": "example-toInviteCode",
"amount": 1
}'Get transfer order list
/order/transfer/listhttps://api.market.decenctype.com/order/transfer/list๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
orderId | string | โ | Order ID (็คบไพ: 123456) |
status | string | โ | Order status (็คบไพ: pending) |
userId | string | โ | User ID (็คบไพ: user123) |
startDate | string | โ | Start date for order creation (็คบไพ: 2023-01-01T00:00:00Z) |
endDate | string | โ | End date for order creation (็คบไพ: 2023-12-31T23:59:59Z) |
transferDirection | string | โ | Transfer direction (only for transfer orders) (็คบไพ: in) |
Description: Get transfer order list
Operation ID: getTransferOrderList
Response Status:
- โ 200: The list of transfer orders
๐ Response Examples
1{2 "items": [3 {4 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",5 "status": "pending",6 "type": "user",7 "transferType": "email",8 "paymentMethod": "crypto",9 "fromAccountId": "example-id",10 "toAccountId": "example-id",11 "amount": 1,12 "currency": "USD"13 }14 ],15 "meta": "example-meta"16}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/transfer/list" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get transfer user statistics
/order/transfer/user-statshttps://api.market.decenctype.com/order/transfer/user-stats๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
days | string | โ | Number of days to look back (default: 30) (็คบไพ: 30) |
limit | string | โ | Maximum number of users to return (default: 50) (็คบไพ: 50) |
Description: Get transfer user statistics
Operation ID: getTransferUserStats
Response Status:
- โ 200: Transfer user statistics retrieved successfully
๐ Response Examples
1{2 "users": [3 {4 "userId": "550e8400-e29b-41d4-a716-446655440000",5 "transferCount": 15,6 "totalAmount": 1500.5,7 "currency": "USD",8 "lastTransferAt": "2023-12-01T10:30:00Z",9 "transferType": "user_id",10 "paymentMethod": "crypto"11 }12 ],13 "totalUsers": 100,14 "totalTransfers": 150015}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/transfer/user-stats" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get transfer order by id
/order/transfer/{orderId}https://api.market.decenctype.com/order/transfer/{orderId}๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Get transfer order by id
Operation ID: getTransferOrder
Response Status:
- โ 200: The detail of transfer order
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "transferType": "email",7 "paymentMethod": "crypto",8 "fromAccountId": "example-id",9 "toAccountId": "example-id",10 "amount": 1,11 "currency": "USD"12}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/transfer/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Create exchange order
/order/exchangehttps://api.market.decenctype.com/order/exchange๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string (uuid) | โ | ็จๆทID, required when using API Key authentication |
from | string | โ | Crypto ่ดงๅธ type |
to | string | โ | Fiat ่ดงๅธ type |
cryptoAmount | number | โ | Crypto amount (้ป่ฎค: 0) |
Description: Create exchange order
Operation ID: createExchangeOrder
Response Status:
- โ 200: The detail of exchange order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "cryptoAccountId": "example-id",7 "fiatAccountId": "example-id",8 "cryptoAmount": 1,9 "fiatAmount": 1,10 "fiatAmountTotal": 1,11 "fee": 1,12 "rateId": 1,13 "exchangeRate": 114}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/exchange" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"from": "example-from",
"to": "example-to",
"cryptoAmount": 0
}'Get exchange order list
/order/exchange/listhttps://api.market.decenctype.com/order/exchange/list๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
orderId | string | โ | Order ID (็คบไพ: 123456) |
status | string | โ | Order status (็คบไพ: pending) |
userId | string | โ | User ID (็คบไพ: user123) |
startDate | string | โ | Start date for order creation (็คบไพ: 2023-01-01T00:00:00Z) |
endDate | string | โ | End date for order creation (็คบไพ: 2023-12-31T23:59:59Z) |
transferDirection | string | โ | Transfer direction (only for transfer orders) (็คบไพ: in) |
Description: Get exchange order list
Operation ID: getExchangeOrderList
Response Status:
- โ 200: The list of exchange orders
๐ Response Examples
1{2 "items": [3 {4 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",5 "status": "pending",6 "type": "user",7 "cryptoAccountId": "example-id",8 "fiatAccountId": "example-id",9 "cryptoAmount": 1,10 "fiatAmount": 1,11 "fiatAmountTotal": 1,12 "fee": 1,13 "rateId": 1,14 "exchangeRate": 115 }16 ],17 "meta": "example-meta"18}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/exchange/list" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get exchange order by id
/order/exchange/{orderId}https://api.market.decenctype.com/order/exchange/{orderId}๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Get exchange order by id
Operation ID: getExchangeOrder
Response Status:
- โ 200: The detail of exchange order
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "cryptoAccountId": "example-id",7 "fiatAccountId": "example-id",8 "cryptoAmount": 1,9 "fiatAmount": 1,10 "fiatAmountTotal": 1,11 "fee": 1,12 "rateId": 1,13 "exchangeRate": 114}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/exchange/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Create deposit order
/order/deposithttps://api.market.decenctype.com/order/deposit๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | number | โ | Chain ID |
chainAddress | string | โ | Chain Address |
chainTxnId | string | โ | Chain Transaction ID |
accountToken | string | โ | Account Token |
cryptoAccountId | string (uuid) | โ | Crypto Account ID |
cryptoAmount | number | โ | Crypto Amount |
Description: Create deposit order
Operation ID: createDepositOrder
Response Status:
- โ 200: The detail of deposit order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "chainId": 1,7 "chainAddress": "example-chainAddress",8 "chainTxnId": "example-id",9 "accountToken": "example-accountToken",10 "cryptoAccountId": "example-id",11 "cryptoAmount": 1,12 "reason": "example-reason"13}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/deposit" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"chainId": 1,
"chainAddress": "0x1234567890abcdef",
"chainTxnId": "0xabcdef1234567890",
"accountToken": "USDT-ERC20",
"cryptoAccountId": "123e4567-e89b-12d3-a456-426614174000",
"cryptoAmount": 0.01
}'Get deposit order list
/order/deposit/listhttps://api.market.decenctype.com/order/deposit/list๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
orderId | string | โ | Order ID (็คบไพ: 123456) |
status | string | โ | Order status (็คบไพ: pending) |
userId | string | โ | User ID (็คบไพ: user123) |
startDate | string | โ | Start date for order creation (็คบไพ: 2023-01-01T00:00:00Z) |
endDate | string | โ | End date for order creation (็คบไพ: 2023-12-31T23:59:59Z) |
transferDirection | string | โ | Transfer direction (only for transfer orders) (็คบไพ: in) |
Description: Get deposit order list
Operation ID: getDepositOrderList
Response Status:
- โ 200: The list of deposit orders
๐ Response Examples
1{2 "items": [3 {4 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",5 "status": "pending",6 "type": "user",7 "chainId": 1,8 "chainAddress": "example-chainAddress",9 "chainTxnId": "example-id",10 "accountToken": "example-accountToken",11 "cryptoAccountId": "example-id",12 "cryptoAmount": 113 }14 ],15 "meta": "example-meta"16}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/deposit/list" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get deposit order by id
/order/deposit/{orderId}https://api.market.decenctype.com/order/deposit/{orderId}๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Get deposit order by id
Operation ID: getDepositOrder
Response Status:
- โ 200: The detail of deposit order
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "type": "user",6 "chainId": 1,7 "chainAddress": "example-chainAddress",8 "chainTxnId": "example-id",9 "accountToken": "example-accountToken",10 "cryptoAccountId": "example-id",11 "cryptoAmount": 1,12 "reason": "example-reason"13}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/deposit/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Create KYC order
/order/kychttps://api.market.decenctype.com/order/kyc๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | โ | ็จๆทID |
firstName | string | โ | First name (ๆๅคง้ฟๅบฆ: 20) |
lastName | string | โ | Last name (ๆๅคง้ฟๅบฆ: 20) |
addressCountry | string | โ | Country code (ISO 3166-1 alpha-2/alpha-3) |
addressState | string | โ | State/Province |
addressCity | string | โ | City |
addressLine1 | string | โ | Address line 1 |
addressLine2 | string | โ | Address line 2 |
addressPostalCode | string | โ | Postal code |
dialCode | string | โ | Dial code, must include + sign |
phoneNumber | string | โ | Phone number, excluding country code |
dob | string | โ | Date of birth, format: YYYY-MM-DD |
documentType | string | โ | Document type: ID card, passport, or driver license |
documentNumber | string | โ | Document number |
documentFrontImage | string | โ | Front image of document |
documentBackImage | string | โ | Back image of document |
Description: Create KYC order
Operation ID: createKycOrder
Response Status:
- โ 200: The detail of kyc order
- โ 201: Success
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "user-123",6 "firstName": "John",7 "lastName": "Doe",8 "addressCountry": "US",9 "addressState": "California",10 "addressCity": "Los Angeles",11 "addressLine1": "123 Main Street",12 "addressLine2": "Apt 4B",13 "addressPostalCode": "90001",14 "dob": "1990-01-01",15 "dialCode": "1",16 "phoneNumber": "1234567890",17 "documentType": "passport",18 "documentNumber": "P12345678",19 "documentFrontImage": "https://example.com/front.jpg",20 "documentBackImage": "https://example.com/back.jpg",21 "reason": "Invalid document",22 "type": "user",23 "channelCode": "common",24 "user": "example-user"25}๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/kyc" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"userId": "123e4567-e89b-12d3-a456-426614174000",
"firstName": "John",
"lastName": "Doe",
"addressCountry": "US",
"addressCity": "Los Angeles",
"addressLine1": "123 Main Street",
"addressPostalCode": "90001",
"dialCode": "1",
"phoneNumber": "5551234567",
"dob": "1990-01-01",
"documentType": "passport",
"documentNumber": "P1234567"
}'Get KYC order list
/order/kyc/listhttps://api.market.decenctype.com/order/kyc/list๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sortField | string | โ | ๆๅบๅญๆฎต |
sort | string | โ | ๆๅบๆนๅผ |
page | number | โ | ้กต็ ๏ผไป1ๅผๅง๏ผ |
pageSize | number | โ | ๆฏ้กตๆกๆฐ |
orderId | string | โ | Order ID (็คบไพ: 123456) |
status | string | โ | Order status (็คบไพ: pending) |
userId | string | โ | User ID (็คบไพ: user123) |
startDate | string | โ | Start date for order creation (็คบไพ: 2023-01-01T00:00:00Z) |
endDate | string | โ | End date for order creation (็คบไพ: 2023-12-31T23:59:59Z) |
transferDirection | string | โ | Transfer direction (only for transfer orders) (็คบไพ: in) |
Description: Get KYC order list
Operation ID: getKycOrderList
Response Status:
- โ 200: The list of kyc orders
๐ Response Examples
1{2 "items": [3 {4 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",5 "status": "pending",6 "firstName": "John",7 "lastName": "Doe",8 "addressCountry": "US",9 "addressCity": "Los Angeles",10 "addressLine1": "123 Main Street",11 "addressPostalCode": "90001",12 "dob": "1990-01-01",13 "dialCode": "1",14 "phoneNumber": "1234567890",15 "documentType": "passport",16 "documentNumber": "P12345678",17 "type": "user",18 "channelCode": "common",19 "user": "example-user"20 }21 ],22 "meta": "example-meta"23}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/kyc/list" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get KYC order by id
/order/kyc/{orderId}https://api.market.decenctype.com/order/kyc/{orderId}๐ฏ Path Parameters
orderId(string) - โ Required: No description
Description: Get KYC order by id
Operation ID: getKycOrder
Response Status:
- โ 200: The detail of kyc order
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "user-123",6 "firstName": "John",7 "lastName": "Doe",8 "addressCountry": "US",9 "addressState": "California",10 "addressCity": "Los Angeles",11 "addressLine1": "123 Main Street",12 "addressLine2": "Apt 4B",13 "addressPostalCode": "90001",14 "dob": "1990-01-01",15 "dialCode": "1",16 "phoneNumber": "1234567890",17 "documentType": "passport",18 "documentNumber": "P12345678",19 "documentFrontImage": "https://example.com/front.jpg",20 "documentBackImage": "https://example.com/back.jpg",21 "reason": "Invalid document",22 "type": "user",23 "channelCode": "common",24 "user": "example-user"25}๐ Example Request
curl -X GET "https://api.market.decenctype.com/order/kyc/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Review KYC order
/order/kyc/{orderId}/reviewhttps://api.market.decenctype.com/order/kyc/{orderId}/review๐ฏ Path Parameters
orderId(string) - โ Required: No description
๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
approve | number (true, false) | โ | Whether the order is approved or rejected |
operatorId | string | โ | The ID of the operator who reviews the order |
comment | string | โ | Additional comments for the review |
Description: Review KYC order
Operation ID: reviewKycOrder
Response Status:
- โ 200: The detail of kyc order
This endpoint is used to review KYC orders by Merchant/Admin.
๐ Response Examples
1{2 "orderId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",3 "status": "pending",4 "operatorId": "operator-123",5 "userId": "user-123",6 "firstName": "John",7 "lastName": "Doe",8 "addressCountry": "US",9 "addressState": "California",10 "addressCity": "Los Angeles",11 "addressLine1": "123 Main Street",12 "addressLine2": "Apt 4B",13 "addressPostalCode": "90001",14 "dob": "1990-01-01",15 "dialCode": "1",16 "phoneNumber": "1234567890",17 "documentType": "passport",18 "documentNumber": "P12345678",19 "documentFrontImage": "https://example.com/front.jpg",20 "documentBackImage": "https://example.com/back.jpg",21 "reason": "Invalid document",22 "type": "user",23 "channelCode": "common",24 "user": "example-user"25}๐ Example Request
curl -X PUT "https://api.market.decenctype.com/order/kyc/example-id/review" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"approve": true,
"operatorId": "1234567890abcdef"
}'Seed KYC orders for testing
/order/kyc/seedhttps://api.market.decenctype.com/order/kyc/seed๐ Authentication: Required (see authentication section above)
Description: Seed KYC orders for testing
Operation ID: seedKycOrders
Response Status:
- โ 201: Success
๐ Example Request
curl -X POST "https://api.market.decenctype.com/order/kyc/seed" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"