Payments
Create quote
Creates a payment quote with locked-in rate
X-API-KEY<token>
API key for authentication (prefix: sk_dev_ for development, sk_live_ for production)
In: header
Path Parameters
userIdstring
User ID
Format
uuidsource
destination
developerVariableFee?number
Optional developer variable fee
Range
0 <= valueResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.sentra.xyz/api/v1/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08/quote" \ -H "Content-Type: application/json" \ -d '{ "source": { "currency": "USDC", "amount": 100, "rail": "ETHEREUM" }, "destination": { "currency": "USD", "rail": "ACH", "countryCode": "US", "paymentAccountId": "550e8400-e29b-41d4-a716-446655440000" }, "developerVariableFee": 0.5 }'{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"userId": "550e8400-e29b-41d4-a716-446655440099",
"source": {
"currency": "USDC",
"amount": 100,
"rail": "ETHEREUM"
},
"destination": {
"currency": "USD",
"amount": 98.5,
"rail": "ACH",
"countryCode": "US"
},
"exchangeRate": 1,
"sentraFee": {
"fixed": 1,
"variable": 0.5
},
"developerFee": {
"fixed": 0,
"variable": 0.5
},
"totalFee": 1.5,
"expiresAt": "2024-11-04T12:30:00Z",
"createdAt": "2024-11-04T12:00:00Z"
}{
"message": "Validation failed",
"statusCode": 400,
"details": {
"field": "email",
"message": "Invalid email format"
}
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "Resource not found",
"statusCode": 404
}{
"message": "Internal server error",
"statusCode": 500
}