Variable wireDrawdownAuthorizationApiConst
wireDrawdownAuthorizationApi: {
"/v1/withdrawal/wire-drawdown/authorize": {
post: {
body: TObject<
{
drawdownId: TString;
sourceAccountId: TString;
targetAmount: TNumber;
wirePaymentInstrumentId: TString;
},
>;
description: "This endpoint is used to Authorize a wire drawdown for a particular account.\n\nSupplied with the required parameters, this endpoint will debit the given redemption wallet and wait for the debit entry from the pull to be returned by the bank.\n\nOnce the debit entry is confirmed, the system will finalize the withdrawal and send a webhook to the configured URL.";
response: {
"200": TUnion<
[
TIntersect<
[
TObject<{ identityId: TString }>,
TIntersect<[TObject<(...)>, TUnion<(...)>]>,
],
>,
TIntersect<
[
TObject<{ organizationId: TString }>,
TIntersect<[TObject<(...)>, TUnion<(...)>]>,
],
>,
],
>;
"400": TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
default: TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
};
summary: "Create Wire Drawdown Authorization";
tags: readonly ["Wire Drawdowns", "x-internal"];
};
};
} = ...
Type Declaration
Readonly/v1/withdrawal/wire-drawdown/authorize: {
post: {
body: TObject<
{
drawdownId: TString;
sourceAccountId: TString;
targetAmount: TNumber;
wirePaymentInstrumentId: TString;
},
>;
description: "This endpoint is used to Authorize a wire drawdown for a particular account.\n\nSupplied with the required parameters, this endpoint will debit the given redemption wallet and wait for the debit entry from the pull to be returned by the bank.\n\nOnce the debit entry is confirmed, the system will finalize the withdrawal and send a webhook to the configured URL.";
response: {
"200": TUnion<
[
TIntersect<
[
TObject<{ identityId: TString }>,
TIntersect<[TObject<(...)>, TUnion<(...)>]>,
],
>,
TIntersect<
[
TObject<{ organizationId: TString }>,
TIntersect<[TObject<(...)>, TUnion<(...)>]>,
],
>,
],
>;
"400": TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
default: TObject<
{
code: TString;
details: TOptional<TRecord<"^.*$", TAny>>;
message: TString;
},
>;
};
summary: "Create Wire Drawdown Authorization";
tags: readonly ["Wire Drawdowns", "x-internal"];
};
}