curl --request POST \
--url https://api.mginex.com/open-api/checkout/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"email": "[email protected]",
"name": "<string>"
},
"items": [
{
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 2,
"variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"paymentMethod": "PIX",
"couponCode": "<string>"
}
'