Hust Musik
  1. Payment
Hust Musik
  • User
    • Get All Users
      GET
    • Get User By ID
      GET
    • Get User Profile
      GET
    • Get User Listen History
      GET
    • Get Followed Artists
      GET
    • Update User Profile
      POST
    • Get User Playlists
      GET
    • Upsert User Listen History
      POST
    • Follow Artist
      POST
    • Unfollow Artist
      DELETE
  • Song
    • Get All Songs
      GET
    • Add Song
      POST
    • Get Song By ID
      GET
    • Update Song
      POST
    • Delete Song
      DELETE
    • Generate Presigned Download
      GET
    • Generate Presigned Upload
      GET
  • Auth
    • Register User
      POST
    • Sign In
      POST
    • Sign Out
      GET
    • Google Sign In
      GET
    • Update User Credentials
      POST
    • Renew Session
      POST
  • Artist
    • Get All Artists
      GET
    • Get Artist By ID
      GET
    • Add Artist
      POST
    • Update Artist
      POST
    • Delete Artist
      DELETE
  • Collection
    • Get All Collections
    • Get All Playlists
    • Get All Albums
    • Get Collection By ID
    • Add Collection
    • Update Collection
    • Delete Collection
    • Add Song To Collection
    • Delete Song From Collection
  • Search
    • Default Search
    • Search Songs
    • Search Albums
    • Search Playlists
    • Search Users
    • Search Artists
  • Payment
    • Create Zalo Order
      POST
    • Get Zalo Order Status
      POST
  • Check Health
    GET
  1. Payment

Create Zalo Order

Developing
POST
/v1/order/checkout

Request

Body Params application/json
object {0}
Example
{
    "userid": "1",
    "items": [{"itemname": "Hust Musik Premium", "itemprice": 50000, "itemquantity": 1}, {"itemname": "Merch", "itemprice": 100000, "itemquantity": 2}]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hustmusik.live/v1/order/checkout' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userid": "1",
    "items": [{"itemname": "Hust Musik Premium", "itemprice": 50000, "itemquantity": 1}, {"itemname": "Merch", "itemprice": 100000, "itemquantity": 2}]
}'

Responses

🟢200OK
application/json
Body
return_code
integer 
required
return_message
string 
required
sub_return_code
integer 
required
sub_return_message
string 
required
zp_trans_token
string 
required
order_url
string 
required
order_token
string 
required
qr_code
string 
required
app_trans_id
string 
required
Example
{
    "return_code": 0,
    "return_message": "string",
    "sub_return_code": 0,
    "sub_return_message": "string",
    "zp_trans_token": "string",
    "order_url": "string",
    "order_token": "string",
    "qr_code": "string",
    "app_trans_id": "string"
}
Modified at 2024-11-07 16:03:46
Previous
Search Artists
Next
Get Zalo Order Status
Built with