Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 2.7 KB

accountingsuppliersaddresponse.md

File metadata and controls

48 lines (43 loc) · 2.7 KB

AccountingSuppliersAddResponse

Example Usage

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

let value: AccountingSuppliersAddResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  createSupplierResponse: {
    statusCode: 200,
    status: "OK",
    service: "xero",
    resource: "payments",
    operation: "add",
    data: {
      id: "12345",
    },
  },
  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
createSupplierResponse components.CreateSupplierResponse Supplier created
unexpectedErrorResponse components.UnexpectedErrorResponse Unexpected error