Create a quote
Freezes a price for a short time. A quote is used by at most one payout.
apiKeyAuthorizationBearer <clave>Your secret API key, sent as Authorization: Bearer <key>. A key names its environment: psp_test_… works only against sandbox (https://api-sandbox.caibopay.app), psp_live_… only against live (https://api.caibopay.app). Keys are issued by Caibo when your account is opened; the dashboard (Developers) shows the key in use.
Idempotency-Key*stringA unique key for this request, 8 to 128 characters.
^[A-Za-z0-9._:-]{8,128}$application/json- body
amount*stringThe fixed amount. A decimal string in the currency's precision.
^[0-9]+(\.[0-9]+)?$amount_side*stringWhich amount is fixed: what is paid (source) or what is received (destination).
"source""destination"destination_currency*stringThe currency delivered.
method?stringThe payout method the quote is for. Omit for a conversion with no payout rail.
payer?Price the quote from a payer's side: the payer pays in currency by method, converted into source_currency (an on-ramp priced with the platform's rates, margins and the method's pay_in fee), and source_currency pays the beneficiary. With amount_side source, amount is in the payer's currency: what the payer sends to be converted, fees on top. The answer says what the payer pays (payer).
source_currency*stringThe currency debited from the balance.
The request was already made: the existing resource is returned.
application/json- response
created_at*stringWhen it was priced.
date-timedestination*expires_at*stringUntil when it can be used.
date-timeid*stringThe id of the quote.
^quo_[0-9a-z]+$method?stringThe payout method the quote is for.
payer?What the payer pays, in their own currency, when the quote was priced from a payer's side.
rate*stringDestination units per source unit, all margins included.
source*status*stringopen: can still be used. used: an operation took it. expired: its time passed unused.
"open""used""expired"curl -X POST 'https://api-sandbox.caibopay.app/v1/quotes' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "amount": "string", "amount_side": "source", "destination_currency": "string", "source_currency": "string"}'{ "created_at": "2019-08-24T14:15:22Z", "destination": { "amount": "string", "currency": "string" }, "expires_at": "2019-08-24T14:15:22Z", "id": "string", "method": "string", "payer": { "amount": "string", "currency": "string", "effective_rate": "string", "fee": "string", "method": "string", "principal": "string" }, "rate": "string", "source": { "currency": "string", "platform_fee": "string", "principal": "string", "tenant_markup": "string", "total": "string" }, "status": "open"}