squarefi-bff-api-module 1.36.63 → 1.36.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -461,6 +461,8 @@ export interface paths {
461
461
  sort_order?: "ASC" | "DESC";
462
462
  /** @description JSON string of filters to apply. Example - [{"status":"complete"},{"type":"deposit"}] */
463
463
  filters?: string;
464
+ /** @description When false (default), dust transactions below threshold are hidden */
465
+ show_low_balance?: boolean;
464
466
  };
465
467
  header?: never;
466
468
  path: {
@@ -581,6 +583,8 @@ export interface paths {
581
583
  from_date?: string;
582
584
  /** @description Filter transactions up to this date (inclusive). Format - ISO 8601 (e.g., 2024-12-31T23:59:59Z) */
583
585
  to_date?: string;
586
+ /** @description When false (default), dust transactions below threshold are hidden */
587
+ show_low_balance?: boolean;
584
588
  };
585
589
  header?: never;
586
590
  path: {
@@ -639,6 +643,8 @@ export interface paths {
639
643
  to_date?: string;
640
644
  /** @description Optional access token for additional security */
641
645
  access_token?: string;
646
+ /** @description When false (default), dust transactions below threshold are hidden */
647
+ show_low_balance?: boolean;
642
648
  };
643
649
  header?: never;
644
650
  path: {
@@ -706,6 +712,8 @@ export interface paths {
706
712
  to_date?: string;
707
713
  /** @description Filter by specific currency UUID. If provided, generates statement only for this currency. */
708
714
  crypto_id?: string;
715
+ /** @description When false (default), dust transactions below threshold are hidden */
716
+ show_low_balance?: boolean;
709
717
  /**
710
718
  * @deprecated
711
719
  * @description [DEPRECATED] Ignored. Branding is derived from the wallet tenant. Sending this parameter triggers a `Deprecation: true` response header.
@@ -2956,9 +2964,9 @@ export interface paths {
2956
2964
  */
2957
2965
  get: {
2958
2966
  parameters: {
2959
- query?: {
2960
- /** @description Order type (EXCHANGE, WITHDRAWAL_CRYPTO, etc) */
2961
- order_type?: string;
2967
+ query: {
2968
+ /** @description Order type the rates are resolved for */
2969
+ order_type: components["schemas"]["OrderTypeId"];
2962
2970
  };
2963
2971
  header?: never;
2964
2972
  path?: never;
@@ -2966,18 +2974,13 @@ export interface paths {
2966
2974
  };
2967
2975
  requestBody?: never;
2968
2976
  responses: {
2969
- /** @description User rates */
2977
+ /** @description User rates (the rates object itself, without a `success`/`data` envelope) */
2970
2978
  200: {
2971
2979
  headers: {
2972
2980
  [name: string]: unknown;
2973
2981
  };
2974
2982
  content: {
2975
- "application/json": {
2976
- rates?: {
2977
- order_type?: string;
2978
- rate?: number;
2979
- }[];
2980
- };
2983
+ "application/json": components["schemas"]["IndividualRates"];
2981
2984
  };
2982
2985
  };
2983
2986
  /** @description Server error */
@@ -3169,21 +3172,13 @@ export interface paths {
3169
3172
  };
3170
3173
  requestBody?: never;
3171
3174
  responses: {
3172
- /** @description Order calculation details */
3175
+ /** @description Order calculation details (the calculation object itself, without a `success`/`data` envelope) */
3173
3176
  200: {
3174
3177
  headers: {
3175
3178
  [name: string]: unknown;
3176
3179
  };
3177
3180
  content: {
3178
- "application/json": {
3179
- exchange_rate?: number;
3180
- result_amount?: number;
3181
- commission?: number;
3182
- commission_rate?: number;
3183
- individual_rate?: number;
3184
- network_fee?: number;
3185
- net_amount?: number;
3186
- };
3181
+ "application/json": components["schemas"]["OrderCalculation"];
3187
3182
  };
3188
3183
  };
3189
3184
  /** @description Bad request */
@@ -4297,9 +4292,9 @@ export interface paths {
4297
4292
  */
4298
4293
  get: {
4299
4294
  parameters: {
4300
- query?: {
4301
- /** @description Order type (EXCHANGE, WITHDRAWAL_CRYPTO, etc) */
4302
- order_type?: string;
4295
+ query: {
4296
+ /** @description Order type the rates are resolved for */
4297
+ order_type: components["schemas"]["OrderTypeId"];
4303
4298
  };
4304
4299
  header?: never;
4305
4300
  path?: never;
@@ -4314,10 +4309,20 @@ export interface paths {
4314
4309
  };
4315
4310
  content: {
4316
4311
  "application/json": {
4317
- rates?: {
4318
- order_type?: string;
4319
- rate?: number;
4320
- }[];
4312
+ /** @example true */
4313
+ success?: boolean;
4314
+ data?: components["schemas"]["IndividualRates"];
4315
+ };
4316
+ };
4317
+ };
4318
+ /** @description Missing `order_type`, or no tariff configured for it (`TENANT_FEE_NOT_CONFIGURED`) */
4319
+ 400: {
4320
+ headers: {
4321
+ [name: string]: unknown;
4322
+ };
4323
+ content: {
4324
+ "application/json": {
4325
+ error?: string;
4321
4326
  };
4322
4327
  };
4323
4328
  };
@@ -4854,7 +4859,8 @@ export interface paths {
4854
4859
  * - Filter by status: `[{"status":"COMPLETE"}]`
4855
4860
  * - Filter by order type: `[{"order_type":"EXCHANGE"}]`
4856
4861
  * - Multiple filters: `[{"status":"PENDING"},{"order_type":"L2F_WIRE_OFFRAMP"}]`
4857
- * - Filter by meta field: `[{"meta":{"workflow_status":"PROCESSING"}}]`
4862
+ * - Filter by meta field: `[{"meta->>workflow_status":"PROCESSING"}]`
4863
+ * - Find an order by your own reference: `[{"meta->>reference":"invoice-2026-04-001"}]`
4858
4864
  *
4859
4865
  */
4860
4866
  get: {
@@ -4878,12 +4884,13 @@ export interface paths {
4878
4884
  * - `order_type` - Order type (EXCHANGE, WITHDRAWAL_CRYPTO, L2F_WIRE_OFFRAMP, etc.)
4879
4885
  * - `from_uuid` - Source currency UUID
4880
4886
  * - `to_uuid` - Destination currency UUID
4881
- * - `meta` - Nested JSONB filters (e.g., {"meta":{"workflow_status":"PROCESSING"}})
4887
+ * - `meta->>key` - JSONB meta field by key with the text operator (e.g., {"meta->>workflow_status":"PROCESSING"})
4882
4888
  *
4883
4889
  * **Examples:**
4884
4890
  * - Single value: `[{"status":"COMPLETE"}]`
4885
4891
  * - Multiple values (OR): `[{"status":["PENDING","PROCESSING"]}]`
4886
- * - Nested JSONB: `[{"meta":{"workflow_status":"PROCESSING"}}]`
4892
+ * - JSONB meta field: `[{"meta->>workflow_status":"PROCESSING"}]`
4893
+ * - By your own reference: `[{"meta->>reference":"invoice-2026-04-001"}]`
4887
4894
  *
4888
4895
  * @example [{"status":"COMPLETE"}]
4889
4896
  */
@@ -5235,13 +5242,9 @@ export interface paths {
5235
5242
  };
5236
5243
  content: {
5237
5244
  "application/json": {
5238
- exchange_rate?: number;
5239
- result_amount?: number;
5240
- commission?: number;
5241
- commission_rate?: number;
5242
- individual_rate?: number;
5243
- network_fee?: number;
5244
- net_amount?: number;
5245
+ /** @example true */
5246
+ success: boolean;
5247
+ data: components["schemas"]["OrderCalculation"];
5245
5248
  };
5246
5249
  };
5247
5250
  };
@@ -7168,6 +7171,170 @@ export interface components {
7168
7171
  * @enum {string}
7169
7172
  */
7170
7173
  OrderTypeId: "EXCHANGE_OMNI" | "EXCHANGE_OMNI_ONRAMP" | "EXCHANGE_OMNI_OFFRAMP" | "EXCHANGE_OMNI_CRYPTO" | "EXCHANGE_CRYPTO_INTERNAL" | "L2F_ACH_ONRAMP" | "L2F_ACH_OFFRAMP" | "L2F_SEPA_ONRAMP" | "L2F_SEPA_OFFRAMP" | "L2F_SWIFT_ONRAMP" | "L2F_SWIFT_OFFRAMP" | "L2F_WIRE_ONRAMP" | "L2F_WIRE_OFFRAMP" | "L2F_CHAPS_ONRAMP" | "L2F_CHAPS_OFFRAMP" | "L2F_FPS_ONRAMP" | "L2F_FPS_OFFRAMP" | "BRL_WIRE_ONRAMP" | "BRL_WIRE_OFFRAMP" | "BRL_ACH_ONRAMP" | "BRL_ACH_OFFRAMP" | "BRL_RTP_OFFRAMP" | "DLS_WIRE_ONRAMP" | "DLS_WIRE_OFFRAMP" | "DLS_ACH_ONRAMP" | "DLS_ACH_OFFRAMP" | "DLS_SEPA_ONRAMP" | "DLS_SEPA_OFFRAMP" | "DLS_SWIFT_ONRAMP" | "DLS_SWIFT_OFFRAMP" | "BC1_SEPA_ONRAMP" | "BC1_SEPA_OFFRAMP" | "BC1_SWIFT_ONRAMP" | "BC1_SWIFT_OFFRAMP" | "BC3_SEPA_ONRAMP" | "BC3_SEPA_OFFRAMP" | "RPP_SWIFT_OFFRAMP" | "RPP_SEPA_OFFRAMP" | "RPP_FPS_OFFRAMP" | "RPP_ACH_OFFRAMP" | "OMNIBUS_CRYPTO_TRANSFER" | "OMNIBUS_CRYPTO_WITHDRAWAL" | "OMNIBUS_INTERNAL_TRANSFER" | "SEGREGATED_CRYPTO_TRANSFER" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_PREPAID" | "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_WHOLESALE" | "WITHDRAW_CARD_PREPAID" | "WITHDRAW_CARD_SUBACCOUNT" | "REFUND_CARD_PREPAID" | "REFUND_CARD_SUBACCOUNT" | "RN_CARDS_OFFRAMP" | "CARD_ISSUING_FEE" | "MONTHLY_FEE";
7174
+ OrderCalculation: {
7175
+ /**
7176
+ * Format: uuid
7177
+ * @description Source currency UUID.
7178
+ */
7179
+ from_currency: string;
7180
+ /**
7181
+ * Format: uuid
7182
+ * @description Destination currency UUID.
7183
+ */
7184
+ to_currency: string;
7185
+ /**
7186
+ * @description Source currency symbol.
7187
+ * @example USDT
7188
+ */
7189
+ from_symbol: string;
7190
+ /**
7191
+ * @description Destination currency symbol.
7192
+ * @example USD
7193
+ */
7194
+ to_symbol: string;
7195
+ /**
7196
+ * @description Decimals the source-currency amounts are truncated to.
7197
+ * @example 6
7198
+ */
7199
+ from_decimals: number;
7200
+ /**
7201
+ * @description Decimals the destination-currency amounts are truncated to.
7202
+ * @example 2
7203
+ */
7204
+ to_decimals: number;
7205
+ /**
7206
+ * @description Amount to be spent in the source currency.
7207
+ * @example 100
7208
+ */
7209
+ from_amount: number;
7210
+ /**
7211
+ * @description Amount to be received in the destination currency.
7212
+ * @example 98.5
7213
+ */
7214
+ result_amount: number;
7215
+ /**
7216
+ * @description Amount converted before fees, in the destination currency.
7217
+ * @example 100
7218
+ */
7219
+ net_amount: number;
7220
+ /**
7221
+ * @description Total fees (`comission` + `network_fee`), in the source currency.
7222
+ * @example 1.5
7223
+ */
7224
+ fees: number;
7225
+ /**
7226
+ * @description Service commission excluding the network fee (wire name is intentionally `comission`).
7227
+ * @example 1.5
7228
+ */
7229
+ comission: number;
7230
+ /**
7231
+ * Format: uuid
7232
+ * @description Currency UUID `comission` is denominated in. Omitted by older engines — then it is the same currency on both sides.
7233
+ */
7234
+ commission_currency?: string;
7235
+ /**
7236
+ * @description Percentage part of the commission, in the commission currency.
7237
+ * @example 1
7238
+ */
7239
+ percent_commission: number;
7240
+ /**
7241
+ * @description Fixed part of the commission, in the commission currency.
7242
+ * @example 0.5
7243
+ */
7244
+ fixed_commission: number;
7245
+ /**
7246
+ * @description Markup applied, in whole percent.
7247
+ * @example 1.5
7248
+ */
7249
+ base_markup: number;
7250
+ /**
7251
+ * @description Estimated blockchain network fee in the source currency (crypto withdrawals only, otherwise 0).
7252
+ * @example 0
7253
+ */
7254
+ network_fee: number;
7255
+ /**
7256
+ * @description Network fee in the chain native currency (ETH, BNB, …), 18 decimals.
7257
+ * @example 0
7258
+ */
7259
+ network_fee_native: number;
7260
+ /**
7261
+ * @description Network fee in USD, 8 decimals.
7262
+ * @example 0
7263
+ */
7264
+ network_fee_usd: number;
7265
+ /**
7266
+ * @description Transaction fee. Always 0 for now.
7267
+ * @example 0
7268
+ */
7269
+ transaction_fee: number;
7270
+ /**
7271
+ * @description Exchange rate applied (source → destination), 6 decimals. Includes the tenant FX spread.
7272
+ * @example 0.985
7273
+ */
7274
+ rate: number;
7275
+ /**
7276
+ * @description Market rate before the tenant FX spread. Equal to `rate` when no spread applies.
7277
+ * @example 1
7278
+ */
7279
+ base_rate: number;
7280
+ /**
7281
+ * @description Tenant FX spread already taken off `rate`, in whole percent.
7282
+ * @example 1.5
7283
+ */
7284
+ fx_spread: number;
7285
+ /**
7286
+ * @description Percent markup of the applied tariff.
7287
+ * @example 1.5
7288
+ */
7289
+ markup: number;
7290
+ /**
7291
+ * @description Fixed USD markup of the applied tariff.
7292
+ * @example 0.5
7293
+ */
7294
+ markup_usd: number;
7295
+ /**
7296
+ * @description Percent markup on the network fee.
7297
+ * @example 0
7298
+ */
7299
+ gas_markup: number;
7300
+ /**
7301
+ * @description Percent discount on the network fee.
7302
+ * @example 0
7303
+ */
7304
+ gas_discount: number;
7305
+ /** @description Whether the order type is an internal (on-platform) operation. */
7306
+ is_internal: boolean;
7307
+ /** @description Whether the operation is allowed for the caller with these inputs. */
7308
+ allowed: boolean;
7309
+ /** @description Calculation error text, `null` on success. */
7310
+ error: string | null;
7311
+ };
7312
+ IndividualRates: {
7313
+ /**
7314
+ * @description Percent commission applied to the amount.
7315
+ * @example 1.5
7316
+ */
7317
+ markup: number;
7318
+ /**
7319
+ * @description Fixed commission in USD.
7320
+ * @example 0.5
7321
+ */
7322
+ markup_usd: number;
7323
+ /**
7324
+ * @description Percent markup on the network fee.
7325
+ * @example 0
7326
+ */
7327
+ gas_markup: number;
7328
+ /**
7329
+ * @description Percent discount on the network fee.
7330
+ * @example 0
7331
+ */
7332
+ gas_discount: number;
7333
+ /** @description Order type the resolved tariff row belongs to. Absent for the zero-fee internal transfer. */
7334
+ order_type?: string;
7335
+ } & {
7336
+ [key: string]: unknown;
7337
+ };
7171
7338
  /** @description Order type reference with optional product guardrails, associated KYC rails and tenant billing rates */
7172
7339
  OrderType: {
7173
7340
  /** @description Order type identifier (e.g. EXCHANGE, WITHDRAWAL_CRYPTO) */