Variable achDebitAuthorizationApiConst
achDebitAuthorizationApi: {
"/v1/withdrawal/ach/authorize": {
post: {
body: TObject<
{
achId: TString;
organizationId: TString;
paymentInstrumentId: TString;
targetAmount: TNumber;
walletId: TString;
},
>;
description: "This endpoint is used to create an ACH Debit authorization for an Entity.\n\nSupplied with the required parameters, this endpoint will debit the given redemption wallet and wait for the debit entry from the debit 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 Ach Debit Authorization";
tags: readonly ["ACH", "x-internal"];
};
};
} = ...
Type Declaration
Readonly/v1/withdrawal/ach/authorize: {
post: {
body: TObject<
{
achId: TString;
organizationId: TString;
paymentInstrumentId: TString;
targetAmount: TNumber;
walletId: TString;
},
>;
description: "This endpoint is used to create an ACH Debit authorization for an Entity.\n\nSupplied with the required parameters, this endpoint will debit the given redemption wallet and wait for the debit entry from the debit 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 Ach Debit Authorization";
tags: readonly ["ACH", "x-internal"];
};
}