Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 2.83 KB

vaultcreatecallbackstateresponse.md

File metadata and controls

45 lines (40 loc) · 2.83 KB

VaultCreateCallbackStateResponse

Example Usage

import { VaultCreateCallbackStateResponse } from "@apideck/unify/models/operations";

let value: VaultCreateCallbackStateResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  createCallbackStateResponse: {
    statusCode: 200,
    status: "OK",
    data: {
      state: "123e4567-e89b-12d3-a456-426614174000",
    },
  },
  unexpectedErrorResponse: {
    statusCode: 400,
    error: "Bad Request",
    typeName: "RequestHeadersValidationError",
    message: "Invalid Params",
    detail: {
      "missing": [
        {
          "x-apideck-consumer-id": "required",
        },
      ],
    },
    ref: "https://developers.apideck.com/errors#unauthorizederror",
  },
};

Fields

Field Type Required Description
httpMeta components.HTTPMetadata ✔️ N/A
createCallbackStateResponse components.CreateCallbackStateResponse Callback state created
unexpectedErrorResponse components.UnexpectedErrorResponse Unexpected error