Authorization: Bearer ********************
{
"user_id": 5,
"firstname": "John",
"lastname": "Doe",
"email": "johndoe@example.com",
"address": {
"street_address": "123 Main St",
"city": "Springfield",
"state": "IL",
"country": "USA",
"zip_code": "62701"
},
"credit_card": {
"credit_card_number": "4111111111111111",
"credit_card_cvv": 123,
"credit_card_expiration_year": 2025,
"credit_card_expiration_month": 12
}
}
curl --location --request POST '/api/v1/order' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 5,
"firstname": "John",
"lastname": "Doe",
"email": "johndoe@example.com",
"address": {
"street_address": "123 Main St",
"city": "Springfield",
"state": "IL",
"country": "USA",
"zip_code": "62701"
},
"credit_card": {
"credit_card_number": "4111111111111111",
"credit_card_cvv": 123,
"credit_card_expiration_year": 2025,
"credit_card_expiration_month": 12
}
}'
{
"code": 0,
"msg": "success",
"data": {
"order_id": "206831618"
}
}