Volcano API
๐Ÿš€ API Endpoints

๐Ÿ“ Delivery Addresses

Delivery address management and configuration endpoints. 9 endpoints available.

๐ŸŽฏ Quick Stats

๐Ÿ“Š Methods

  • ๐Ÿ“ POST: 1 endpoints
  • ๐Ÿ” GET: 5 endpoints
  • โœ๏ธ PUT: 2 endpoints
  • ๐Ÿ—‘๏ธ DELETE: 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

MethodEndpointDescription
๐Ÿ“ POST/delivery/addressCreate delivery address
๐Ÿ” GET/delivery/addressGet user address list
๐Ÿ” GET/delivery/address/merchant/{merchantId}Get merchant address list
๐Ÿ” GET/delivery/address/paginationGet paginated address list
๐Ÿ” GET/delivery/address/{deliveryAddressId}Get address details
โœ๏ธ PUT/delivery/address/{deliveryAddressId}Update address
๐Ÿ—‘๏ธ DELETE/delivery/address/{deliveryAddressId}Delete address
โœ๏ธ PUT/delivery/address/{deliveryAddressId}/defaultSet default address
๐Ÿ” GET/delivery/address/default/currentGet current default address

๐Ÿ“– Detailed Documentation

Create delivery address

POST/delivery/address
Full URL
https://api.market.decenctype.com/delivery/address

๐Ÿ“ Request Body Parameters

ParameterTypeRequiredDescription
userIdstringโŒ็”จๆˆทID
merchantIdstringโŒๅ•†ๆˆทID
typestring (user, merchant)โœ…็ฑปๅž‹
recipientTitlestringโŒๆ”ถไปถไบบ็งฐ่ฐ“ (Mr./Ms./Mrs./Dr.)
firstNamestringโœ…ๅ
lastNamestringโœ…ๅง“
nationalitystringโœ…ๅ›ฝๅฎถ็  (ISO 3166-1)
addressStatestringโŒๅทž/็œ (ๅฆ‚็พŽๅ›ฝ็š„ CA, NY ็ญ‰)
citystringโœ…ๅŸŽๅธ‚
line1stringโœ…่ฏฆ็ป†ๅœฐๅ€
line2stringโœ…่ฏฆ็ป†ๅœฐๅ€2
postalCodestringโœ…้‚ฎ็ผ–
phoneAreaCodestringโœ…็”ต่ฏๅŒบๅท
phoneNumberstringโœ…็”ต่ฏๅท็ 
emailstringโœ…้‚ฎ็ฎฑๅœฐๅ€
aliasstringโœ…ๅˆซๅ, ็”จไบŽๅฟซ้€ŸๅŒบๅˆ†ไธๅŒๅœฐๅ€
defaultFlagbooleanโœ…ๆ˜ฏๅฆ่ฎพ็ฝฎ้ป˜่ฎค

Description: Create delivery address

Operation ID: createAddress

Response Status:

  • โœ… 201: Address created successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

curl -X POST "https://api.market.decenctype.com/delivery/address" \\
  -H "Authorization: Bearer YOUR_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{
  "type": "user",
  "firstName": "example-firstName",
  "lastName": "example-lastName",
  "nationality": "example-nationality",
  "city": "example-city",
  "line1": "example-line1",
  "line2": "example-line2",
  "postalCode": "example-postalCode",
  "phoneAreaCode": "example-phoneAreaCode",
  "phoneNumber": "example-phoneNumber",
  "email": "user@example.com",
  "alias": "example-alias",
  "defaultFlag": true
}'

Get user address list

GET/delivery/address
Full URL
https://api.market.decenctype.com/delivery/address

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

Description: Get user address list

Operation ID: getAddressList

Response Status:

  • โœ… 200: Address list retrieved successfully

๐Ÿ“‹ Response Examples

response.json
1[
2 {
3 "deliveryAddressId": "example-id",
4 "userId": "example-id",
5 "merchantId": "example-id",
6 "type": {},
7 "recipientTitle": "example-recipientTitle",
8 "firstName": "example-firstName",
9 "lastName": "example-lastName",
10 "nationality": "example-nationality",
11 "addressState": "example-addressState",
12 "city": "example-city",
13 "line1": "example-line1",
14 "line2": "example-line2",
15 "postalCode": "example-postalCode",
16 "phoneAreaCode": "example-phoneAreaCode",
17 "phoneNumber": "example-phoneNumber",
18 "email": "user@example.com",
19 "alias": "example-alias",
20 "defaultFlag": true,
21 "user": "example-user",
22 "merchant": "example-merchant"
23 }
24]

