- GET [/instances/$INSTANCE]/private#
- GET /management/instances/$INSTANCE#
This is used to query a specific merchant instance. GET operations against an instance are authenticated by checking that an authorization is provided that matches either the credential required by the instance being modified OR the
admininstance, depending on the access path used.This endpoint may be used even when mandatory TAN channels were not validated yet.
Required permission:
instances-readResponse:
- 200 OK:
The backend has successfully returned the list of instances stored. Returns a QueryInstancesResponse.
- 401 Unauthorized:
The request is unauthorized.
- 404 Not found:
The instance is unknown. Returned with
TALER_EC_MERCHANT_GENERIC_INSTANCE_UNKNOWN.
Details:
interface QueryInstancesResponse { // Merchant name corresponding to this instance. name: string; // Merchant email for customer contact and password reset. email?: string; // True if the email address was validated. // @since **v21**. email_validated?: boolean; // Merchant phone number for password reset (2-FA) // @since **v21**. phone_number?: string; // True if the email address was validated. // @since **v21**. phone_validated?: boolean; // Merchant public website. website?: string; // Merchant logo. logo?: ImageDataUrl; // Public key of the merchant/instance, in Crockford Base32 encoding. merchant_pub: EddsaPublicKey; // The merchant's physical address (to be put into contracts). address: Location; // The jurisdiction under which the merchant conducts its business // (to be put into contracts). jurisdiction: Location; // Use STEFAN curves to determine default fees? // If false, no fees are allowed by default. // Can always be overridden by the frontend on a per-order basis. use_stefan: boolean; // If the frontend does NOT specify a payment deadline, how long should // offers we make be valid by default? Added to the order creation // time. default_pay_delay: RelativeTime; // If the frontend does NOT specify a refund deadline, how long should // refunds be allowed by default? Added to the payment deadline. // @since **v22** default_refund_delay: RelativeTime; // If the frontend does NOT specify an execution date, how long should // we tell the exchange to wait to aggregate transactions before // executing the wire transfer? This delay is added to the // refund deadline and subject to rounding to the // default_wire_transfer_rounding_interval. default_wire_transfer_delay: RelativeTime; // Default interval to which wire deadlines computed by // adding the wire_transfer_delay on top of the refund // deadline should be rounded up to. // @since **v23** default_wire_transfer_rounding_interval: RoundingInterval; // Bank accounts of the merchant instance. accounts: ManagementAccountEntry[]; // Authentication configuration. // Does not contain the token when token auth is configured. auth: { method: "external" | "token"; }; }
interface ManagementAccountEntry { // Full payto:// URI of the account. payto_uri: string; // URL from where the merchant can download information // about incoming wire transfers to this account. credit_facade_url?: string; // Hash over the wire details (including over the salt). h_wire: HashCode; // Salt used to compute h_wire. salt: HashCode; // true if this account is active, // false if it is historic. active: boolean; }