ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  addresses: {
                      city: string
                      | null;
                      country: string | null;
                      id: string;
                      isDefault: boolean;
                      name: string | null;
                      postalCode: string | null;
                      state: string | null;
                      street: string | null;
                      type: string;
                  }[];
                  buyer: { email: string; id: string; name: string | null }
                  | null;
                  contacts: {
                      email: string | null;
                      firstName: string;
                      id: string;
                      isDefault: boolean;
                      lastName: string;
                      phone: string | null;
                      position: string | null;
                  }[];
                  currency: | { code: string; id: string; name: string; symbol: string }
                  | null;
                  legalIdentifiers: {
                      country: string | null;
                      id: string;
                      isActive: boolean;
                      type: string;
                      value: string;
                  }[];
              } & {},
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  addresses: {
                      city: string
                      | null;
                      country: string | null;
                      id: string;
                      isDefault: boolean;
                      name: string | null;
                      postalCode: string | null;
                      state: string | null;
                      street: string | null;
                      type: string;
                  }[];
                  buyer: { email: string; id: string; name: string | null }
                  | null;
                  contacts: {
                      email: string | null;
                      firstName: string;
                      id: string;
                      isDefault: boolean;
                      lastName: string;
                      phone: string | null;
                      position: string | null;
                  }[];
                  currency: | { code: string; id: string; name: string; symbol: string }
                  | null;
                  legalIdentifiers: {
                      country: string | null;
                      id: string;
                      isActive: boolean;
                      type: string;
                      value: string;
                  }[];
              } & {},
          >,
      >