๐Ÿ“ Example Request

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

Get merchant address list

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

๐ŸŽฏ Path Parameters

  • merchantId (string) - โœ… Required: Merchant ID

Description: Get merchant address list

Operation ID: getMerchantAddressList

Response Status:

  • โœ… 200: Merchant address list retrieved successfully

๐Ÿ“‹ Response Examples

response.json
1[
2 {
3 "deliveryAddressId": "example-id",
4 "userId": "example-id",
5 "merchantId": "example-id",
6 "type": {},
7 "recipientTitle": "example-recipientTitle",
8 "firstName": "example-firstName",
9 "lastName": "example-lastName",
10 "nationality": "example-nationality",
11 "addressState": "example-addressState",
12 "city": "example-city",
13 "line1": "example-line1",
14 "line2": "example-line2",
15 "postalCode": "example-postalCode",
16 "phoneAreaCode": "example-phoneAreaCode",
17 "phoneNumber": "example-phoneNumber",
18 "email": "user@example.com",
19 "alias": "example-alias",
20 "defaultFlag": true,
21 "user": "example-user",
22 "merchant": "example-merchant"
23 }
24]

๐Ÿ“ Example Request

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

Get paginated address list

GET/delivery/address/pagination
Full URL
https://api.market.decenctype.com/delivery/address/pagination

๐Ÿ“‹ Query Parameters

ParameterTypeRequiredDescription
pagestringโŒPage number (็คบไพ‹: 1)
pageSizestringโŒItems per page (็คบไพ‹: 10)
searchstringโŒSearch keyword
merchantIdstringโŒMerchant ID for merchant addresses

Description: Get paginated address list

Operation ID: getAddressListWithPagination

Response Status:

  • โœ… 200: Paginated address list retrieved successfully

๐Ÿ“ Example Request

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

Get address details

GET/delivery/address/{deliveryAddressId}
Full URL
https://api.market.decenctype.com/delivery/address/{deliveryAddressId}

๐ŸŽฏ Path Parameters

  • deliveryAddressId (string) - โœ… Required: Address ID

Description: Get address details

Operation ID: getAddressById

Response Status:

  • โœ… 200: Address details retrieved successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

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

Update address

PUT/delivery/address/{deliveryAddressId}
Full URL
https://api.market.decenctype.com/delivery/address/{deliveryAddressId}

๐ŸŽฏ Path Parameters

  • deliveryAddressId (string) - โœ… Required: Address ID

Description: Update address

Operation ID: updateAddress

Response Status:

  • โœ… 200: Address updated successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

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

Delete address

DELETE/delivery/address/{deliveryAddressId}
Full URL
https://api.market.decenctype.com/delivery/address/{deliveryAddressId}

๐ŸŽฏ Path Parameters

  • deliveryAddressId (string) - โœ… Required: Address ID

Description: Delete address

Operation ID: deleteAddress

Response Status:

  • โœ… 200: Address deleted successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

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

Set default address

PUT/delivery/address/{deliveryAddressId}/default
Full URL
https://api.market.decenctype.com/delivery/address/{deliveryAddressId}/default

๐ŸŽฏ Path Parameters

  • deliveryAddressId (string) - โœ… Required: Address ID

Description: Set default address

Operation ID: setDefaultAddress

Response Status:

  • โœ… 200: Default address set successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

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

Get current default address

GET/delivery/address/default/current
Full URL
https://api.market.decenctype.com/delivery/address/default/current

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

Description: Get current default address

Operation ID: getDefaultAddress

Response Status:

  • โœ… 200: Default address retrieved successfully

๐Ÿ“‹ Response Examples

response.json
1{
2 "deliveryAddressId": "example-id",
3 "userId": "example-id",
4 "merchantId": "example-id",
5 "type": {},
6 "recipientTitle": "example-recipientTitle",
7 "firstName": "example-firstName",
8 "lastName": "example-lastName",
9 "nationality": "example-nationality",
10 "addressState": "example-addressState",
11 "city": "example-city",
12 "line1": "example-line1",
13 "line2": "example-line2",
14 "postalCode": "example-postalCode",
15 "phoneAreaCode": "example-phoneAreaCode",
16 "phoneNumber": "example-phoneNumber",
17 "email": "user@example.com",
18 "alias": "example-alias",
19 "defaultFlag": true,
20 "user": "example-user",
21 "merchant": "example-merchant"
22}

๐Ÿ“ Example Request

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