curl --request POST \
--url https://core-dev.quidkey.com/api/v1/embedded/payment-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"name": "Jack Haversham",
"email": "[email protected]",
"phone": "+4917646793347",
"country": "DE"
},
"order": {
"order_id": "ORD-123456",
"amount": 9300,
"currency": "EUR",
"payment_reference": "Barcelona Tryp",
"locale": "en-GB",
"test_transaction": true,
"rewards": {
"extra_rewards": 150,
"total_rewards": 300,
"description": "Loyalty bonus + base rewards"
}
},
"device_type": "ios",
"redirect_urls": {
"success_url": "https://tryp.com/checkout/success",
"failure_url": "https://tryp.com/checkout/error"
}
}
'